Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:13

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