00001 from PhysicsTools.PythonAnalysis import * 00002 from ROOT import * 00003 00004 # prepare the FWLite autoloading mechanism 00005 gSystem.Load("libFWCoreFWLite.so") 00006 AutoLibraryLoader.enable() 00007 00008 # access the event tree 00009 events = EventTree("generatorOutput.root") 00010 00011 # event loop 00012 for event in events: 00013 genEvent = event.VtxSmeared.GetEvent() 00014 print genEvent