Namespaces | Variables
makeScanPlots.py File Reference

Go to the source code of this file.

Namespaces

 makeScanPlots
 

Variables

string makeScanPlots.physics_list = "QGSP_BERT"
 
string makeScanPlots.fitness_type = "cp"
 
 makeScanPlots.optimization_name = sys.argv[1]
 PARSE INPUT ARGUMENT #####. More...
 
 makeScanPlots.configuration = sys.argv[2]
 
 makeScanPlots.optimization = Optimizations.Optimization(optimization_name)
 
int makeScanPlots.n_scan_points = 30
 merge configs if need #### More...
 
list makeScanPlots.configs_already_merged = []
 
list makeScanPlots.configs_merged_now = []
 
list makeScanPlots.configs_not_finished = []
 
 makeScanPlots.lower_limit = optimization.parameter_lower_limits[par_iter]
 
 makeScanPlots.upper_limit = optimization.parameter_upper_limits[par_iter]
 
 makeScanPlots.scan_value = lower_limit+scan_iter*(upper_limit-lower_limit)/n_scan_points
 
string makeScanPlots.fhc_flux_dir = "/lbne/data/users/ljf26/fluxfiles/g4lbne/"
 
string makeScanPlots.rhc_flux_dir = "/lbne/data/users/ljf26/fluxfiles/g4lbne/"
 
 makeScanPlots.merged_file = glob.glob(fhc_flux_dir+"/*/flux/histos_*_LBNEFD_fastmc.root")
 
 makeScanPlots.temp_fhc_dir = fhc_flux_dir.replace("/lbne/data/users/","/pnfs/lbne/scratch/users/")
 
 makeScanPlots.temp_rhc_dir = rhc_flux_dir.replace("/lbne/data/users/","/pnfs/lbne/scratch/users/")
 
 makeScanPlots.fhc_files = glob.glob(temp_fhc_dir+"/neutrino/flux/histos/histos_*_neutrino_*_LBNEFD_fastmc.root")
 
 makeScanPlots.rhc_files = glob.glob(temp_rhc_dir+"/antineutrino/flux/histos/histos_*_antineutrino_*_LBNEFD_fastmc.root")
 
 makeScanPlots.par_name = optimization.parameter_names[par_iter]
 
list makeScanPlots.par_values = []
 
list makeScanPlots.fit_values = []
 
list makeScanPlots.zero_errors = []
 
list makeScanPlots.fit_errors = []
 
string makeScanPlots.macro_name_fhc = "Optimizations-"
 
string makeScanPlots.macro_name_rhc = "Optimizations-"
 
string makeScanPlots.nomfhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/"
 
string makeScanPlots.nomrhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/"
 
string makeScanPlots.varfhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/"
 
string makeScanPlots.varrhcfile = "/lbne/data/users/ljf26/fluxfiles/g4lbne/"
 
int makeScanPlots.rhcpower = 0
 
int makeScanPlots.fhcpower = 0
 
 makeScanPlots.power_iter = optimization.getParameterIndex("ProtonEnergy")
 
 makeScanPlots.antinufrac = optimization.getParameterValue("AntinuFraction",configuration)
 
 makeScanPlots.t_fitness = fitnesses[0]
 
 makeScanPlots.t_error = fiterrors[0]
 
 makeScanPlots.canv = ROOT.TCanvas("MyCanvas","MyCanvas")
 
 makeScanPlots.fitness_vs_par = ROOT.TGraphErrors(len(par_values),array('d',par_values),array('d',fit_values),array('d',zero_errors),array('d',fit_errors));
 
 makeScanPlots.optimized_value = optimization.getParameterValue(optimization.parameter_names[par_iter],configuration)
 
 makeScanPlots.my_line = ROOT.TLine(optimized_value,fitness_vs_par.GetMinimum(),optimized_value,fitness_vs_par.GetMaximum())