Namespaces | Variables
energyTest.py File Reference

Go to the source code of this file.

Namespaces

 energyTest
 

Variables

string energyTest.optimization_name = "power_test"
 
list energyTest.iterations = []
 Find processed configurations and calculate fitnesses #####. More...
 
list energyTest.fitnesses = []
 
list energyTest.fitness_errors = []
 
list energyTest.proton_energies = []
 
list energyTest.zero_errors = []
 
int energyTest.max_iterations = 1
 
 energyTest.optimization = Optimizations.Optimization(optimization_name)
 
string energyTest.fluxpath = "/lbne/data/users/ljf26/fluxfiles/g4lbne/"
 
 energyTest.fluxdirs = glob.glob(fluxpath+"*")
 
 energyTest.iteration = dir.split("/")[9].split("-")[2]
 
string energyTest.varfhcfile = dir+"/200kA/flux/histos_g4lbne_"
 
string energyTest.varrhcfile = dir+"/-200kA/flux/histos_g4lbne_"
 
 energyTest.energy = optimization.getEnergy(float(iteration),"FHC")
 
float energyTest.antinufrac = 0.5
 
 energyTest.fitness = tfitnesses[0]
 
 energyTest.fitness_error = tfiterrors[0]
 
list energyTest.iterations2 = []
 
list energyTest.parameter_values = []
 
list energyTest.parameter_histos = []
 
 energyTest.n_parameters = len(optimization.parameter_names);
 
 energyTest.parameter_name = optimization.parameter_names[i]
 
 energyTest.knobturns = optimization.getKnobturns()
 
bool energyTest.iteration_found = False
 
 energyTest.canv = ROOT.TCanvas("MyCanvas","MyCanvas")
 
 energyTest.fitness_vs_parameter = ROOT.TGraphErrors(len(iterations),array('d',parameter_values[i]),array('d',fitnesses),array('d',zero_errors),array('d',fitness_errors))
 
 energyTest.x_axis_title = optimization.parameter_names[i]
 
string energyTest.FMC_SENSIT = "/lbne/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots"
 
list energyTest.energies = [20,30,50,60,70,80,90,110,120,130]
 
list energyTest.mean_sensitivities = []
 
 energyTest.nh_cp_file = ROOT.TFile(FMC_SENSIT+"/ProtonP"+str(int(energy))+"GeV_RealisticPower_nh_cp_histos.root")
 
 energyTest.ih_cp_file = ROOT.TFile(FMC_SENSIT+"/ProtonP"+str(int(energy))+"GeV_RealisticPower_ih_cp_histos.root")
 
 energyTest.nh_sensitivity = OptimizationUtils.GetPercentile(nh_cp_file.Get("h2"),75)
 
 energyTest.ih_sensitivity = OptimizationUtils.GetPercentile(ih_cp_file.Get("h2"),75)
 
 energyTest.blah = ROOT.TGraph(len(energies),array('d',energies),array('d',mean_sensitivities));