File indexing completed on 2023-03-17 11:02:48
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("PROD")
0004
0005 from FWCore.ParameterSet.SequenceVisitors import EndPathValidator
0006
0007 EndPathValidator._presetFilters = ["TestFilterModule"]
0008
0009 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0010 process.options = cms.untracked.PSet(
0011 wantSummary = cms.untracked.bool(False),
0012 Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0013 )
0014
0015 process.maxEvents = cms.untracked.PSet(
0016 input = cms.untracked.int32(99)
0017 )
0018 process.source = cms.Source("EmptySource")
0019
0020 process.m1 = cms.EDProducer("IntProducer",
0021 ivalue = cms.int32(1)
0022 )
0023
0024 process.m2 = cms.EDProducer("IntProducer",
0025 ivalue = cms.int32(2)
0026 )
0027
0028 process.m3 = cms.EDProducer("IntProducer",
0029 ivalue = cms.int32(3)
0030 )
0031
0032 process.m4 = cms.EDProducer("IntProducer",
0033 ivalue = cms.int32(4)
0034 )
0035
0036 process.f1 = cms.EDFilter("TestFilterModule",
0037 acceptValue = cms.untracked.int32(40),
0038 onlyOne = cms.untracked.bool(False)
0039 )
0040
0041 process.f2 = cms.EDFilter("TestFilterModule",
0042 acceptValue = cms.untracked.int32(30),
0043 onlyOne = cms.untracked.bool(False)
0044 )
0045
0046 process.f3 = cms.EDFilter("TestFilterModule",
0047 acceptValue = cms.untracked.int32(20),
0048 onlyOne = cms.untracked.bool(False)
0049 )
0050
0051 process.f4 = cms.EDFilter("TestFilterModule",
0052 acceptValue = cms.untracked.int32(2),
0053 onlyOne = cms.untracked.bool(True)
0054 )
0055
0056 process.outp1 = cms.OutputModule("SewerModule",
0057 shouldPass = cms.int32(40),
0058 name = cms.string('p1'),
0059 SelectEvents = cms.untracked.PSet(
0060 SelectEvents = cms.vstring('p1')
0061 )
0062 )
0063
0064 process.outp2 = cms.OutputModule("SewerModule",
0065 shouldPass = cms.int32(99),
0066 name = cms.string('p2'),
0067 SelectEvents = cms.untracked.PSet(
0068 SelectEvents = cms.vstring('p2')
0069 )
0070 )
0071
0072 process.outp3 = cms.OutputModule("SewerModule",
0073 shouldPass = cms.int32(10),
0074 name = cms.string('p3'),
0075 SelectEvents = cms.untracked.PSet(
0076 SelectEvents = cms.vstring('p3')
0077 )
0078 )
0079
0080 process.outp4 = cms.OutputModule("SewerModule",
0081 shouldPass = cms.int32(5),
0082 name = cms.string('p4'),
0083 SelectEvents = cms.untracked.PSet(
0084 SelectEvents = cms.vstring('p4')
0085 )
0086 )
0087
0088 process.outp5 = cms.OutputModule("SewerModule",
0089 shouldPass = cms.int32(10),
0090 name = cms.string('p5'),
0091 SelectEvents = cms.untracked.PSet(
0092 SelectEvents = cms.vstring('p5')
0093 )
0094 )
0095
0096 process.p1 = cms.Path(process.m1)
0097 process.p2 = cms.Path(process.m1)
0098 process.p3 = cms.Path(process.m1)
0099 process.p4 = cms.Path(process.m1)
0100 process.p5 = cms.Path(process.m4)
0101 process.e1 = cms.EndPath(process.f1*process.outp1)
0102 process.e2 = cms.EndPath(cms.ignore(process.f1)*process.outp2)
0103 process.e3 = cms.EndPath(process.f2*process.m2*~process.f3*process.m3*cms.ignore(process.f4)*process.outp3)
0104 process.e4 = cms.EndPath(process.f2*process.m2*~process.f3*cms.ignore(process.m3)*process.f4*process.outp4)
0105 process.e5 = cms.EndPath(process.f2*process.m2*~process.f3*process.m3*cms.ignore(process.f4)*process.m4*process.outp5)