Variables | |
optimization_name = sys.argv[1] | |
PARSE INPUT ARGUMENT #####. More... | |
int | max_configurations = 3200 |
list | configurations = [] |
Find processed configurations and calculate fitnesses #####. More... | |
list | fitnesses = [] |
list | fitness_errors = [] |
list | proton_energies = [] |
list | zero_errors = [] |
int | n_var_plots = 1 |
optimization = Optimizations.Optimization(optimization_name) | |
string | fluxpath = optimization.output_location+"users/ljf26/fluxfiles/g4lbne/" |
fluxdirs = glob.glob(fluxpath+"*") | |
configuration = dir.split("/")[9].split("-")[2] | |
fitness = tfitnesses[0] | |
fitness_error = fiterrors[0] | |
list | ordered_indices = [i[0] for i in sorted(enumerate(fitnesses), key=lambda x:x[1],reverse=True)] |
knobturns = optimization.getKnobturns() | |
config_number = configurations[ordered_indices[i]] | |
int | knob_index = -1 |
knob_names = optimization.parameter_names | |
all_fitnesses = optimization.getFitness(int(config_number)) | |
nom_flux_file_fhc = ROOT.TFile("/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_200kA_LBNEFD_fastmc.root") | |
nom_flux_file_rhc = ROOT.TFile("/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/-200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_-200kA_LBNEFD_fastmc.root") | |
list | nom_flux = [] |
int | n_fluxes_to_plot = 4 |
list | var_flux_files_fhc = [] |
list | var_flux_files_rhc = [] |
list | var_fluxes = [] |
list | new_bins = [0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,5.5,6,6.5,7,7.5,8] |
fhcenergy = optimization.getEnergy(configuration,"FHC") | |
rhcenergy = optimization.getEnergy(configuration,"RHC") | |
float | scale_factor_fhc = 7.5e13 |
float | scale_factor_rhc = 7.5e13 |
canv = ROOT.TCanvas("MyCanvas","MyCanvas") | |
list | maxes = [nom_flux[j].GetMaximum()] |
float | plot_max = max(maxes)*1.7 |
list | colors = [2,4,8,6] |
frame = ROOT.TH2D("frame","frame",100,0,8,100,0,plot_max); | |
leg = ROOT.TLegend(0.6,0.6,0.8,0.8) | |
list | labels = [] |
list | flavor_strings = ["numu_fhc","numubar_fhc","nue_fhc","nuebar_fhc","numu_rhc","numubar_rhc","nue_rhc","nuebar_rhc"] |
bestFitnesses.all_fitnesses = optimization.getFitness(int(config_number)) |
Definition at line 76 of file bestFitnesses.py.
bestFitnesses.canv = ROOT.TCanvas("MyCanvas","MyCanvas") |
Definition at line 150 of file bestFitnesses.py.
list bestFitnesses.colors = [2,4,8,6] |
Definition at line 156 of file bestFitnesses.py.
bestFitnesses.config_number = configurations[ordered_indices[i]] |
Definition at line 61 of file bestFitnesses.py.
Definition at line 41 of file bestFitnesses.py.
list bestFitnesses.configurations = [] |
Find processed configurations and calculate fitnesses #####.
Definition at line 20 of file bestFitnesses.py.
bestFitnesses.fhcenergy = optimization.getEnergy(configuration,"FHC") |
Definition at line 125 of file bestFitnesses.py.
bestFitnesses.fitness = tfitnesses[0] |
Definition at line 45 of file bestFitnesses.py.
bestFitnesses.fitness_error = fiterrors[0] |
Definition at line 46 of file bestFitnesses.py.
list bestFitnesses.fitness_errors = [] |
Definition at line 22 of file bestFitnesses.py.
list bestFitnesses.fitnesses = [] |
Definition at line 21 of file bestFitnesses.py.
list bestFitnesses.flavor_strings = ["numu_fhc","numubar_fhc","nue_fhc","nuebar_fhc","numu_rhc","numubar_rhc","nue_rhc","nuebar_rhc"] |
Definition at line 196 of file bestFitnesses.py.
bestFitnesses.fluxdirs = glob.glob(fluxpath+"*") |
Definition at line 31 of file bestFitnesses.py.
string bestFitnesses.fluxpath = optimization.output_location+"users/ljf26/fluxfiles/g4lbne/" |
Definition at line 30 of file bestFitnesses.py.
bestFitnesses.frame = ROOT.TH2D("frame","frame",100,0,8,100,0,plot_max); |
Definition at line 161 of file bestFitnesses.py.
bestFitnesses.knob_index = -1 |
Definition at line 65 of file bestFitnesses.py.
bestFitnesses.knob_names = optimization.parameter_names |
Definition at line 72 of file bestFitnesses.py.
bestFitnesses.knobturns = optimization.getKnobturns() |
Definition at line 58 of file bestFitnesses.py.
list bestFitnesses.labels = [] |
Definition at line 186 of file bestFitnesses.py.
bestFitnesses.leg = ROOT.TLegend(0.6,0.6,0.8,0.8) |
Definition at line 182 of file bestFitnesses.py.
bestFitnesses.max_configurations = 3200 |
Definition at line 13 of file bestFitnesses.py.
list bestFitnesses.maxes = [nom_flux[j].GetMaximum()] |
Definition at line 151 of file bestFitnesses.py.
int bestFitnesses.n_fluxes_to_plot = 4 |
Definition at line 100 of file bestFitnesses.py.
int bestFitnesses.n_var_plots = 1 |
Definition at line 26 of file bestFitnesses.py.
list bestFitnesses.new_bins = [0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,5.5,6,6.5,7,7.5,8] |
Definition at line 104 of file bestFitnesses.py.
list bestFitnesses.nom_flux = [] |
Definition at line 89 of file bestFitnesses.py.
bestFitnesses.nom_flux_file_fhc = ROOT.TFile("/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_200kA_LBNEFD_fastmc.root") |
Definition at line 86 of file bestFitnesses.py.
bestFitnesses.nom_flux_file_rhc = ROOT.TFile("/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/-200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_-200kA_LBNEFD_fastmc.root") |
Definition at line 87 of file bestFitnesses.py.
bestFitnesses.optimization = Optimizations.Optimization(optimization_name) |
Definition at line 28 of file bestFitnesses.py.
bestFitnesses.optimization_name = sys.argv[1] |
PARSE INPUT ARGUMENT #####.
Definition at line 11 of file bestFitnesses.py.
list bestFitnesses.ordered_indices = [i[0] for i in sorted(enumerate(fitnesses), key=lambda x:x[1],reverse=True)] |
Definition at line 56 of file bestFitnesses.py.
Definition at line 154 of file bestFitnesses.py.
list bestFitnesses.proton_energies = [] |
Definition at line 23 of file bestFitnesses.py.
bestFitnesses.rhcenergy = optimization.getEnergy(configuration,"RHC") |
Definition at line 126 of file bestFitnesses.py.
float bestFitnesses.scale_factor_fhc = 7.5e13 |
Definition at line 132 of file bestFitnesses.py.
float bestFitnesses.scale_factor_rhc = 7.5e13 |
Definition at line 133 of file bestFitnesses.py.
list bestFitnesses.var_flux_files_fhc = [] |
Definition at line 101 of file bestFitnesses.py.
list bestFitnesses.var_flux_files_rhc = [] |
Definition at line 102 of file bestFitnesses.py.
list bestFitnesses.var_fluxes = [] |
Definition at line 103 of file bestFitnesses.py.
list bestFitnesses.zero_errors = [] |
Definition at line 24 of file bestFitnesses.py.