Namespaces | Variables
make_THn_beam_input.py File Reference

Go to the source code of this file.

Namespaces

 make_THn_beam_input
 

Variables

 make_THn_beam_input.parser = ap()
 
 make_THn_beam_input.type
 
 make_THn_beam_input.str
 
 make_THn_beam_input.help
 
 make_THn_beam_input.default
 
 make_THn_beam_input.int
 
 make_THn_beam_input.args = parser.parse_args()
 
 make_THn_beam_input.inputFile = RT.TFile(args.i, "OPEN")
 
 make_THn_beam_input.tree = inputFile.Get("beamreco/tree")
 
 make_THn_beam_input.outputFile = RT.TFile(args.o, "RECREATE")
 
 make_THn_beam_input.nBins = array("i", [100, 32, 32, 32, 32])
 
int make_THn_beam_input.min_p = 0
 
int make_THn_beam_input.max_p = 2
 
 make_THn_beam_input.mins = array("d", [min_p, 0., 0., 0., 0.])
 
 make_THn_beam_input.maxes = array("d", [max_p, 192., 192., 192., 192.])
 
 make_THn_beam_input.Pions = RT.THnSparseD("Pions", "", 5, nBins, mins, maxes)
 
 make_THn_beam_input.Protons = RT.THnSparseD("Protons", "", 5, nBins, mins, maxes)
 
 make_THn_beam_input.Electrons = RT.THnSparseD("Electrons", "", 5, nBins, mins, maxes)
 
 make_THn_beam_input.Kaons = RT.THnSparseD("Kaons", "", 5, nBins, mins, maxes)
 
list make_THn_beam_input.pdfs = [Pions, Protons, Electrons]
 
int make_THn_beam_input.counter = 0
 
 make_THn_beam_input.max_entries = tree.GetEntries()
 
list make_THn_beam_input.f_v_up = [i for i in e.fibers_v_upstream]
 
list make_THn_beam_input.f_h_up = [i for i in e.fibers_h_upstream]
 
list make_THn_beam_input.f_v_down = [i for i in e.fibers_v_downstream]
 
list make_THn_beam_input.f_h_down = [i for i in e.fibers_h_downstream]
 
 make_THn_beam_input.perfectP = e.perfectP
 
 make_THn_beam_input.Momentum = e.Momentum
 
list make_THn_beam_input.pdgs = [i for i in e.possible_pdg]
 
 make_THn_beam_input.data = array("d", [Momentum, f_v_up[0], f_h_up[0], f_v_down[0], f_h_down[0]])