Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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("edmtestDeleteEarly_maker__TEST"))
0011 
0012 
0013 process.maker = cms.EDProducer("DeleteEarlyProducer")
0014 
0015 process.reader = cms.EDAnalyzer("DeleteEarlyReader",
0016                                 tag = cms.untracked.InputTag("maker"),
0017                                 mightGet = cms.untracked.vstring("edmtestDeleteEarly_maker__TEST"))
0018 
0019 process.tester = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0020                                 expectedValues = cms.untracked.vuint32(1,3,5))
0021 
0022 process.p = cms.Path(process.maker+process.reader+process.tester)
0023 
0024 process2 = cms.Process("SUB")
0025 process2.options = cms.untracked.PSet(
0026                                      canDeleteEarly = cms.untracked.vstring("edmtestDeleteEarly_maker__TEST"))
0027 process2.reader = cms.EDAnalyzer("DeleteEarlyReader",
0028                                 tag = cms.untracked.InputTag("maker"),
0029                                 mightGet = cms.untracked.vstring("edmtestDeleteEarly_maker__TEST"))
0030 #NOTE: even though it was marked for early delete, the original process still has a shared pointer to the object
0031 # and therefore it doesn't get deleted
0032 process2.tester2 = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0033                                 expectedValues = cms.untracked.vuint32(1,3,5))
0034 process2.p = cms.Path(process2.reader+process2.tester2)
0035 
0036 process.addSubProcess(cms.SubProcess(process2))