Namespaces | Functions | Variables
plotSensitivity.py File Reference

Go to the source code of this file.

Namespaces

 plotSensitivity
 

Functions

def plotSensitivity.GetPercentile (y, X)
 

Variables

string plotSensitivity.x_title = "Beam Options"
 
list plotSensitivity.macros = ["Nominal","CP_run5_9116_80GeV","CP_run15_12388","CP_run17_6432","CP_run18_3849"]
 
list plotSensitivity.xs = [1,2,3,4,5]
 
list plotSensitivity.energies = [120.0,80.0,62.4,111.4,108.8]
 
list plotSensitivity.versions = ["v3r4p2","v3r4p2","v3r4p2","v3r4p2","v3r4p2"]
 
list plotSensitivity.users = ["ljf26","ljf26","ljf26","ljf26","ljf26"]
 
list plotSensitivity.locs = ["data","data","data","data","data"]
 
float plotSensitivity.sens_min = 1.4
 
float plotSensitivity.sens_max = 2.4
 
int plotSensitivity.flux_min = 0
 
int plotSensitivity.flux_max = 150
 
bool plotSensitivity.text_axis = True
 
list plotSensitivity.axis_labels = ["Nominal","2Horn","3HornNuMI","3HornSphere","3HornCyl"]
 
list plotSensitivity.cp_75th_percentiles = []
 
list plotSensitivity.sens_v_dcp = []
 
list plotSensitivity.dcps = []
 
int plotSensitivity.max = 0
 
 plotSensitivity.version = versions[i]
 
 plotSensitivity.user = users[i]
 
 plotSensitivity.macro = macros[i]
 
string plotSensitivity.fhc_file = "/dune/"
 
string plotSensitivity.rhc_file = "/dune/"
 
 plotSensitivity.fhc_tfile = ROOT.TFile(fhc_file)
 
 plotSensitivity.rhc_tfile = ROOT.TFile(rhc_file)
 
 plotSensitivity.sensitivity_file = open("/dune/data/users/"+os.getenv("USER")+"/sensitivities/"+macro+"_cpsens.dat")
 
 plotSensitivity.lines = sensitivity_file.readlines()
 
list plotSensitivity.cp_sens = []
 
 plotSensitivity.splitline = line.split()
 
 plotSensitivity.deltacp = float(splitline[0])
 
 plotSensitivity.delta_chi2 = float(splitline[1])
 
 plotSensitivity.c1 = ROOT.TCanvas()
 
 plotSensitivity.g1 = ROOT.TGraph(len(xs),array.array('d',xs),array.array('d',cp_75th_percentiles))
 
float plotSensitivity.height = 1.5
 
 plotSensitivity.n = len(sens_v_dcp[0])
 
 plotSensitivity.c = ROOT.TCanvas("c","c",500,500);
 
 plotSensitivity.frame = ROOT.TH2D("frame","frame",100,-1,1,100,0,height);
 
list plotSensitivity.graphs = []
 
list plotSensitivity.colors = [2,4,6,8,ROOT.kOrange]
 
 plotSensitivity.legend = ROOT.TLegend(0.2,0.7,0.8,0.9);
 
 plotSensitivity.temp_graph = ROOT.TGraph(n,array.array('d',dcps),array.array('d',sens_v_dcp[k]))