Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TESTOUTPUT")
0004 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(20)
0008 )
0009 process.Thing = cms.EDProducer("ThingProducer")
0010 
0011 process.OtherThing = cms.EDProducer("OtherThingProducer")
0012 
0013 process.thingWithMergeProducer = cms.EDProducer("ThingWithMergeProducer")
0014 
0015 process.intProducer1 = cms.EDProducer("IntProducer",
0016     ivalue = cms.int32(7)
0017 )
0018 
0019 process.intProducer2 = cms.EDProducer("IntProducer",
0020     ivalue = cms.int32(11)
0021 )
0022 
0023 process.aliasForInt1 = cms.EDAlias(
0024     intProducer1 = cms.VPSet(
0025         cms.PSet(type = cms.string('edmtestIntProduct'))
0026     )
0027 )
0028 
0029 process.aliasForInt2 = cms.EDAlias(
0030     intProducer2 = cms.VPSet(
0031         cms.PSet(type = cms.string('edmtestIntProduct'))
0032     )
0033 )
0034 
0035 process.output = cms.OutputModule("PoolOutputModule",
0036     fileName = cms.untracked.string('file:PoolOutputTestUnscheduled.root'),
0037     outputCommands = cms.untracked.vstring(
0038         'keep *',
0039         'drop *_intProducer1_*_*',
0040         'drop *_aliasForInt1_*_*',
0041         'drop *_intProducer2_*_*'
0042     )
0043 )
0044 
0045 process.getInt = cms.EDAnalyzer("TestFindProduct",
0046     inputTags = cms.untracked.VInputTag(
0047         cms.InputTag("aliasForInt1"),
0048     ),
0049   expectedSum = cms.untracked.int32(140)
0050 )
0051 
0052 process.source = cms.Source("EmptySource")
0053 
0054 process.t = cms.Task(process.Thing, process.OtherThing, process.thingWithMergeProducer, process.intProducer1, process.intProducer2)
0055 
0056 process.path1 = cms.Path(process.getInt, process.t)
0057 
0058 process.ep = cms.EndPath(process.output)
0059 
0060