Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD1")
0004 
0005 process.source = cms.Source("IntSource")
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(3)
0008 )
0009 
0010 process.out = cms.OutputModule("PoolOutputModule",
0011     fileName = cms.untracked.string('testEdmProvDump.root'),
0012     outputCommands = cms.untracked.vstring(
0013         'keep *', 
0014         'drop *_intProducerA_*_*'
0015     )
0016 )
0017 
0018 process.a1 = cms.EDAnalyzer("TestFindProduct",
0019   inputTags = cms.untracked.VInputTag( cms.InputTag("source") ),
0020   expectedSum = cms.untracked.int32(12),
0021   inputTagsNotFound = cms.untracked.VInputTag(
0022     cms.InputTag("source", processName=cms.InputTag.skipCurrentProcess()),
0023     cms.InputTag("intProducer", processName=cms.InputTag.skipCurrentProcess()),
0024     cms.InputTag("intProducerU", processName=cms.InputTag.skipCurrentProcess())
0025   )
0026 )
0027 
0028 process.a2 = cms.EDAnalyzer("TestFindProduct",
0029   inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerA") ),
0030   expectedSum = cms.untracked.int32(300)
0031 )
0032 
0033 process.a3 = cms.EDAnalyzer("TestFindProduct",
0034   inputTags = cms.untracked.VInputTag( cms.InputTag("aliasForInt") ),
0035   expectedSum = cms.untracked.int32(300)
0036 )
0037 
0038 process.intProducer = cms.EDProducer("IntProducer", ivalue = cms.int32(1))
0039 
0040 process.intProducerU = cms.EDProducer("IntProducer", ivalue = cms.int32(10))
0041 
0042 process.intProducerA = cms.EDProducer("IntProducer", ivalue = cms.int32(100))
0043 
0044 process.aliasForInt = cms.EDAlias(
0045   intProducerA  = cms.VPSet(
0046     cms.PSet(type = cms.string('edmtestIntProduct')
0047     )
0048   )
0049 )
0050 
0051 process.intVectorProducer = cms.EDProducer("IntVectorProducer",
0052   count = cms.int32(9),
0053   ivalue = cms.int32(11)
0054 )
0055 
0056 process.t = cms.Task(process.intProducerU, process.intProducerA, process.intVectorProducer)
0057 
0058 process.p = cms.Path(process.intProducer * process.a1 * process.a2 * process.a3, process.t)
0059 
0060 process.e = cms.EndPath(process.out)