Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:16

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # Configuration file for PoolInputTest
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 from sys import argv
0007 
0008 process = cms.Process("TESTRECO")
0009 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0010 
0011 process.maxEvents.input = int(argv[2])
0012 
0013 runToLumi = [111,222,333,444,555]
0014 
0015 process.OtherThing = cms.EDProducer("OtherThingProducer")
0016 
0017 process.Analysis = cms.EDAnalyzer("OtherThingAnalyzer")
0018 
0019 process.source = cms.Source("PoolSource",
0020                             setRunNumberForEachLumi = cms.untracked.vuint32(*runToLumi),
0021                             fileNames = cms.untracked.vstring('file:RunPerLumiTest.root')
0022 )
0023 
0024 process.output = cms.OutputModule("PoolOutputModule",
0025     fileName = cms.untracked.string('OutputRunPerLumiTest.root')
0026 )
0027 
0028 numberOfEventsInLumi = 5
0029 ids = cms.VEventID()
0030 for l,r in enumerate(runToLumi):
0031     for e in range(numberOfEventsInLumi):
0032         ids.append(cms.EventID(r, l+1,l*5+e+1))
0033 
0034 process.check = cms.EDAnalyzer("EventIDChecker", eventSequence = cms.untracked(ids))
0035 
0036 
0037 process.p = cms.Path(process.OtherThing*process.Analysis)
0038 
0039 process.e = cms.EndPath(process.check+process.output)