Functions | |
def | GetPercentile (y, X) |
Variables | |
string | x_title = "Beam Options" |
list | macros = ["Nominal","CP_run5_9116_80GeV","CP_run15_12388","CP_run17_6432","CP_run18_3849"] |
list | xs = [1,2,3,4,5] |
list | energies = [120.0,80.0,62.4,111.4,108.8] |
list | versions = ["v3r4p2","v3r4p2","v3r4p2","v3r4p2","v3r4p2"] |
list | users = ["ljf26","ljf26","ljf26","ljf26","ljf26"] |
list | locs = ["data","data","data","data","data"] |
float | sens_min = 1.4 |
float | sens_max = 2.4 |
int | flux_min = 0 |
int | flux_max = 150 |
bool | text_axis = True |
list | axis_labels = ["Nominal","2Horn","3HornNuMI","3HornSphere","3HornCyl"] |
list | cp_75th_percentiles = [] |
list | sens_v_dcp = [] |
list | dcps = [] |
int | max = 0 |
version = versions[i] | |
user = users[i] | |
macro = macros[i] | |
string | fhc_file = "/dune/" |
string | rhc_file = "/dune/" |
fhc_tfile = ROOT.TFile(fhc_file) | |
rhc_tfile = ROOT.TFile(rhc_file) | |
sensitivity_file = open("/dune/data/users/"+os.getenv("USER")+"/sensitivities/"+macro+"_cpsens.dat") | |
lines = sensitivity_file.readlines() | |
list | cp_sens = [] |
splitline = line.split() | |
deltacp = float(splitline[0]) | |
delta_chi2 = float(splitline[1]) | |
c1 = ROOT.TCanvas() | |
g1 = ROOT.TGraph(len(xs),array.array('d',xs),array.array('d',cp_75th_percentiles)) | |
float | height = 1.5 |
n = len(sens_v_dcp[0]) | |
c = ROOT.TCanvas("c","c",500,500); | |
frame = ROOT.TH2D("frame","frame",100,-1,1,100,0,height); | |
list | graphs = [] |
list | colors = [2,4,6,8,ROOT.kOrange] |
legend = ROOT.TLegend(0.2,0.7,0.8,0.9); | |
temp_graph = ROOT.TGraph(n,array.array('d',dcps),array.array('d',sens_v_dcp[k])) | |
def plotSensitivity.GetPercentile | ( | y, | |
X | |||
) |
Definition at line 33 of file plotSensitivity.py.
list plotSensitivity.axis_labels = ["Nominal","2Horn","3HornNuMI","3HornSphere","3HornCyl"] |
Definition at line 16 of file plotSensitivity.py.
plotSensitivity.c = ROOT.TCanvas("c","c",500,500); |
Definition at line 111 of file plotSensitivity.py.
plotSensitivity.c1 = ROOT.TCanvas() |
Definition at line 83 of file plotSensitivity.py.
list plotSensitivity.colors = [2,4,6,8,ROOT.kOrange] |
Definition at line 131 of file plotSensitivity.py.
list plotSensitivity.cp_75th_percentiles = [] |
Definition at line 44 of file plotSensitivity.py.
list plotSensitivity.cp_sens = [] |
Definition at line 66 of file plotSensitivity.py.
list plotSensitivity.dcps = [] |
Definition at line 46 of file plotSensitivity.py.
plotSensitivity.delta_chi2 = float(splitline[1]) |
Definition at line 70 of file plotSensitivity.py.
plotSensitivity.deltacp = float(splitline[0]) |
Definition at line 69 of file plotSensitivity.py.
list plotSensitivity.energies = [120.0,80.0,62.4,111.4,108.8] |
Definition at line 7 of file plotSensitivity.py.
string plotSensitivity.fhc_file = "/dune/" |
Definition at line 56 of file plotSensitivity.py.
plotSensitivity.fhc_tfile = ROOT.TFile(fhc_file) |
Definition at line 58 of file plotSensitivity.py.
int plotSensitivity.flux_max = 150 |
Definition at line 14 of file plotSensitivity.py.
int plotSensitivity.flux_min = 0 |
Definition at line 13 of file plotSensitivity.py.
plotSensitivity.frame = ROOT.TH2D("frame","frame",100,-1,1,100,0,height); |
Definition at line 113 of file plotSensitivity.py.
plotSensitivity.g1 = ROOT.TGraph(len(xs),array.array('d',xs),array.array('d',cp_75th_percentiles)) |
Definition at line 85 of file plotSensitivity.py.
list plotSensitivity.graphs = [] |
Definition at line 130 of file plotSensitivity.py.
float plotSensitivity.height = 1.5 |
Definition at line 108 of file plotSensitivity.py.
plotSensitivity.legend = ROOT.TLegend(0.2,0.7,0.8,0.9); |
Definition at line 132 of file plotSensitivity.py.
plotSensitivity.lines = sensitivity_file.readlines() |
Definition at line 64 of file plotSensitivity.py.
list plotSensitivity.locs = ["data","data","data","data","data"] |
Definition at line 10 of file plotSensitivity.py.
plotSensitivity.macro = macros[i] |
Definition at line 53 of file plotSensitivity.py.
list plotSensitivity.macros = ["Nominal","CP_run5_9116_80GeV","CP_run15_12388","CP_run17_6432","CP_run18_3849"] |
Definition at line 5 of file plotSensitivity.py.
plotSensitivity.max = 0 |
Definition at line 47 of file plotSensitivity.py.
plotSensitivity.n = len(sens_v_dcp[0]) |
Definition at line 109 of file plotSensitivity.py.
string plotSensitivity.rhc_file = "/dune/" |
Definition at line 57 of file plotSensitivity.py.
plotSensitivity.rhc_tfile = ROOT.TFile(rhc_file) |
Definition at line 59 of file plotSensitivity.py.
float plotSensitivity.sens_max = 2.4 |
Definition at line 12 of file plotSensitivity.py.
float plotSensitivity.sens_min = 1.4 |
Definition at line 11 of file plotSensitivity.py.
list plotSensitivity.sens_v_dcp = [] |
Definition at line 45 of file plotSensitivity.py.
plotSensitivity.sensitivity_file = open("/dune/data/users/"+os.getenv("USER")+"/sensitivities/"+macro+"_cpsens.dat") |
Definition at line 63 of file plotSensitivity.py.
plotSensitivity.splitline = line.split() |
Definition at line 68 of file plotSensitivity.py.
plotSensitivity.temp_graph = ROOT.TGraph(n,array.array('d',dcps),array.array('d',sens_v_dcp[k])) |
Definition at line 137 of file plotSensitivity.py.
bool plotSensitivity.text_axis = True |
Definition at line 15 of file plotSensitivity.py.
plotSensitivity.user = users[i] |
Definition at line 52 of file plotSensitivity.py.
list plotSensitivity.users = ["ljf26","ljf26","ljf26","ljf26","ljf26"] |
Definition at line 9 of file plotSensitivity.py.
plotSensitivity.version = versions[i] |
Definition at line 51 of file plotSensitivity.py.
list plotSensitivity.versions = ["v3r4p2","v3r4p2","v3r4p2","v3r4p2","v3r4p2"] |
Definition at line 8 of file plotSensitivity.py.
string plotSensitivity.x_title = "Beam Options" |
Definition at line 4 of file plotSensitivity.py.
list plotSensitivity.xs = [1,2,3,4,5] |
Definition at line 6 of file plotSensitivity.py.