Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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