Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
process.source = cms.Source("EmptySource")

process.dummy = cms.ESSource("EmptyESSource",
    recordName = cms.string("CSCIndexerRecord"),
    firstValid = cms.vuint32(1),
    iovIsRunNotTime = cms.bool(True)
)

##process.load("CalibMuon.CSCCalibration.CSCIndexer_cfi")
## The above cfi gives rise to the following line:
##process.CSCIndexerESProducer = cms.ESProducer("CSCIndexerESProducer", AlgoName = cms.string("CSCIndexerPostls1") )
process.CSCIndexerESProducer = cms.ESProducer("CSCIndexerESProducer", AlgoName = cms.string("CSCIndexerStartup") )

process.analyze = cms.EDAnalyzer("CSCIndexerAnalyzer")

process.test = cms.Path(process.analyze)