Namespaces | Functions | Variables
computeNormScales.py File Reference

Go to the source code of this file.

Namespaces

 computeNormScales
 

Functions

def computeNormScales.GetPercentile (histo, X)
 
def computeNormScales.GetMedian (histo)
 
def computeNormScales.GetMinimum (histo)
 

Variables

list computeNormScales.hierarchies = ["nh","ih"]
 
list computeNormScales.plotvars = ["cp_75thpercentile","mh_minimum"]
 
list computeNormScales.tweaks = ["fhc_numu","fhc_numubar","fhc_nue","rhc_numu","rhc_numu","rhc_numubar","rhc_nuebar"]
 
list computeNormScales.amounts_varied = [0,10,25,50,75,90,100]
 
list computeNormScales.baseline_medians = []
 
 computeNormScales.mixing_param = plotvar[0:2]
 
 computeNormScales.baseline_file = ROOT.TFile("/lbne/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots/ProtonP120GeV_"+hierarchy+"_"+mixing_param+"_histos.root");
 
list computeNormScales.medians = [[],[],[]]
 
list computeNormScales.histos = [[],[],[]]
 
list computeNormScales.amounts_varied_good_files = []
 
 computeNormScales.var = tweak+str(amount_varied)
 
string computeNormScales.file_prefix = var+"_"
 
 computeNormScales.t_file = ROOT.TFile("/lbne/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots/"+file_prefix+"_histos.root");
 
list computeNormScales.metrics = [[],[],[]]
 
string computeNormScales.nomfhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_200kA_LBNEFD_fastmc.root"
 
string computeNormScales.nomrhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/-200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_-200kA_LBNEFD_fastmc.root"
 
string computeNormScales.varfhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_200kA_LBNEFD_fastmc.root"
 
string computeNormScales.varrhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/-200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_-200kA_LBNEFD_fastmc.root"
 
int computeNormScales.power = 120
 
float computeNormScales.antinufrac = 0.5
 
 computeNormScales.c1 = ROOT.TCanvas(file_prefix);
 
list computeNormScales.t_graphs = []
 
int computeNormScales.mgraph = 0
 
list computeNormScales.line_styles = [1,2,3]
 
list computeNormScales.line_colors = [1,2,4]
 
 computeNormScales.temp = ROOT.TGraph(len(amounts_varied_good_files),array.array('d',amounts_varied_good_files),array.array('d',medians[i]));
 
 computeNormScales.leg = ROOT.TLegend(0.35,0.2,0.65,0.5);
 
 computeNormScales.m_graph = ROOT.TGraph(len(amounts_varied_good_files),array.array('d',amounts_varied_good_files),array.array('d',metrics[i]));
 
 computeNormScales.ofile = ROOT.TFile(file_prefix+".root","RECREATE")