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("TEST2")
0004 
0005 process.source = cms.Source("PoolSource",
0006     fileNames = cms.untracked.vstring(
0007         'file:testParentageWithStreamerIO1.root'
0008     )
0009 )
0010 
0011 process.maxEvents = cms.untracked.PSet(
0012     input = cms.untracked.int32(1)
0013 )
0014 
0015 process.prod11 = cms.EDProducer("AddIntsProducer",
0016     labels = cms.VInputTag()
0017 )
0018 
0019 process.prod12 = cms.EDProducer("AddIntsProducer",
0020     labels = cms.VInputTag("prod11")
0021 )
0022 
0023 process.test1 = cms.EDAnalyzer("TestParentage",
0024     inputTag = cms.InputTag("prod2"),
0025     expectedAncestors = cms.vstring()
0026 )
0027 
0028 process.test2 = cms.EDAnalyzer("TestParentage",
0029     inputTag = cms.InputTag("prod12"),
0030     expectedAncestors = cms.vstring("prod11")
0031 )
0032 
0033 process.out = cms.OutputModule("EventStreamFileWriter",
0034     fileName = cms.untracked.string('testParentageWithStreamerIO2.dat'),
0035     compression_level = cms.untracked.int32(1),
0036     use_compression = cms.untracked.bool(True),
0037     max_event_size = cms.untracked.int32(7000000)
0038 )
0039 
0040 process.path1 = cms.Path(process.prod11 + process.prod12 + process.test1 + process.test2)
0041 
0042 process.endpath = cms.EndPath(process.out)