Variables
energyTest Namespace Reference

Variables

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

Variable Documentation

float energyTest.antinufrac = 0.5

Definition at line 34 of file energyTest.py.

energyTest.blah = ROOT.TGraph(len(energies),array('d',energies),array('d',mean_sensitivities));

Definition at line 112 of file energyTest.py.

energyTest.canv = ROOT.TCanvas("MyCanvas","MyCanvas")

Definition at line 76 of file energyTest.py.

list energyTest.energies = [20,30,50,60,70,80,90,110,120,130]

Definition at line 96 of file energyTest.py.

energyTest.energy = optimization.getEnergy(float(iteration),"FHC")

Definition at line 33 of file energyTest.py.

energyTest.fitness = tfitnesses[0]

Definition at line 37 of file energyTest.py.

energyTest.fitness_error = tfiterrors[0]

Definition at line 39 of file energyTest.py.

list energyTest.fitness_errors = []

Definition at line 11 of file energyTest.py.

energyTest.fitness_vs_parameter = ROOT.TGraphErrors(len(iterations),array('d',parameter_values[i]),array('d',fitnesses),array('d',zero_errors),array('d',fitness_errors))

Definition at line 82 of file energyTest.py.

list energyTest.fitnesses = []

Definition at line 10 of file energyTest.py.

energyTest.fluxdirs = glob.glob(fluxpath+"*")

Definition at line 20 of file energyTest.py.

string energyTest.fluxpath = "/lbne/data/users/ljf26/fluxfiles/g4lbne/"

Definition at line 19 of file energyTest.py.

string energyTest.FMC_SENSIT = "/lbne/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots"

Definition at line 94 of file energyTest.py.

energyTest.ih_cp_file = ROOT.TFile(FMC_SENSIT+"/ProtonP"+str(int(energy))+"GeV_RealisticPower_ih_cp_histos.root")

Definition at line 102 of file energyTest.py.

energyTest.ih_sensitivity = OptimizationUtils.GetPercentile(ih_cp_file.Get("h2"),75)

Definition at line 108 of file energyTest.py.

energyTest.iteration = dir.split("/")[9].split("-")[2]

Definition at line 27 of file energyTest.py.

bool energyTest.iteration_found = False

Definition at line 63 of file energyTest.py.

list energyTest.iterations = []

Find processed configurations and calculate fitnesses #####.

Definition at line 9 of file energyTest.py.

list energyTest.iterations2 = []

Definition at line 48 of file energyTest.py.

energyTest.knobturns = optimization.getKnobturns()

Definition at line 59 of file energyTest.py.

int energyTest.max_iterations = 1

Definition at line 15 of file energyTest.py.

list energyTest.mean_sensitivities = []

Definition at line 97 of file energyTest.py.

energyTest.n_parameters = len(optimization.parameter_names);

Definition at line 53 of file energyTest.py.

energyTest.nh_cp_file = ROOT.TFile(FMC_SENSIT+"/ProtonP"+str(int(energy))+"GeV_RealisticPower_nh_cp_histos.root")

Definition at line 101 of file energyTest.py.

energyTest.nh_sensitivity = OptimizationUtils.GetPercentile(nh_cp_file.Get("h2"),75)

Definition at line 107 of file energyTest.py.

energyTest.optimization = Optimizations.Optimization(optimization_name)

Definition at line 17 of file energyTest.py.

string energyTest.optimization_name = "power_test"

Definition at line 5 of file energyTest.py.

list energyTest.parameter_histos = []

Definition at line 51 of file energyTest.py.

energyTest.parameter_name = optimization.parameter_names[i]

Definition at line 55 of file energyTest.py.

list energyTest.parameter_values = []

Definition at line 49 of file energyTest.py.

list energyTest.proton_energies = []

Definition at line 12 of file energyTest.py.

string energyTest.varfhcfile = dir+"/200kA/flux/histos_g4lbne_"

Definition at line 29 of file energyTest.py.

string energyTest.varrhcfile = dir+"/-200kA/flux/histos_g4lbne_"

Definition at line 30 of file energyTest.py.

string energyTest.x_axis_title = optimization.parameter_names[i]

Definition at line 84 of file energyTest.py.

list energyTest.zero_errors = []

Definition at line 13 of file energyTest.py.