Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Configuration file for PrePoolInputTest 
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("TESTPROD")
0006 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0007 
0008 process.maxEvents = cms.untracked.PSet(
0009     input = cms.untracked.int32(11)
0010 )
0011 process.Thing = cms.EDProducer("ThingProducer")
0012 
0013 process.source = cms.Source("EmptySource",
0014     firstLuminosityBlock = cms.untracked.uint32(6),
0015     numberEventsInLuminosityBlock = cms.untracked.uint32(3),
0016     firstRun = cms.untracked.uint32(561),
0017     numberEventsInRun = cms.untracked.uint32(7)
0018 )
0019 
0020 
0021 process.OtherThing = cms.EDProducer("OtherThingProducer",
0022     thingTag = cms.InputTag("AltThing"))
0023 
0024 process.AltThing = cms.EDAlias(
0025     Thing = cms.VPSet(
0026       cms.PSet(type = cms.string('edmtestThings'),
0027                fromProductInstance = cms.string('*'),
0028                toProductInstance = cms.string('*'))
0029     )
0030 )
0031 
0032 process.output = cms.OutputModule("PoolOutputModule",
0033     outputCommands = cms.untracked.vstring("keep *", "drop *_Thing_*_TESTPROD"),
0034     fileName = cms.untracked.string('step1.root')
0035 )
0036 
0037 
0038 process.p = cms.Path(process.Thing*process.OtherThing)
0039 process.ep = cms.EndPath(process.output)
0040 
0041 analysisProcess = cms.Process("TESTANALYSIS")
0042 
0043 process.addSubProcess(cms.SubProcess(analysisProcess,
0044    # Optional SelectEvents parameter can go here.
0045    #outputCommands = cms.untracked.vstring("drop *")
0046    outputCommands = cms.untracked.vstring("keep *", "drop *_Thing_*_TESTPROD"))
0047 )
0048 
0049 # Configuration file for PoolInputTest
0050 
0051 analysisProcess.Analysis = cms.EDAnalyzer("OtherThingAnalyzer")
0052 
0053 
0054 analysisProcess.output = cms.OutputModule("PoolOutputModule",
0055     outputCommands = cms.untracked.vstring("keep *", "drop *_Thing_*_TESTPROD"),
0056     fileName = cms.untracked.string('step2.root')
0057 )
0058 
0059 analysisProcess.p = cms.Path(analysisProcess.Analysis)
0060 analysisProcess.ep = cms.EndPath(analysisProcess.output)
0061 
0062 
0063