Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-06 04:00:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DTCCablingMapPayloadDumpTest")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     cerr = cms.untracked.PSet(
0008         threshold = cms.untracked.string('INFO')
0009     ),
0010     cout = cms.untracked.PSet(
0011         enable = cms.untracked.bool(True),
0012         threshold = cms.untracked.string('INFO')
0013     )
0014 )
0015 
0016 # Load CondDB service
0017 process.load("CondCore.CondDB.CondDB_cfi")
0018 
0019 # input database (in this case the local sqlite files)
0020 process.CondDB.connect = 'sqlite_file:OTandITDTCCablingMap.db'
0021 
0022 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0023     process.CondDB,
0024     DumpStat=cms.untracked.bool(True),
0025     toGet = cms.VPSet(cms.PSet(
0026         record = cms.string('TrackerDetToDTCELinkCablingMapRcd'),
0027         tag = cms.string("DTCCablingMapProducerUserRun")
0028     )),
0029 )
0030 
0031 # A data source must always be defined. We don't need it, so here's a dummy one.
0032 process.source = cms.Source("EmptyIOVSource",
0033     timetype = cms.string('runnumber'),
0034     firstValue = cms.uint64(1),
0035     lastValue = cms.uint64(1),
0036     interval = cms.uint64(1)
0037 )
0038 
0039 process.otdtccablingmap_producer = cms.EDAnalyzer("DTCCablingMapTestReader",)
0040 
0041 process.path = cms.Path(process.otdtccablingmap_producer)