Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SiPixelCablingReader")
0004 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0005 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0006 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0007 
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009 from Configuration.AlCa.autoCond import autoCond
0010 process.GlobalTag.globaltag = autoCond['run2_design']
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         enable = cms.untracked.bool(True),
0018         threshold = cms.untracked.string('DEBUG')
0019     )
0020 )
0021 
0022 
0023 ###### OUTPUT HISTOGRAM FILE NAME #######
0024 process.TFileService = cms.Service("TFileService",
0025                                    fileName = cms.string("histo.root")
0026                                    )
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(1)
0030 )
0031 process.source = cms.Source("EmptySource",
0032     numberEventsInRun = cms.untracked.uint32(10),
0033     firstRun = cms.untracked.uint32(1)
0034 )
0035 
0036 ##### DATABASE CONNECTION INFO ######
0037 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0038 process.CondDBCommon.connect = 'sqlite_file:SiPixelFedCablingMap_v21.db'
0039 process.CondDBCommon.DBParameters.authenticationPath = '.'
0040 process.CondDBCommon.DBParameters.messageLevel = 1
0041 
0042 
0043 ###### TAGS TO READ ######
0044 process.PoolDBESSourceForReader = cms.ESSource("PoolDBESSource",
0045     process.CondDBCommon,
0046     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0047     toGet = cms.VPSet(
0048         cms.PSet(
0049             record = cms.string('SiPixelFedCablingMapRcd'),
0050             tag = cms.string('SiPixelFedCablingMap_v21')
0051        ))
0052 )
0053 
0054 ###### PREFER ABOVE TAGS #######
0055 process.esprefer_DBReaders = cms.ESPrefer("PoolDBESSource", "PoolDBESSourceForReader")
0056 
0057 ####### CABLING MAP READER ######
0058 process.SiPixelFedCablingMapAnalyzer = cms.EDAnalyzer("SiPixelFedCablingMapAnalyzer")
0059 
0060 process.p = cms.Path(
0061 process.SiPixelFedCablingMapAnalyzer
0062 )
0063 
0064