Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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(3))
0008 
0009 process.options = cms.untracked.PSet(
0010     canDeleteEarly = cms.untracked.vstring(
0011         "edmtestDeleteEarly_maker1__TEST",
0012         "edmtestDeleteEarly_maker2__TEST",
0013         "edmtestDeleteEarly_maker3__TEST"
0014     )
0015 )
0016 
0017 
0018 process.maker1 = cms.EDProducer("DeleteEarlyProducer")
0019 process.maker2 = cms.EDProducer("DeleteEarlyProducer")
0020 process.maker3 = cms.EDProducer("DeleteEarlyProducer") # this module should get deleted
0021 
0022 # These 3 modules should get deleted
0023 process.otherProducer1 = cms.EDProducer("IntProducer",
0024     ivalue = cms.int32(1)
0025 )
0026 process.otherProducer2 = cms.EDProducer("IntProducer",
0027     ivalue = cms.int32(2)
0028 )
0029 process.otherProducer3 = cms.EDProducer("IntProducer",
0030     ivalue = cms.int32(3)
0031 )
0032 
0033 process.reader1 = cms.EDAnalyzer("DeleteEarlyReader",
0034     tag = cms.untracked.InputTag("maker1")
0035 )
0036 process.reader2 = cms.EDAnalyzer("DeleteEarlyReader",
0037     tag = cms.untracked.InputTag("maker2")
0038 )
0039 
0040 process.tester = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0041     expectedValues = cms.untracked.vuint32(4,8,12)
0042 )
0043 
0044 process.t = cms.Task(
0045     process.maker1,
0046     process.maker2,
0047     process.maker3,
0048     process.otherProducer1,
0049     process.otherProducer2,
0050     process.otherProducer3,
0051 )
0052 process.p = cms.Path(process.reader1+process.reader2+process.tester, process.t)