Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:47:18

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 
0018 process.reader2 = cms.EDAnalyzer("DeleteEarlyReader",
0019                                  tag = cms.untracked.InputTag("maker"))
0020 
0021 process.tester1 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0022                                 expectedValues = cms.untracked.vuint32(3,7,11))
0023 process.tester2 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0024                                 expectedValues = cms.untracked.vuint32(6,12))
0025 process.tester3 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0026                                 expectedValues = cms.untracked.vuint32(2,4,6,8,10,12))
0027 
0028 process.p2PreTester = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0029                                      expectedValues = cms.untracked.vuint32(1,3,5,7,9,11))
0030 process.f2 = cms.EDFilter("TestFilterModule",
0031 onlyOne = cms.untracked.bool(True),
0032 acceptValue = cms.untracked.int32(2)
0033 )
0034 
0035 process.f3 = cms.EDFilter("TestFilterModule",
0036 onlyOne = cms.untracked.bool(True),
0037 acceptValue = cms.untracked.int32(3)
0038 )
0039 
0040 process.p1Done = cms.EDProducer("IntProducer", ivalue = cms.int32(1))
0041 process.waitTillP1Done = cms.EDAnalyzer("IntConsumingAnalyzer",
0042                                         getFromModule = cms.untracked.InputTag("p1Done"))
0043 
0044 process.p2Done = cms.EDProducer("IntProducer", ivalue = cms.int32(2))
0045 process.waitTillP2Done = cms.EDAnalyzer("IntConsumingAnalyzer",
0046                                         getFromModule = cms.untracked.InputTag("p2Done"))
0047 
0048 
0049 process.p1 = cms.Path(cms.wait(process.maker)+process.f2+cms.wait(process.reader1)+cms.wait(process.tester1)+process.p1Done)
0050 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)
0051 process.p3 = cms.Path(cms.wait(process.waitTillP2Done)+process.tester3)