Go to the documentation of this file. 21 tm = ROOT.TreeManager(
"../../test_garana/structuredtree.root")
26 print(
"found GenTree with "+
str(gen.NEntries())+
" entries")
29 h = ROOT.TH1F(
"h",
"my PyROOT histogram;E_{#nu} [GeV]",10,0,10);
32 for ientry
in range(0,gen.NEntries()):
37 for igen
in range(0,gen.NGen()):
38 h.Fill(gen.NuP(igen).
E());
43 c.SaveAs(
'testhist_pyroot.png')
50 null =
input(
"press <Enter> to close canvas and exit program.")