Namespaces | Functions | Variables
drawSensitivitySummaries_simplevars.py File Reference

Go to the source code of this file.

Namespaces

 drawSensitivitySummaries_simplevars
 

Functions

def drawSensitivitySummaries_simplevars.myfunc (x, par)
 
def drawSensitivitySummaries_simplevars.GetPercentile (histo, X)
 
def drawSensitivitySummaries_simplevars.GetMinimum (histo)
 
def drawSensitivitySummaries_simplevars.GetFractionAtMoreThanXSigma (histo, X)
 

Variables

bool drawSensitivitySummaries_simplevars.use_realistic_powers = True
 
bool drawSensitivitySummaries_simplevars.use_fixed_scale = True
 
list drawSensitivitySummaries_simplevars.tempgraphs = []
 
list drawSensitivitySummaries_simplevars.amounts_varied = [0,50,90,200,500]
 
list drawSensitivitySummaries_simplevars.modes = ["fhc","rhc"]
 
list drawSensitivitySummaries_simplevars.nus = ["numu","numubar","nuenuebar"]
 
list drawSensitivitySummaries_simplevars.vars = ["0to0p5GeVPlus10per","0p5to1GeVPlus10per","1to2GeVPlus10per","2to3GeVPlus10per","3to4GeVPlus10per","4to5GeVPlus10per","5to6GeVPlus10per","6to7GeVPlus10per","7to8GeVPlus10per","8to9GeVPlus10per","9to10GeVPlus10per","10to15GeVPlus10per","15to20GeVPlus10per","20to120GeVPlus10per"]
 
list drawSensitivitySummaries_simplevars.bin_centers = [0.25,0.75,1.5,2.5,3.5,4.5,5.5,6.5,7.5,8.5,9.5,12.5,17.5]
 
 drawSensitivitySummaries_simplevars.bin_centers_array = array.array('d',bin_centers)
 
list drawSensitivitySummaries_simplevars.hierarchies = ["nh","ih"]
 
list drawSensitivitySummaries_simplevars.plotvars = ["cp_75thpercentile","mh_minimum"]
 
 drawSensitivitySummaries_simplevars.outfile = ROOT.TFile("temp.root","RECREATE");
 
list drawSensitivitySummaries_simplevars.medians = [[],[],[]]
 
list drawSensitivitySummaries_simplevars.baseline_medians = []
 
 drawSensitivitySummaries_simplevars.mixing_param = plotvar[0:2]
 
 drawSensitivitySummaries_simplevars.baseline_file = ROOT.TFile("/lbne/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots/ProtonP120GeV_"+hierarchy+"_"+mixing_param+"_histos.root");
 
 drawSensitivitySummaries_simplevars.var = vars[i]+str(amount_varied)
 
string drawSensitivitySummaries_simplevars.file_prefix = mode+nu+var+"_"
 
 drawSensitivitySummaries_simplevars.t_file = ROOT.TFile("/lbne/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots/"+file_prefix+"_histos.root");
 
 drawSensitivitySummaries_simplevars.c1 = ROOT.TCanvas(file_prefix);
 
list drawSensitivitySummaries_simplevars.t_graphs = []
 
list drawSensitivitySummaries_simplevars.line_styles = [1,2,3]
 
list drawSensitivitySummaries_simplevars.line_colors = [1,2,4]
 
 drawSensitivitySummaries_simplevars.temp = ROOT.TGraph(len(bin_centers_array),bin_centers_array,array.array('d',medians[i]));
 
string drawSensitivitySummaries_simplevars.nu_string = "#nu_{#mu}"
 
 drawSensitivitySummaries_simplevars.leg = ROOT.TLegend(0.45,0.3,0.85,0.55);
 
list drawSensitivitySummaries_simplevars.sensitivity_changes = []
 
list drawSensitivitySummaries_simplevars.flux_changes = []
 
 drawSensitivitySummaries_simplevars.variation = amounts_varied[variation_iter]
 
 drawSensitivitySummaries_simplevars.temp_file = ROOT.TFile("/lbne/data/users/ljf26/fluxfiles/sensitivity_comps_"+str(variation)+"_2Feb2015.root");
 
 drawSensitivitySummaries_simplevars.mygraph = temp_file.Get(plotvar+"_"+mode+"_"+nu+"_"+hierarchy)
 
list drawSensitivitySummaries_simplevars.temps = []
 
list drawSensitivitySummaries_simplevars.lines = []
 
list drawSensitivitySummaries_simplevars.tempfuncs = []
 
int drawSensitivitySummaries_simplevars.xlow = -20
 
int drawSensitivitySummaries_simplevars.xhigh = 600
 
int drawSensitivitySummaries_simplevars.maximum = 1
 
int drawSensitivitySummaries_simplevars.minimum = 1
 
 drawSensitivitySummaries_simplevars.myrange = ROOT.TMath.Max(ROOT.TMath.Abs(maximum),ROOT.TMath.Abs(minimum));
 
 drawSensitivitySummaries_simplevars.title = ROOT.gPad.GetPrimitive("title");
 
int drawSensitivitySummaries_simplevars.iter_100 = -1
 
int drawSensitivitySummaries_simplevars.iter_110 = -1
 
tuple drawSensitivitySummaries_simplevars.slope = (sensitivity_changes[bin_iter][iter_110]-sensitivity_changes[bin_iter][iter_100])/(flux_changes[bin_iter][iter_110]-flux_changes[bin_iter][iter_100]);
 
 drawSensitivitySummaries_simplevars.y_int = sensitivity_changes[bin_iter][iter_110]-slope*flux_changes[bin_iter][iter_110];
 
 drawSensitivitySummaries_simplevars.ylow_line = slope*xlow+y_int
 
 drawSensitivitySummaries_simplevars.yhigh_line = slope*xhigh+y_int
 
 drawSensitivitySummaries_simplevars.xlow_line = xlow
 
 drawSensitivitySummaries_simplevars.xhigh_line = xhigh
 
string drawSensitivitySummaries_simplevars.scale_string = "fixedScale"