1 from __future__
import print_function
4 from ROOT
import gSystem, TFile
6 gSystem.Load(
"libFWCoreFWLite.so")
7 ROOT.FWLiteEnabler.enable()
10 theFile = TFile(
"generatorOutput.root")
12 events = theFile.Get(
"Events")
23 sourceBranch = events.GetBranch(events.GetAlias(
"source"))
24 sourceBranch.SetAddress(source)
27 for index
in all(events):
31 sourceBranch.GetEntry(index)
32 events.GetEntry(index,0)
35 genEvent = source.GetEvent();
36 print(genEvent.event_number())
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)