Namespaces | Variables
bestFitnesses.py File Reference

Go to the source code of this file.

Namespaces

 bestFitnesses
 

Variables

 bestFitnesses.optimization_name = sys.argv[1]
 PARSE INPUT ARGUMENT #####. More...
 
int bestFitnesses.max_configurations = 3200
 
list bestFitnesses.configurations = []
 Find processed configurations and calculate fitnesses #####. More...
 
list bestFitnesses.fitnesses = []
 
list bestFitnesses.fitness_errors = []
 
list bestFitnesses.proton_energies = []
 
list bestFitnesses.zero_errors = []
 
int bestFitnesses.n_var_plots = 1
 
 bestFitnesses.optimization = Optimizations.Optimization(optimization_name)
 
string bestFitnesses.fluxpath = optimization.output_location+"users/ljf26/fluxfiles/g4lbne/"
 
 bestFitnesses.fluxdirs = glob.glob(fluxpath+"*")
 
 bestFitnesses.configuration = dir.split("/")[9].split("-")[2]
 
 bestFitnesses.fitness = tfitnesses[0]
 
 bestFitnesses.fitness_error = fiterrors[0]
 
list bestFitnesses.ordered_indices = [i[0] for i in sorted(enumerate(fitnesses), key=lambda x:x[1],reverse=True)]
 
 bestFitnesses.knobturns = optimization.getKnobturns()
 
 bestFitnesses.config_number = configurations[ordered_indices[i]]
 
int bestFitnesses.knob_index = -1
 
 bestFitnesses.knob_names = optimization.parameter_names
 
 bestFitnesses.all_fitnesses = optimization.getFitness(int(config_number))
 
 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")
 
 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")
 
list bestFitnesses.nom_flux = []
 
int bestFitnesses.n_fluxes_to_plot = 4
 
list bestFitnesses.var_flux_files_fhc = []
 
list bestFitnesses.var_flux_files_rhc = []
 
list bestFitnesses.var_fluxes = []
 
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]
 
 bestFitnesses.fhcenergy = optimization.getEnergy(configuration,"FHC")
 
 bestFitnesses.rhcenergy = optimization.getEnergy(configuration,"RHC")
 
float bestFitnesses.scale_factor_fhc = 7.5e13
 
float bestFitnesses.scale_factor_rhc = 7.5e13
 
 bestFitnesses.canv = ROOT.TCanvas("MyCanvas","MyCanvas")
 
list bestFitnesses.maxes = [nom_flux[j].GetMaximum()]
 
float bestFitnesses.plot_max = max(maxes)*1.7
 
list bestFitnesses.colors = [2,4,8,6]
 
 bestFitnesses.frame = ROOT.TH2D("frame","frame",100,0,8,100,0,plot_max);
 
 bestFitnesses.leg = ROOT.TLegend(0.6,0.6,0.8,0.8)
 
list bestFitnesses.labels = []
 
list bestFitnesses.flavor_strings = ["numu_fhc","numubar_fhc","nue_fhc","nuebar_fhc","numu_rhc","numubar_rhc","nue_rhc","nuebar_rhc"]