Functions | |
def | shift_bins (n_bins, shift) |
def | flip_pions (h_in) |
def | flat (h_in) |
def | shift_pions (h_in, i) |
def | gaus_pions (h_in) |
def | check_bins (h_in) |
def | get_variation (h_in, t, j=0) |
Variables | |
parser = ap() | |
type | |
str | |
help | |
default | |
int | |
float | |
args = parser.parse_args() | |
f = RT.TFile(args.i, "OPEN") | |
t = f.Get("pduneana/beamana") | |
list | end_p = [0., .4, .6, .8, 1.] |
list | nbins = [ 5, 25, 25, 25, 10] |
list | shifts = [ 2, 12, 12, 12, 5] |
fout = RT.TFile(args.o, "RECREATE") | |
list | rs = [] |
h = RT.TH1D("h" + str(i), "", nbins[i-1], -1., 1.) | |
h2 = get_variation(h, args.t, i-1) | |
r = h2.Clone() | |
def make_pion_angle.check_bins | ( | h_in | ) |
Definition at line 63 of file make_pion_angle.py.
def make_pion_angle.flat | ( | h_in | ) |
Definition at line 38 of file make_pion_angle.py.
def make_pion_angle.flip_pions | ( | h_in | ) |
Definition at line 32 of file make_pion_angle.py.
def make_pion_angle.gaus_pions | ( | h_in | ) |
Definition at line 53 of file make_pion_angle.py.
def make_pion_angle.get_variation | ( | h_in, | |
t, | |||
j = 0 |
|||
) |
Definition at line 68 of file make_pion_angle.py.
def make_pion_angle.shift_bins | ( | n_bins, | |
shift | |||
) |
Definition at line 24 of file make_pion_angle.py.
def make_pion_angle.shift_pions | ( | h_in, | |
i | |||
) |
Definition at line 45 of file make_pion_angle.py.
make_pion_angle.args = parser.parse_args() |
Definition at line 10 of file make_pion_angle.py.
make_pion_angle.default |
Definition at line 6 of file make_pion_angle.py.
list make_pion_angle.end_p = [0., .4, .6, .8, 1.] |
Definition at line 15 of file make_pion_angle.py.
make_pion_angle.f = RT.TFile(args.i, "OPEN") |
Definition at line 12 of file make_pion_angle.py.
make_pion_angle.float |
Definition at line 9 of file make_pion_angle.py.
make_pion_angle.fout = RT.TFile(args.o, "RECREATE") |
Definition at line 20 of file make_pion_angle.py.
make_pion_angle.h = RT.TH1D("h" + str(i), "", nbins[i-1], -1., 1.) |
Definition at line 82 of file make_pion_angle.py.
make_pion_angle.h2 = get_variation(h, args.t, i-1) |
Definition at line 96 of file make_pion_angle.py.
make_pion_angle.help |
Definition at line 6 of file make_pion_angle.py.
make_pion_angle.int |
Definition at line 8 of file make_pion_angle.py.
list make_pion_angle.nbins = [ 5, 25, 25, 25, 10] |
Definition at line 16 of file make_pion_angle.py.
make_pion_angle.parser = ap() |
Definition at line 4 of file make_pion_angle.py.
make_pion_angle.r = h2.Clone() |
Definition at line 98 of file make_pion_angle.py.
list make_pion_angle.rs = [] |
Definition at line 22 of file make_pion_angle.py.
list make_pion_angle.shifts = [ 2, 12, 12, 12, 5] |
Definition at line 17 of file make_pion_angle.py.
make_pion_angle.str |
Definition at line 6 of file make_pion_angle.py.
make_pion_angle.t = f.Get("pduneana/beamana") |
Definition at line 13 of file make_pion_angle.py.
make_pion_angle.type |
Definition at line 6 of file make_pion_angle.py.