Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PrintTree")
0004 
0005 process.include( "FWCore/MessageLogger/data/MessageLogger.cfi" )
0006 process.include( "SimGeneral/HepPDTESSource/data/pythiapdt.cfi" )
0007 
0008 process.maxEvents = cms.untracked.PSet( 
0009   input = cms.untracked.int32(50) 
0010 )
0011 
0012 process.source = cms.Source( "PoolSource",
0013   fileNames = cms.untracked.vstring( "file:genevents.root" )
0014 )
0015 
0016 process.printTree = cms.EDAnalyzer( "ParticleTreeDrawer",
0017   src =cms.InputTag( "genParticles" ),
0018 #    printP4 = cms.untracked.bool( True ),
0019 #    printPtEtaPhi = cms.untracked.bool( True ),
0020 #    printStatus = cms.untracked.bool( True ),
0021   status = cms.untracked.vint32( 3 ),
0022   printIndex = cms.untracked.bool(True )
0023 )
0024     
0025 process.printDecay = cms.EDAnalyzer( "ParticleDecayDrawer",
0026   src = cms.InputTag( "genParticles" ),
0027 #    untracked bool printP4 = true
0028 #    untracked bool printPtEtaPhi = true
0029   status = cms.untracked.vint32( 3 )
0030 )
0031 
0032 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0033 
0034 process.p = cms.Path( 
0035   process.printTree * 
0036   process.printDecay 
0037 )
0038 
0039 process.o = cms.EndPath( 
0040   process.printEventNumber 
0041 )