Functions | Variables
makePlots Namespace Reference

Functions

def natural_sort (l)
 

Variables

 optimization_name = sys.argv[1]
 PARSE INPUT ARGUMENT #####. More...
 
int max_configurations = 1000
 
bool doSubFitnesses = True
 Find processed configurations and calculate fitnesses #####. More...
 
list configurations = []
 
list fitnesses = []
 
list fhcnumufitnesses = []
 
list fhcnumubarfitnesses = []
 
list rhcnumufitnesses = []
 
list rhcnumubarfitnesses = []
 
list fhcnuenuebarfitnesses = []
 
list rhcnuenuebarfitnesses = []
 
list nhfitnesses = []
 
list ihfitnesses = []
 
list mhfitnesses = []
 
list fitness_errors = []
 
list fhcnumufitness_errors = []
 
list rhcnumufitness_errors = []
 
list fhcnumubarfitness_errors = []
 
list rhcnumubarfitness_errors = []
 
list fhcnuenuebarfitness_errors = []
 
list rhcnuenuebarfitness_errors = []
 
list nhfitness_errors = []
 
list ihfitness_errors = []
 
list mhfitness_errors = []
 
list proton_energies = []
 
list zero_errors = []
 
 optimization = Optimizations.Optimization(optimization_name)
 
string fluxpath = optimization.output_location+"users/ljf26/fluxfiles/g4lbne/"
 
 fluxdirs = glob.glob(fluxpath+"*")
 
 configuration = dir.split("/")[9].split("-")[2]
 
list nominal_fitnesses = []
 Get nominal fitness errors ####. More...
 
int nominal_fitness_error = 0
 
list configurations2 = []
 
list parameter_values = []
 
list parameter_histos = []
 
 n_parameters = len(optimization.parameter_names);
 
 parameter_name = optimization.parameter_names[i]
 
 knobturns = optimization.getKnobturns()
 
bool configuration_found = False
 
 canv = ROOT.TCanvas("MyCanvas","MyCanvas")
 
list split_configurations = [[]]
 
list split_fitnesses = [[]]
 
list split_fhcnumufitnesses = [[]]
 
list split_rhcnumufitnesses = [[]]
 
list split_fhcnumubarfitnesses = [[]]
 
list split_rhcnumubarfitnesses = [[]]
 
list split_fhcnuenuebarfitnesses = [[]]
 
list split_rhcnuenuebarfitnesses = [[]]
 
list split_ihfitnesses = [[]]
 
list split_nhfitnesses = [[]]
 
list split_mhfitnesses = [[]]
 
list split_zero_errors = [[]]
 
list split_fitness_errors = [[]]
 
list split_fhcnumufitness_errors = [[]]
 
list split_rhcnumufitness_errors = [[]]
 
list split_fhcnumubarfitness_errors = [[]]
 
list split_rhcnumubarfitness_errors = [[]]
 
list split_fhcnuenuebarfitness_errors = [[]]
 
list split_rhcnuenuebarfitness_errors = [[]]
 
list split_ihfitness_errors = [[]]
 
list split_nhfitness_errors = [[]]
 
list split_mhfitness_errors = [[]]
 
list split_parameter_values = []
 
 gen_end = optimization.generation_size
 
int gen_number = 0
 
list colors = [39,222,9]
 
list fitness_types = ["Nu_mu Flux"]
 
list fitness_vs_configurations = []
 
int x_max = max_configurations+100
 
 a_line = ROOT.TLine(0,nominal_fitnesses[type_iter],x_max,nominal_fitnesses[type_iter])
 
list best_parameter_values = []
 
list best_parameter_errors = []
 
list parameter_vs_configurations = []
 
float y_low = optimization.parameter_lower_limits[i]-(optimization.parameter_upper_limits[i]-optimization.parameter_lower_limits[i])*0.05
 
 frame = ROOT.TH2D("frame","frame",100,0,max_configurations+100,100,optimization.parameter_lower_limits[i],optimization.parameter_upper_limits[i]);
 
 title = ROOT.gPad.GetPrimitive("title");
 
 y_axis_title = optimization.parameter_names[i]
 
 fitness_vs_parameter = ROOT.TGraphErrors(len(configurations),array('d',parameter_values[i]),array('d',fitnesses),array('d',zero_errors),array('d',fitness_errors))
 
 x_axis_title = optimization.parameter_names[i]
 

Function Documentation

def makePlots.natural_sort (   l)

Definition at line 6 of file makePlots.py.

6 def natural_sort(l):
7  convert = lambda text: int(text) if text.isdigit() else text.lower()
8  alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ]
9  return sorted(l, key = alphanum_key)
10 
def natural_sort(l)
Definition: makePlots.py:6

Variable Documentation

makePlots.a_line = ROOT.TLine(0,nominal_fitnesses[type_iter],x_max,nominal_fitnesses[type_iter])

Definition at line 321 of file makePlots.py.

list makePlots.best_parameter_errors = []

Definition at line 373 of file makePlots.py.

list makePlots.best_parameter_values = []

Definition at line 372 of file makePlots.py.

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

Definition at line 188 of file makePlots.py.

list makePlots.colors = [39,222,9]

Definition at line 276 of file makePlots.py.

makePlots.configuration = dir.split("/")[9].split("-")[2]

Definition at line 63 of file makePlots.py.

bool makePlots.configuration_found = False

Definition at line 171 of file makePlots.py.

list makePlots.configurations = []

Definition at line 28 of file makePlots.py.

list makePlots.configurations2 = []

Definition at line 156 of file makePlots.py.

bool makePlots.doSubFitnesses = True

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

Definition at line 26 of file makePlots.py.

list makePlots.fhcnuenuebarfitness_errors = []

Definition at line 44 of file makePlots.py.

list makePlots.fhcnuenuebarfitnesses = []

Definition at line 34 of file makePlots.py.

list makePlots.fhcnumubarfitness_errors = []

Definition at line 42 of file makePlots.py.

list makePlots.fhcnumubarfitnesses = []

Definition at line 31 of file makePlots.py.

list makePlots.fhcnumufitness_errors = []

Definition at line 40 of file makePlots.py.

list makePlots.fhcnumufitnesses = []

Definition at line 30 of file makePlots.py.

list makePlots.fitness_errors = []

Definition at line 39 of file makePlots.py.

list makePlots.fitness_types = ["Nu_mu Flux"]

Definition at line 278 of file makePlots.py.

list makePlots.fitness_vs_configurations = []

Definition at line 282 of file makePlots.py.

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

Definition at line 423 of file makePlots.py.

list makePlots.fitnesses = []

Definition at line 29 of file makePlots.py.

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

Definition at line 56 of file makePlots.py.

string makePlots.fluxpath = optimization.output_location+"users/ljf26/fluxfiles/g4lbne/"

Definition at line 54 of file makePlots.py.

makePlots.frame = ROOT.TH2D("frame","frame",100,0,max_configurations+100,100,optimization.parameter_lower_limits[i],optimization.parameter_upper_limits[i]);

Definition at line 391 of file makePlots.py.

makePlots.gen_end = optimization.generation_size

Definition at line 215 of file makePlots.py.

int makePlots.gen_number = 0

Definition at line 216 of file makePlots.py.

list makePlots.ihfitness_errors = []

Definition at line 47 of file makePlots.py.

list makePlots.ihfitnesses = []

Definition at line 37 of file makePlots.py.

makePlots.knobturns = optimization.getKnobturns()

Definition at line 167 of file makePlots.py.

makePlots.max_configurations = 1000

Definition at line 19 of file makePlots.py.

list makePlots.mhfitness_errors = []

Definition at line 48 of file makePlots.py.

list makePlots.mhfitnesses = []

Definition at line 38 of file makePlots.py.

makePlots.n_parameters = len(optimization.parameter_names);

Definition at line 161 of file makePlots.py.

list makePlots.nhfitness_errors = []

Definition at line 46 of file makePlots.py.

list makePlots.nhfitnesses = []

Definition at line 36 of file makePlots.py.

int makePlots.nominal_fitness_error = 0

Definition at line 137 of file makePlots.py.

list makePlots.nominal_fitnesses = []

Get nominal fitness errors ####.

Definition at line 136 of file makePlots.py.

makePlots.optimization = Optimizations.Optimization(optimization_name)

Definition at line 52 of file makePlots.py.

makePlots.optimization_name = sys.argv[1]

PARSE INPUT ARGUMENT #####.

Definition at line 17 of file makePlots.py.

list makePlots.parameter_histos = []

Definition at line 159 of file makePlots.py.

makePlots.parameter_name = optimization.parameter_names[i]

Definition at line 163 of file makePlots.py.

list makePlots.parameter_values = []

Definition at line 157 of file makePlots.py.

list makePlots.parameter_vs_configurations = []

Definition at line 388 of file makePlots.py.

list makePlots.proton_energies = []

Definition at line 49 of file makePlots.py.

list makePlots.rhcnuenuebarfitness_errors = []

Definition at line 45 of file makePlots.py.

list makePlots.rhcnuenuebarfitnesses = []

Definition at line 35 of file makePlots.py.

list makePlots.rhcnumubarfitness_errors = []

Definition at line 43 of file makePlots.py.

list makePlots.rhcnumubarfitnesses = []

Definition at line 33 of file makePlots.py.

list makePlots.rhcnumufitness_errors = []

Definition at line 41 of file makePlots.py.

list makePlots.rhcnumufitnesses = []

Definition at line 32 of file makePlots.py.

list makePlots.split_configurations = [[]]

Definition at line 190 of file makePlots.py.

list makePlots.split_fhcnuenuebarfitness_errors = [[]]

Definition at line 207 of file makePlots.py.

list makePlots.split_fhcnuenuebarfitnesses = [[]]

Definition at line 196 of file makePlots.py.

list makePlots.split_fhcnumubarfitness_errors = [[]]

Definition at line 205 of file makePlots.py.

list makePlots.split_fhcnumubarfitnesses = [[]]

Definition at line 194 of file makePlots.py.

list makePlots.split_fhcnumufitness_errors = [[]]

Definition at line 203 of file makePlots.py.

list makePlots.split_fhcnumufitnesses = [[]]

Definition at line 192 of file makePlots.py.

list makePlots.split_fitness_errors = [[]]

Definition at line 202 of file makePlots.py.

list makePlots.split_fitnesses = [[]]

Definition at line 191 of file makePlots.py.

list makePlots.split_ihfitness_errors = [[]]

Definition at line 209 of file makePlots.py.

list makePlots.split_ihfitnesses = [[]]

Definition at line 198 of file makePlots.py.

list makePlots.split_mhfitness_errors = [[]]

Definition at line 211 of file makePlots.py.

list makePlots.split_mhfitnesses = [[]]

Definition at line 200 of file makePlots.py.

list makePlots.split_nhfitness_errors = [[]]

Definition at line 210 of file makePlots.py.

list makePlots.split_nhfitnesses = [[]]

Definition at line 199 of file makePlots.py.

list makePlots.split_parameter_values = []

Definition at line 212 of file makePlots.py.

list makePlots.split_rhcnuenuebarfitness_errors = [[]]

Definition at line 208 of file makePlots.py.

list makePlots.split_rhcnuenuebarfitnesses = [[]]

Definition at line 197 of file makePlots.py.

list makePlots.split_rhcnumubarfitness_errors = [[]]

Definition at line 206 of file makePlots.py.

list makePlots.split_rhcnumubarfitnesses = [[]]

Definition at line 195 of file makePlots.py.

list makePlots.split_rhcnumufitness_errors = [[]]

Definition at line 204 of file makePlots.py.

list makePlots.split_rhcnumufitnesses = [[]]

Definition at line 193 of file makePlots.py.

list makePlots.split_zero_errors = [[]]

Definition at line 201 of file makePlots.py.

makePlots.title = ROOT.gPad.GetPrimitive("title");

Definition at line 395 of file makePlots.py.

string makePlots.x_axis_title = optimization.parameter_names[i]

Definition at line 443 of file makePlots.py.

int makePlots.x_max = max_configurations+100

Definition at line 308 of file makePlots.py.

string makePlots.y_axis_title = optimization.parameter_names[i]

Definition at line 403 of file makePlots.py.

float makePlots.y_low = optimization.parameter_lower_limits[i]-(optimization.parameter_upper_limits[i]-optimization.parameter_lower_limits[i])*0.05

Definition at line 389 of file makePlots.py.

list makePlots.zero_errors = []

Definition at line 50 of file makePlots.py.