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("TEST")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.source = cms.Source("EmptySource",
0008                             firstLuminosityBlockForEachRun = cms.untracked.VLuminosityBlockID(
0009                                 cms.LuminosityBlockID(10,1),
0010                                 cms.LuminosityBlockID(20,2),
0011                                 cms.LuminosityBlockID(30,3)
0012                             ),
0013                             numberEventsInLuminosityBlock =cms.untracked.uint32(1)
0014 )
0015 
0016 process.add_( cms.ESProducer("RunInfoTestESProducer",
0017                              runInfos = cms.VPSet(cms.PSet(run = cms.int32(10), avg_current = cms.double(1.)),
0018                                               cms.PSet(run = cms.int32(20), avg_current = cms.double(2.)),
0019                                               cms.PSet(run = cms.int32(30), avg_current = cms.double(3.)) ) ) )
0020 
0021 process.riSource = cms.ESSource("EmptyESSource", recordName = cms.string("RunInfoRcd"),
0022                                 iovIsRunNotTime = cms.bool(True),
0023                                 firstValid = cms.vuint32(10,20,30))
0024 
0025 process.test = cms.EDAnalyzer("RunInfoESAnalyzer")
0026 
0027 process.p = cms.Path(process.test)