1 from __future__
import print_function
5 gSystem.Load(
"libFWCoreFWLite.so")
6 ROOT.FWLiteEnabler.enable()
9 theFile = TFile(
"generatorOutput.root")
11 events = theFile.Get(
"Events")
22 sourceBranch = events.GetBranch(events.GetAlias(
"source"))
23 sourceBranch.SetAddress(source)
26 for index
in all(events):
30 sourceBranch.GetEntry(index)
31 events.GetEntry(index,0)
34 genEvent = source.GetEvent();
35 print(genEvent.event_number())
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)