Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.maxEvents.input = 1
0006 process.source = cms.Source("EmptySource")
0007 
0008 ###########
0009 process.intProducerFoo = cms.EDProducer("IntProducer", ivalue = cms.int32(1))
0010 process.intProducerBar = cms.EDProducer("IntProducer", ivalue = cms.int32(2))
0011 process.intConsumer = cms.EDAnalyzer("IntTestAnalyzer",
0012     moduleLabel = cms.untracked.InputTag("intProducer"),
0013     valueMustMatch = cms.untracked.int32(1)
0014 )
0015 process.intConsumer2 = process.intConsumer.clone(
0016     moduleLabel = ("intProducer", "test"),
0017     valueMustMatch = 2
0018 )
0019 
0020 process.intProducer = cms.EDAlias(
0021     intProducerFoo = cms.VPSet(
0022         cms.PSet(
0023             type = cms.string("edmtestIntProduct"),
0024         )
0025     ),
0026     intProducerBar = cms.VPSet(
0027         cms.PSet(
0028             type = cms.string("edmtestIntProduct"),
0029             fromProductInstance = cms.string(""),
0030             toProductInstance = cms.string("test"),
0031         )
0032     )
0033 )
0034 
0035 ###########
0036 process.intVecProducerFoo = cms.EDProducer("IntVectorProducer",
0037     count = cms.int32(10),
0038     ivalue = cms.int32(0),
0039     delta = cms.int32(1)
0040 )
0041 process.intVecProducerBar = process.intVecProducerFoo.clone(ivalue = 100)
0042 process.intViewConsumer = cms.EDProducer("IntVecPtrVectorProducer",
0043     target = cms.InputTag('intVecProducer')
0044 )
0045 process.intViewConsumer2 = cms.EDProducer("IntVecPtrVectorProducer",
0046     target = cms.InputTag("intVecProducer", "test")
0047 )
0048 
0049 process.intVecProducer = cms.EDAlias(
0050     intVecProducerFoo = cms.VPSet(
0051         cms.PSet(
0052             type = cms.string("ints")
0053         )
0054     ),
0055     intVecProducerBar = cms.VPSet(
0056         cms.PSet(
0057             type = cms.string("ints"),
0058             fromProductInstance = cms.string(""),
0059             toProductInstance = cms.string("test"),
0060         )
0061     )
0062 )
0063 
0064 ###########
0065 process.PathsAndConsumesOfModulesTestService = cms.Service("PathsAndConsumesOfModulesTestService",
0066     modulesAndConsumes = cms.VPSet(
0067         cms.PSet(
0068             key = cms.string("intConsumer"),
0069             value = cms.vstring("intProducerFoo")
0070         ),
0071         cms.PSet(
0072             key = cms.string("intConsumer2"),
0073             value = cms.vstring("intProducerBar")
0074         ),
0075         cms.PSet(
0076             key = cms.string("intViewConsumer"),
0077             value = cms.vstring("intVecProducerFoo")
0078         ),
0079         cms.PSet(
0080             key = cms.string("intViewConsumer2"),
0081             value = cms.vstring("intVecProducerBar")
0082         ),
0083     )
0084 )
0085 
0086 process.t = cms.Task(
0087     process.intProducerFoo,
0088     process.intProducerBar,
0089     process.intVecProducerFoo,
0090     process.intVecProducerBar,
0091 )
0092 process.p = cms.Path(
0093     process.intConsumer +
0094     process.intConsumer2 +
0095     process.intViewConsumer +
0096     process.intViewConsumer2,
0097     process.t
0098 )