Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST1")
0004 
0005 process.source = cms.Source("EmptySource",
0006     firstEvent = cms.untracked.uint32(1)
0007 )
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(1)
0011 )
0012 
0013 process.prod1 = cms.EDProducer("AddIntsProducer",
0014     labels = cms.VInputTag()
0015 )
0016 
0017 process.prod2 = cms.EDProducer("AddIntsProducer",
0018     labels = cms.VInputTag("prod1")
0019 )
0020 
0021 process.test1 = cms.EDAnalyzer("TestParentage",
0022     inputTag = cms.InputTag("prod2"),
0023     expectedAncestors = cms.vstring("prod1")
0024 )
0025 
0026 process.out = cms.OutputModule("PoolOutputModule",
0027     fileName = cms.untracked.string('testParentageWithStreamerIO1.root'),
0028     outputCommands = cms.untracked.vstring(
0029         'keep *'
0030     ),
0031     dropMetaData = cms.untracked.string('ALL')
0032 )
0033 
0034 process.path1 = cms.Path(process.prod1 + process.prod2 + process.test1)
0035 
0036 process.endpath = cms.EndPath(process.out)