Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #More trigger paths with some filters
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("PROD")
0006 
0007 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0008 process.options = cms.untracked.PSet(
0009     wantSummary = cms.untracked.bool(True),
0010     Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0011 )
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(10)
0015 )
0016 
0017 process.source = cms.Source("EmptySource")
0018 
0019 process.m1 = cms.EDProducer("IntProducer",
0020     ivalue = cms.int32(1)
0021 )
0022 
0023 process.m2 = cms.EDProducer("IntProducer",
0024     ivalue = cms.int32(2)
0025 )
0026 
0027 process.m3 = cms.EDProducer("IntProducer",
0028     ivalue = cms.int32(3)
0029 )
0030 
0031 process.m4 = cms.EDProducer("IntProducer",
0032     ivalue = cms.int32(4)
0033 )
0034 
0035 process.m5 = cms.EDProducer("IntProducer",
0036     ivalue = cms.int32(5)
0037 )
0038 
0039 process.m6 = cms.EDProducer("IntProducer",
0040     ivalue = cms.int32(6)
0041 )
0042 
0043 process.f1 = cms.EDFilter("TestFilterModule",
0044     acceptValue = cms.untracked.int32(3),
0045     onlyOne = cms.untracked.bool(True)
0046 )
0047 
0048 process.f2 = cms.EDFilter("TestFilterModule",
0049     acceptValue = cms.untracked.int32(5),
0050     onlyOne = cms.untracked.bool(True)
0051 )
0052 
0053 process.f3 = cms.EDFilter("TestFilterModule",
0054     acceptValue = cms.untracked.int32(8),
0055     onlyOne = cms.untracked.bool(True)
0056 )
0057 
0058 process.a1 = cms.EDAnalyzer("TestResultAnalyzer",
0059     name = cms.untracked.string('a1'),
0060     dump = cms.untracked.bool(True),
0061     numbits = cms.untracked.int32(6)
0062 )
0063 
0064 process.testout1 = cms.OutputModule("TestOutputModule",
0065     bitMask = cms.int32(1386),
0066     name = cms.string('testout1')
0067 )
0068 
0069 process.p1 = cms.Path(process.f1*process.m1)
0070 process.p2 = cms.Path(process.f2*process.m2)
0071 process.p3 = cms.Path(process.f3*process.m3)
0072 process.p4 = cms.Path(process.m4)
0073 process.p5 = cms.Path(process.m5)
0074 process.p6 = cms.Path(process.m6)
0075 process.e1 = cms.EndPath(process.testout1)
0076 process.e2 = cms.EndPath(process.a1)
0077 
0078