Variables
truth_ana Namespace Reference

Variables

 tm = ROOT.TreeManager("./structuredtree.root")
 central garana tree manager it links to all of the individual tree accessors given a file with garana trees produced in the default garana format More...
 
 bt = ROOT.Backtracker(tm)
 
 pdgDB = ROOT.TDatabasePDG()
 
dictionary pdgToName
 
 gen = tm.GetGenTree()
 
 g4 = tm.GetG4Tree()
 
 hg4nus = TH2F("hg4nus","g4Tree;N^{0} #nu's;GENIE scatter code",3,0,3,30,0,30)
 
 hnureg = TH1F("hnureg",";#nu vertex region;",10,0,10)
 
 hngen = TH1F("hngen","genTree;N^{0} MCTruth;",5,0,5)
 
 hnprim = TH1F("hnprim","g4Tree;N^{0} primaries;",40,0,40)
 
 hprim_pdg = TH1F("hprim_pdg","g4Tree; MCParticle PDG code;",3400,-400,3000)
 
 hprim_mumom = TH1F("hprim_mumom","g4Tree;true momentum [GeV/c];",50,0,5)
 
 hprim_pmom = TH1F("hprim_pmom","g4Tree;true momentum [GeV/c];",50,0,5)
 
 hprim_mumult = TH1F("hprim_mumult","g4Tree;primary particle multiplicity;",19,0,19)
 
 hprim_pmult = TH1F("hprim_pmult","g4Tree;primary particle multiplicity;",19,0,19)
 
 hprim_stopmult_tpc = TH1F("hprim_stopmult_tpc","g4Tree; N^{0} primaries stopping in active volume",10,0,10)
 
 hprim_stopmult_calo = TH1F("hprim_stopmult_calo","g4Tree; N^{0} primaries stopping in active volume",10,0,10)
 
 hprim_chgmult_tpc = TH1F("hprim_chgmult_tpc","g4Tree;N^{0} charged primaries;",19,0,19)
 
 hprim_chgmult_calo = TH1F("hprim_chgmult_calo","g4Tree;N^{0} charged primaries;",19,0,19)
 
 hprim_theta_all = TH1F("hprim_theta_all","g4Tree: primaries;#theta [deg]",90,0,180)
 
 hprim_theta_mu = TH1F("hprim_theta_mu", "g4Tree: primaries;#theta [deg]",90,0,180)
 
 hprim_theta_p = TH1F("hprim_theta_p", "g4Tree: primaries;#theta [deg]",90,0,180)
 
 hprim_theta_pic = TH1F("hprim_theta_pic","g4Tree: primaries;#theta [deg]",90,0,180)
 
 hprim_t0 = TH1F("hprim_t0", "g4Tree; time [ns];",100,0,1e4)
 
 hprim_tf = TH1F("hprim_tf", "g4Tree; time [ns];",100,0,1e4)
 
 hall_t0 = TH1F("hall_t0", "g4Tree; time [ns];",100,0,1e4)
 
 hall_tf = TH1F("hall_tf", "g4Tree; time [ns];",100,0,1e4)
 
 henu_mu = TH1F("henu_mu","genTree;E_{#nu} [GeV]", 50,0,10)
 
 henu_mubar = TH1F("henu_mubar","genTree;E_{#nu} [GeV]",50,0,10)
 
 henu_e = TH1F("henu_e","genTree;E_{#nu} [GeV]", 50,0,10)
 
 henu_ebar = TH1F("henu_ebar","genTree;E_{#nu} [GeV]", 50,0,10)
 
 hx = TH1F("hx","g4Tree;x [cm]",100,-300,300)
 
 hy = TH1F("hy","g4Tree;y [cm]",100,-450,120)
 
 hz = TH1F("hz","g4Tree;z [cm]",100,1250,1750)
 
dictionary pdgcts = {13:0}
 
dictionary pdgcts_calo = {13:0}
 
int nnu = 0
 
int nprim_mu = 0
 
int nprim_p = 0
 
int nstop_tpc = 0
 
int nstop_calo = 0
 
int nprim_chg_tpc = 0
 
int nprim_chg_calo = 0
 
int inu = -1
 
 theta = ROOT.TMath.RadToDeg()*g4.SimMomBegin(ig4).Theta()
 
 pdgcode = g4.PDG(ig4)
 
 partPDG = pdgDB.GetParticle(pdgcode)
 
 enu = gen.NuP(igen).E()
 
 hpdgtxt = TH1F("hpdgtxt","g4Tree: primaries;; counts per species",len(pdgcts),0,len(pdgcts))
 
 hpdgtxt_calo = TH1F("hpdgtxt_calo","g4Tree: primaries;; counts per species",len(pdgcts),0,len(pdgcts))
 
 cngen = TCanvas()
 
 cnprim = TCanvas()
 
 cg4nus = TCanvas()
 
 cnureg = TCanvas()
 
 cenu = TCanvas()
 
 cprim_pdg = TCanvas()
 
 cprim_mom = TCanvas()
 
 cprim_mult = TCanvas()
 
 leg3 = ROOT.TLegend(0.6,0.6,0.8,0.8)
 
 cprim_stopmult = TCanvas()
 
 leg4 = ROOT.TLegend(0.6,0.6,0.8,0.8)
 
 cprim_chgmult = TCanvas()
 
 cpdgtxt = TCanvas()
 
 leg = ROOT.TLegend(0.6,0.2,0.8,0.4)
 
 ctheta = TCanvas()
 
 leg2 = ROOT.TLegend(0.6,0.6,0.8,0.8)
 
 cx = TCanvas()
 
 cy = TCanvas()
 
 cz = TCanvas()
 
 null = input("press <Enter> to close canvas and exit program.")
 

Variable Documentation

truth_ana.bt = ROOT.Backtracker(tm)

Definition at line 27 of file truth_ana.py.

truth_ana.cenu = TCanvas()

Definition at line 241 of file truth_ana.py.

truth_ana.cg4nus = TCanvas()

Definition at line 230 of file truth_ana.py.

truth_ana.cngen = TCanvas()

Definition at line 224 of file truth_ana.py.

truth_ana.cnprim = TCanvas()

Definition at line 227 of file truth_ana.py.

truth_ana.cnureg = TCanvas()

Definition at line 233 of file truth_ana.py.

truth_ana.cpdgtxt = TCanvas()

Definition at line 304 of file truth_ana.py.

truth_ana.cprim_chgmult = TCanvas()

Definition at line 293 of file truth_ana.py.

truth_ana.cprim_mom = TCanvas()

Definition at line 256 of file truth_ana.py.

truth_ana.cprim_mult = TCanvas()

Definition at line 265 of file truth_ana.py.

truth_ana.cprim_pdg = TCanvas()

Definition at line 248 of file truth_ana.py.

truth_ana.cprim_stopmult = TCanvas()

Definition at line 279 of file truth_ana.py.

truth_ana.ctheta = TCanvas()

Definition at line 325 of file truth_ana.py.

truth_ana.cx = TCanvas()

Definition at line 338 of file truth_ana.py.

truth_ana.cy = TCanvas()

Definition at line 341 of file truth_ana.py.

truth_ana.cz = TCanvas()

Definition at line 344 of file truth_ana.py.

truth_ana.enu = gen.NuP(igen).E()

Definition at line 201 of file truth_ana.py.

truth_ana.g4 = tm.GetG4Tree()

Definition at line 69 of file truth_ana.py.

truth_ana.gen = tm.GetGenTree()

Definition at line 68 of file truth_ana.py.

truth_ana.hall_t0 = TH1F("hall_t0", "g4Tree; time [ns];",100,0,1e4)

Definition at line 97 of file truth_ana.py.

truth_ana.hall_tf = TH1F("hall_tf", "g4Tree; time [ns];",100,0,1e4)

Definition at line 98 of file truth_ana.py.

truth_ana.henu_e = TH1F("henu_e","genTree;E_{#nu} [GeV]", 50,0,10)

Definition at line 101 of file truth_ana.py.

truth_ana.henu_ebar = TH1F("henu_ebar","genTree;E_{#nu} [GeV]", 50,0,10)

Definition at line 102 of file truth_ana.py.

truth_ana.henu_mu = TH1F("henu_mu","genTree;E_{#nu} [GeV]", 50,0,10)

Definition at line 99 of file truth_ana.py.

truth_ana.henu_mubar = TH1F("henu_mubar","genTree;E_{#nu} [GeV]",50,0,10)

Definition at line 100 of file truth_ana.py.

truth_ana.hg4nus = TH2F("hg4nus","g4Tree;N^{0} #nu's;GENIE scatter code",3,0,3,30,0,30)

Definition at line 72 of file truth_ana.py.

truth_ana.hngen = TH1F("hngen","genTree;N^{0} MCTruth;",5,0,5)

Definition at line 74 of file truth_ana.py.

truth_ana.hnprim = TH1F("hnprim","g4Tree;N^{0} primaries;",40,0,40)

Definition at line 77 of file truth_ana.py.

truth_ana.hnureg = TH1F("hnureg",";#nu vertex region;",10,0,10)

Definition at line 73 of file truth_ana.py.

truth_ana.hpdgtxt = TH1F("hpdgtxt","g4Tree: primaries;; counts per species",len(pdgcts),0,len(pdgcts))

Definition at line 212 of file truth_ana.py.

truth_ana.hpdgtxt_calo = TH1F("hpdgtxt_calo","g4Tree: primaries;; counts per species",len(pdgcts),0,len(pdgcts))

Definition at line 213 of file truth_ana.py.

truth_ana.hprim_chgmult_calo = TH1F("hprim_chgmult_calo","g4Tree;N^{0} charged primaries;",19,0,19)

Definition at line 86 of file truth_ana.py.

truth_ana.hprim_chgmult_tpc = TH1F("hprim_chgmult_tpc","g4Tree;N^{0} charged primaries;",19,0,19)

Definition at line 85 of file truth_ana.py.

truth_ana.hprim_mumom = TH1F("hprim_mumom","g4Tree;true momentum [GeV/c];",50,0,5)

Definition at line 79 of file truth_ana.py.

truth_ana.hprim_mumult = TH1F("hprim_mumult","g4Tree;primary particle multiplicity;",19,0,19)

Definition at line 81 of file truth_ana.py.

truth_ana.hprim_pdg = TH1F("hprim_pdg","g4Tree; MCParticle PDG code;",3400,-400,3000)

Definition at line 78 of file truth_ana.py.

truth_ana.hprim_pmom = TH1F("hprim_pmom","g4Tree;true momentum [GeV/c];",50,0,5)

Definition at line 80 of file truth_ana.py.

truth_ana.hprim_pmult = TH1F("hprim_pmult","g4Tree;primary particle multiplicity;",19,0,19)

Definition at line 82 of file truth_ana.py.

truth_ana.hprim_stopmult_calo = TH1F("hprim_stopmult_calo","g4Tree; N^{0} primaries stopping in active volume",10,0,10)

Definition at line 84 of file truth_ana.py.

truth_ana.hprim_stopmult_tpc = TH1F("hprim_stopmult_tpc","g4Tree; N^{0} primaries stopping in active volume",10,0,10)

Definition at line 83 of file truth_ana.py.

truth_ana.hprim_t0 = TH1F("hprim_t0", "g4Tree; time [ns];",100,0,1e4)

Definition at line 95 of file truth_ana.py.

truth_ana.hprim_tf = TH1F("hprim_tf", "g4Tree; time [ns];",100,0,1e4)

Definition at line 96 of file truth_ana.py.

truth_ana.hprim_theta_all = TH1F("hprim_theta_all","g4Tree: primaries;#theta [deg]",90,0,180)

Definition at line 89 of file truth_ana.py.

truth_ana.hprim_theta_mu = TH1F("hprim_theta_mu", "g4Tree: primaries;#theta [deg]",90,0,180)

Definition at line 90 of file truth_ana.py.

truth_ana.hprim_theta_p = TH1F("hprim_theta_p", "g4Tree: primaries;#theta [deg]",90,0,180)

Definition at line 91 of file truth_ana.py.

truth_ana.hprim_theta_pic = TH1F("hprim_theta_pic","g4Tree: primaries;#theta [deg]",90,0,180)

Definition at line 92 of file truth_ana.py.

truth_ana.hx = TH1F("hx","g4Tree;x [cm]",100,-300,300)

Definition at line 105 of file truth_ana.py.

truth_ana.hy = TH1F("hy","g4Tree;y [cm]",100,-450,120)

Definition at line 106 of file truth_ana.py.

truth_ana.hz = TH1F("hz","g4Tree;z [cm]",100,1250,1750)

Definition at line 107 of file truth_ana.py.

int truth_ana.inu = -1

Definition at line 132 of file truth_ana.py.

truth_ana.leg = ROOT.TLegend(0.6,0.2,0.8,0.4)

Definition at line 309 of file truth_ana.py.

truth_ana.leg2 = ROOT.TLegend(0.6,0.6,0.8,0.8)

Definition at line 330 of file truth_ana.py.

truth_ana.leg3 = ROOT.TLegend(0.6,0.6,0.8,0.8)

Definition at line 268 of file truth_ana.py.

truth_ana.leg4 = ROOT.TLegend(0.6,0.6,0.8,0.8)

Definition at line 282 of file truth_ana.py.

int truth_ana.nnu = 0

Definition at line 125 of file truth_ana.py.

int truth_ana.nprim_chg_calo = 0

Definition at line 131 of file truth_ana.py.

int truth_ana.nprim_chg_tpc = 0

Definition at line 130 of file truth_ana.py.

int truth_ana.nprim_mu = 0

Definition at line 126 of file truth_ana.py.

int truth_ana.nprim_p = 0

Definition at line 127 of file truth_ana.py.

int truth_ana.nstop_calo = 0

Definition at line 129 of file truth_ana.py.

int truth_ana.nstop_tpc = 0

Definition at line 128 of file truth_ana.py.

string truth_ana.null = input("press <Enter> to close canvas and exit program.")

Definition at line 351 of file truth_ana.py.

truth_ana.partPDG = pdgDB.GetParticle(pdgcode)

Definition at line 149 of file truth_ana.py.

truth_ana.pdgcode = g4.PDG(ig4)

Definition at line 146 of file truth_ana.py.

dictionary truth_ana.pdgcts = {13:0}

Definition at line 109 of file truth_ana.py.

dictionary truth_ana.pdgcts_calo = {13:0}

Definition at line 110 of file truth_ana.py.

truth_ana.pdgDB = ROOT.TDatabasePDG()

Definition at line 29 of file truth_ana.py.

dictionary truth_ana.pdgToName

Definition at line 32 of file truth_ana.py.

truth_ana.theta = ROOT.TMath.RadToDeg()*g4.SimMomBegin(ig4).Theta()

Definition at line 138 of file truth_ana.py.

truth_ana.tm = ROOT.TreeManager("./structuredtree.root")

central garana tree manager it links to all of the individual tree accessors given a file with garana trees produced in the default garana format

Definition at line 26 of file truth_ana.py.