Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-25 02:29:51

0001 from PhysicsTools.PythonAnalysis import *
0002 from ROOT import gSystem
0003 
0004 # prepare the FWLite autoloading mechanism
0005 gSystem.Load("libFWCoreFWLite.so")
0006 ROOT.FWLiteEnabler.enable()
0007 
0008 # access the event tree
0009 events = EventTree("generatorOutput.root")
0010 
0011 # event loop
0012 for event in events:
0013     genEvent = event.VtxSmeared.GetEvent()
0014     print(genEvent)