Variables | |
parser = ap() | |
type | |
str | |
help | |
default | |
int | |
args = parser.parse_args() | |
inputFile = RT.TFile(args.i, "OPEN") | |
tree = inputFile.Get("beamreco/tree") | |
outputFile = RT.TFile(args.o, "RECREATE") | |
nBins = array("i", [100, 32, 32, 32, 32]) | |
int | min_p = 0 |
int | max_p = 2 |
mins = array("d", [min_p, 0., 0., 0., 0.]) | |
maxes = array("d", [max_p, 192., 192., 192., 192.]) | |
Pions = RT.THnSparseD("Pions", "", 5, nBins, mins, maxes) | |
Protons = RT.THnSparseD("Protons", "", 5, nBins, mins, maxes) | |
Electrons = RT.THnSparseD("Electrons", "", 5, nBins, mins, maxes) | |
Kaons = RT.THnSparseD("Kaons", "", 5, nBins, mins, maxes) | |
list | pdfs = [Pions, Protons, Electrons] |
int | counter = 0 |
max_entries = tree.GetEntries() | |
list | f_v_up = [i for i in e.fibers_v_upstream] |
list | f_h_up = [i for i in e.fibers_h_upstream] |
list | f_v_down = [i for i in e.fibers_v_downstream] |
list | f_h_down = [i for i in e.fibers_h_downstream] |
perfectP = e.perfectP | |
Momentum = e.Momentum | |
list | pdgs = [i for i in e.possible_pdg] |
data = array("d", [Momentum, f_v_up[0], f_h_up[0], f_v_down[0], f_h_down[0]]) | |
make_THn_beam_input.args = parser.parse_args() |
Definition at line 10 of file make_THn_beam_input.py.
int make_THn_beam_input.counter = 0 |
Definition at line 56 of file make_THn_beam_input.py.
Definition at line 80 of file make_THn_beam_input.py.
make_THn_beam_input.default |
Definition at line 6 of file make_THn_beam_input.py.
Definition at line 48 of file make_THn_beam_input.py.
list make_THn_beam_input.f_h_down = [i for i in e.fibers_h_downstream] |
Definition at line 68 of file make_THn_beam_input.py.
list make_THn_beam_input.f_h_up = [i for i in e.fibers_h_upstream] |
Definition at line 66 of file make_THn_beam_input.py.
list make_THn_beam_input.f_v_down = [i for i in e.fibers_v_downstream] |
Definition at line 67 of file make_THn_beam_input.py.
list make_THn_beam_input.f_v_up = [i for i in e.fibers_v_upstream] |
Definition at line 65 of file make_THn_beam_input.py.
make_THn_beam_input.help |
Definition at line 6 of file make_THn_beam_input.py.
make_THn_beam_input.inputFile = RT.TFile(args.i, "OPEN") |
Definition at line 16 of file make_THn_beam_input.py.
make_THn_beam_input.int |
Definition at line 8 of file make_THn_beam_input.py.
Definition at line 49 of file make_THn_beam_input.py.
make_THn_beam_input.max_entries = tree.GetEntries() |
Definition at line 59 of file make_THn_beam_input.py.
int make_THn_beam_input.max_p = 2 |
Definition at line 24 of file make_THn_beam_input.py.
make_THn_beam_input.maxes = array("d", [max_p, 192., 192., 192., 192.]) |
Definition at line 44 of file make_THn_beam_input.py.
int make_THn_beam_input.min_p = 0 |
Definition at line 23 of file make_THn_beam_input.py.
make_THn_beam_input.mins = array("d", [min_p, 0., 0., 0., 0.]) |
Definition at line 43 of file make_THn_beam_input.py.
make_THn_beam_input.Momentum = e.Momentum |
Definition at line 70 of file make_THn_beam_input.py.
make_THn_beam_input.nBins = array("i", [100, 32, 32, 32, 32]) |
Definition at line 20 of file make_THn_beam_input.py.
make_THn_beam_input.outputFile = RT.TFile(args.o, "RECREATE") |
Definition at line 18 of file make_THn_beam_input.py.
make_THn_beam_input.parser = ap() |
Definition at line 4 of file make_THn_beam_input.py.
Definition at line 52 of file make_THn_beam_input.py.
list make_THn_beam_input.pdgs = [i for i in e.possible_pdg] |
Definition at line 71 of file make_THn_beam_input.py.
make_THn_beam_input.perfectP = e.perfectP |
Definition at line 69 of file make_THn_beam_input.py.
Definition at line 46 of file make_THn_beam_input.py.
Definition at line 47 of file make_THn_beam_input.py.
make_THn_beam_input.str |
Definition at line 6 of file make_THn_beam_input.py.
make_THn_beam_input.tree = inputFile.Get("beamreco/tree") |
Definition at line 17 of file make_THn_beam_input.py.
make_THn_beam_input.type |
Definition at line 6 of file make_THn_beam_input.py.