4 gSystem.Load(
"libFWCoreFWLite.so")
5 FWLiteEnabler::enable()
8 theFile = TFile(
"generatorOutput.root")
10 events = theFile.Get(
"Events")
21 sourceBranch = events.GetBranch(events.GetAlias(
"source"))
22 sourceBranch.SetAddress(source)
25 for index
in all(events):
29 sourceBranch.GetEntry(index)
30 events.GetEntry(index,0)
33 genEvent = source.GetEvent();
34 print genEvent.event_number()