Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 # the following consumes the DeleteEarly but does not read it nor say it needs it
0020 # it won't fail as such, but triggers a prefetch request to maker
0021 process.consumer2 = cms.EDAnalyzer("DeleteEarlyConsumer",
0022                                     tag = cms.untracked.InputTag("maker"))
0023 
0024 process.t = cms.Task(process.maker)
0025 process.p = cms.Path(process.reader+process.consumer2)
0026 process.p.associate(process.t)