Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
import FWCore.ParameterSet.Config as cms

process = cms.Process("DTCCablingMapPayloadDumpTest")

process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger = cms.Service("MessageLogger",
    cerr = cms.untracked.PSet(
        threshold = cms.untracked.string('INFO')
    ),
    cout = cms.untracked.PSet(
        enable = cms.untracked.bool(True),
        threshold = cms.untracked.string('INFO')
    )
)

# Load CondDB service
process.load("CondCore.CondDB.CondDB_cfi")

# input database (in this case the local sqlite files)
process.CondDB.connect = 'sqlite_file:OuterTrackerDTCCablingMap_dummytest.db'

process.PoolDBESSource = cms.ESSource("PoolDBESSource",
    process.CondDB,
    DumpStat=cms.untracked.bool(True),
    toGet = cms.VPSet(cms.PSet(
        record = cms.string('TrackerDetToDTCELinkCablingMapRcd'),
        tag = cms.string("DTCCablingMapProducerUserRun")
    )),
)

# A data source must always be defined. We don't need it, so here's a dummy one.
process.source = cms.Source("EmptyIOVSource",
    timetype = cms.string('runnumber'),
    firstValue = cms.uint64(1),
    lastValue = cms.uint64(1),
    interval = cms.uint64(1)
)

## We define the output service.
#process.PoolDBOutputService = cms.Service("PoolDBOutputService",
    #process.CondDB,
    #timetype = cms.untracked.string('runnumber'),
    #toPut = cms.VPSet(cms.PSet(
        #record = cms.string('OuterTrackerDTCCablingMapRcd'),
        #tag = cms.string('DTCCablingMapProducer_test')
    #))
#)

process.otdtccablingmap_producer = cms.EDAnalyzer("DTCCablingMapTestReader",)

process.path = cms.Path(process.otdtccablingmap_producer)