Variables
DoOptimization Namespace Reference

Variables

 optname = sys.argv[1]
 
 optimization = Optimizations.Optimization(optname)
 
list configs = []
 Identify completed configurations and merge histograms. More...
 
int config_iter = optimization.getLastGoodConfig()+1
 
int n_missing_configs = 0
 
string temp_histo_path = "/pnfs/dune/scratch/users/ljf26/fluxfiles/g4lbne/"
 
list configs_to_merge = []
 
 fhc_files = glob.glob(config+"/*/flux/histos/histos_*_neutrino_*_"+optimization.detector_location_name+"_fastmc.root")
 
 rhc_files = glob.glob(config.replace("FHC","RHC")+"/*/flux/histos/histos_*_antineutrino_*_"+optimization.detector_location_name+"_fastmc.root")
 
 configuration_number = config.split("/")[len(config.split("/"))-1].split("-")[2]
 
 config = config.replace("/pnfs/dune/scratch",optimization.output_location)
 
 merged_file = glob.glob(config+"/*/flux/histos_*_"+optimization.detector_location_name+"_fastmc.root")
 
list configs_merged = []
 Identify completed configurations that can be used for next generation. More...
 
int n_dirs_with_merged_histos = 0
 
 key
 
int n_good_configs_in_range = 0
 Determine whether a new generation is ready to start. More...
 
int first_config = optimization.getLastGoodConfig()+1
 
 last_config = first_config+optimization.generation_size
 
 f = open(optimization.last_completed_config_file,"w")
 Make Macro files for next generation. More...
 
bool resubmit_last_generation = False
 Submit g4lbne jobs for next generation. More...
 
 current_directory = os.getcwd()
 
 detx = str(0)
 
 dety = str(0)
 
 detz = str(0)
 
 theta_y = optimization.getParameterValue("OffAxisAngleY",i)
 

Variable Documentation

DoOptimization.config = config.replace("/pnfs/dune/scratch",optimization.output_location)

Definition at line 73 of file DoOptimization.py.

int DoOptimization.config_iter = optimization.getLastGoodConfig()+1

Definition at line 36 of file DoOptimization.py.

list DoOptimization.configs = []

Identify completed configurations and merge histograms.

Definition at line 35 of file DoOptimization.py.

list DoOptimization.configs_merged = []

Identify completed configurations that can be used for next generation.

search for merged histos

Definition at line 100 of file DoOptimization.py.

list DoOptimization.configs_to_merge = []

Definition at line 57 of file DoOptimization.py.

DoOptimization.configuration_number = config.split("/")[len(config.split("/"))-1].split("-")[2]

Definition at line 69 of file DoOptimization.py.

DoOptimization.current_directory = os.getcwd()

Definition at line 162 of file DoOptimization.py.

DoOptimization.detx = str(0)

Definition at line 167 of file DoOptimization.py.

DoOptimization.dety = str(0)

Definition at line 168 of file DoOptimization.py.

DoOptimization.detz = str(0)

Definition at line 169 of file DoOptimization.py.

DoOptimization.f = open(optimization.last_completed_config_file,"w")

Make Macro files for next generation.

Definition at line 150 of file DoOptimization.py.

DoOptimization.fhc_files = glob.glob(config+"/*/flux/histos/histos_*_neutrino_*_"+optimization.detector_location_name+"_fastmc.root")

Definition at line 65 of file DoOptimization.py.

DoOptimization.first_config = optimization.getLastGoodConfig()+1

Definition at line 126 of file DoOptimization.py.

DoOptimization.key

Definition at line 117 of file DoOptimization.py.

DoOptimization.last_config = first_config+optimization.generation_size

Definition at line 127 of file DoOptimization.py.

DoOptimization.merged_file = glob.glob(config+"/*/flux/histos_*_"+optimization.detector_location_name+"_fastmc.root")

Definition at line 76 of file DoOptimization.py.

int DoOptimization.n_dirs_with_merged_histos = 0

Definition at line 101 of file DoOptimization.py.

int DoOptimization.n_good_configs_in_range = 0

Determine whether a new generation is ready to start.

Definition at line 124 of file DoOptimization.py.

int DoOptimization.n_missing_configs = 0

Definition at line 37 of file DoOptimization.py.

DoOptimization.optimization = Optimizations.Optimization(optname)

Definition at line 27 of file DoOptimization.py.

DoOptimization.optname = sys.argv[1]

Definition at line 25 of file DoOptimization.py.

bool DoOptimization.resubmit_last_generation = False

Submit g4lbne jobs for next generation.

Definition at line 159 of file DoOptimization.py.

DoOptimization.rhc_files = glob.glob(config.replace("FHC","RHC")+"/*/flux/histos/histos_*_antineutrino_*_"+optimization.detector_location_name+"_fastmc.root")

Definition at line 67 of file DoOptimization.py.

string DoOptimization.temp_histo_path = "/pnfs/dune/scratch/users/ljf26/fluxfiles/g4lbne/"

Definition at line 39 of file DoOptimization.py.

DoOptimization.theta_y = optimization.getParameterValue("OffAxisAngleY",i)

Definition at line 171 of file DoOptimization.py.