Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-10 23:39:26

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     mightGet = cms.untracked.vstring("edmtestDeleteEarly_maker1__TEST")
0026 )
0027 process.otherProducer2 = cms.EDProducer("IntProducer",
0028     ivalue = cms.int32(2),
0029     mightGet = cms.untracked.vstring("edmtestDeleteEarly_maker2__TEST")
0030 )
0031 process.otherProducer3 = cms.EDProducer("IntProducer",
0032     ivalue = cms.int32(3),
0033     mightGet = cms.untracked.vstring(
0034         "edmtestDeleteEarly_maker2__TEST",
0035         "edmtestDeleteEarly_maker3__TEST"
0036     )
0037 )
0038 
0039 process.reader1 = cms.EDAnalyzer("DeleteEarlyReader",
0040     tag = cms.untracked.InputTag("maker1"),
0041     mightGet = cms.untracked.vstring(
0042         "edmtestDeleteEarly_maker1__TEST",
0043     )
0044 )
0045 process.reader2 = cms.EDAnalyzer("DeleteEarlyReader",
0046     tag = cms.untracked.InputTag("maker2"),
0047     mightGet = cms.untracked.vstring(
0048         "edmtestDeleteEarly_maker2__TEST",
0049     )
0050 )
0051 
0052 process.tester = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0053     expectedValues = cms.untracked.vuint32(4,8,12)
0054 )
0055 
0056 process.t = cms.Task(
0057     process.maker1,
0058     process.maker2,
0059     process.maker3,
0060     process.otherProducer1,
0061     process.otherProducer2,
0062     process.otherProducer3,
0063 )
0064 process.p = cms.Path(process.reader1+process.reader2+process.tester, process.t)