Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:25

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