Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:10:24

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # Configuration file for PrePoolInputTest 
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 import sys
0007 
0008 argv = []
0009 foundpy = False
0010 for a in sys.argv:
0011     if foundpy:
0012         argv.append(a)
0013     if ".py" in a:
0014         foundpy = True
0015 
0016 useOtherThing = False
0017 if len(argv) > 6:
0018   if argv[6] == "useOtherThing":
0019     useOtherThing = True
0020 
0021 process = cms.Process("TESTPROD")
0022 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0023 
0024 process.maxEvents.input = int(argv[1])
0025 
0026 process.Thing = cms.EDProducer("ThingProducer")
0027 
0028 process.output = cms.OutputModule("PoolOutputModule",
0029     fileName = cms.untracked.string(argv[0])
0030 )
0031 
0032 process.source = cms.Source("EmptySource",
0033     firstRun = cms.untracked.uint32(int(argv[2])),
0034     numberEventsInRun = cms.untracked.uint32(int(argv[3])),
0035     firstLuminosityBlock = cms.untracked.uint32(int(argv[4])),
0036     numberEventsInLuminosityBlock = cms.untracked.uint32(int(argv[5]))
0037 )
0038 
0039 process.p = cms.Path(process.Thing)
0040 if useOtherThing:
0041   process.OtherThing = cms.EDProducer("OtherThingProducer")
0042   process.p = cms.Path(process.Thing + process.OtherThing)
0043 process.ep = cms.EndPath(process.output)
0044 
0045