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