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("edmtestDeleteEarly_maker__TEST"),
0011         modulesToIgnoreForDeleteEarly=cms.untracked.vstring("consumer2"))
0012 
0013 
0014 process.maker = cms.EDProducer("DeleteEarlyProducer")
0015 
0016 process.reader = cms.EDAnalyzer("DeleteEarlyReader",
0017                                 tag = cms.untracked.InputTag("maker"))
0018 
0019 process.tester = cms.EDAnalyzer("DeleteEarlyCheckDeleteAnalyzer",
0020     expectedValues = cms.untracked.vuint32(2,4,6)
0021 )
0022 
0023 # the following consumes the DeleteEarly but does not read it
0024 # it won't fail as such, but triggers a prefetch request to maker
0025 process.consumer2 = cms.EDAnalyzer("DeleteEarlyConsumer",
0026                                     tag = cms.untracked.InputTag("maker"))
0027 
0028 process.p = cms.Path(process.maker+cms.wait(process.reader)+process.tester+process.consumer2)