Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:24

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.source = cms.Source("EmptySource")
0006 
0007 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(6))
0008 
0009 process.options = cms.untracked.PSet(
0010         canDeleteEarly = cms.untracked.vstring("edmtestDeleteEarly_maker__TEST"))
0011 
0012 
0013 process.maker = cms.EDProducer("DeleteEarlyProducer")
0014 
0015 process.reader1 = cms.EDAnalyzer("DeleteEarlyReader",
0016                                 tag = cms.untracked.InputTag("maker"),
0017                                 mightGet = cms.untracked.vstring("edmtestDeleteEarly_maker__TEST"))
0018 
0019 process.reader2 = cms.EDAnalyzer("DeleteEarlyReader",
0020                                  tag = cms.untracked.InputTag("maker"),
0021                                  mightGet = cms.untracked.vstring("edmtestDeleteEarly_maker__TEST"))
0022 
0023 process.tester1 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0024                                 expectedValues = cms.untracked.vuint32(3,7,11))
0025 process.tester2 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0026                                 expectedValues = cms.untracked.vuint32(6,12))
0027 process.tester3 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0028                                 expectedValues = cms.untracked.vuint32(2,4,6,8,10,12))
0029 
0030 process.p2PreTester = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0031                                      expectedValues = cms.untracked.vuint32(1,3,5,7,9,11))
0032 process.f2 = cms.EDFilter("TestFilterModule",
0033 onlyOne = cms.untracked.bool(True),
0034 acceptValue = cms.untracked.int32(2)
0035 )
0036 
0037 process.f3 = cms.EDFilter("TestFilterModule",
0038 onlyOne = cms.untracked.bool(True),
0039 acceptValue = cms.untracked.int32(3)
0040 )
0041 
0042 process.p1Done = cms.EDProducer("IntProducer", ivalue = cms.int32(1))
0043 process.waitTillP1Done = cms.EDAnalyzer("IntConsumingAnalyzer",
0044                                         getFromModule = cms.untracked.InputTag("p1Done"))
0045 
0046 process.p2Done = cms.EDProducer("IntProducer", ivalue = cms.int32(2))
0047 process.waitTillP2Done = cms.EDAnalyzer("IntConsumingAnalyzer",
0048                                         getFromModule = cms.untracked.InputTag("p2Done"))
0049 
0050 
0051 process.p1 = cms.Path(cms.wait(process.maker)+process.f2+cms.wait(process.reader1)+cms.wait(process.tester1)+process.p1Done)
0052 process.p2 = cms.Path(cms.wait(process.waitTillP1Done)+cms.wait(process.maker)+cms.wait(process.p2PreTester)+process.f3+cms.wait(process.reader2)+cms.wait(process.tester2)+process.p2Done)
0053 process.p3 = cms.Path(cms.wait(process.waitTillP2Done)+process.tester3)