Functions | |
def | remove_file (myfile) |
Helper Functions. More... | |
Variables | |
scriptdir = os.path.abspath(sys.argv[0]+"/../..") | |
Determine default g4lbne directory (the directory this script is in) More... | |
string | usage = "usage: %prog [options]" |
Setup parser that reads in options. More... | |
parser = OptionParser(usage=usage) | |
dest | |
help | |
default | |
action | |
options | |
args | |
g4lbne_dir | |
output_dir | |
string | version = "v3r5p5" |
Determine G4LBNE Version. More... | |
string | g4lbne_executable = options.g4lbne_dir+"/g4lbnf" |
Check validity of specified options. More... | |
string | ppfx_dir = options.g4lbne_dir+"/ppfx/" |
string | ppfx_executable = ppfx_dir+"bin/doReweight_dk2nu_dune" |
string | ppfx_setup = options.g4lbne_dir+"/ppfx/setup_for_dune_cvmfs.sh " |
string | ppfx_xml = options.g4lbne_dir+"/ppfx/scripts/inputs_default.xml" |
mode = str(options.MODE) | |
string | g4lbne_setup = options.g4lbne_dir+"/setups/setup_g4lbne_cvmfs.sh" |
string | macro_template = options.macro_dir+"/" |
splitmacro = options.macro.split("-") | |
string | histomaker_macro = options.g4lbne_dir+"/ProductionScripts/makeFluxHistogramsL" |
physics_list = options.physics_list | |
string | output_macro_dir = "/pnfs/dune/scratch/users/" |
Print options. More... | |
string | output_wrapper_dir = "/pnfs/dune/scratch/users/" |
string | output_executable_dir = "/pnfs/dune/scratch/users/" |
string | flux_dir = options.output_dir+"/" |
string | log_dir = options.output_dir+"/" |
string | ppfx_flux_dir = options.output_dir+"/" |
string | ppfx_hadron_dir = ppfx_flux_dir+"hadron/flux/" |
string | ppfx_hadron_log = ppfx_flux_dir+"hadron/logfiles/" |
string | ppfx_imap_dir = ppfx_flux_dir+"imap/flux/" |
string | ppfx_imap_log = ppfx_flux_dir+"imap/logfiles/" |
string | temp_dir = " " |
Uncomment the following lines if you want interaction map from ppfx. More... | |
cwd = os.getcwd() | |
Make a tar file of the user's executable, setup area. More... | |
string | executable_file = output_executable_dir+"g4lbne_" |
string | file_prefix = "g4lbne_" |
Loop over requested jobs. More... | |
oldmac = open(macro_template) | |
new_macro_filename = output_macro_dir+os.path.basename(macro_template).replace(".mac","_"+str(i).zfill(3)+".mac") | |
newmac = open(new_macro_filename, 'w') | |
bool | horn_current_set = False |
splitline = s.split() | |
script_filename = output_wrapper_dir+os.path.basename(macro_template).replace(".mac",".sh") | |
wrapper = open(script_filename, 'w') | |
string | on_grid = "true" |
string | local_g4lbne_setup = "setups/" |
string | local_ppfx_setup = "ppfx/" |
string | local_tar_path = "$_CONDOR_SCRATCH_DIR/" |
offset = options.first_job | |
local_macro_path = os.path.basename(new_macro_filename) | |
string | local_g4lbne_executable = "g4lbnf" |
string | local_ppfx_executable = "ppfx/bin/doReweight_dk2nu_dune" |
string | local_ppfx_xml = "ppfx/scripts/inputs_default.xml" |
string | local_histomaker_macro = "ProductionScripts/makeFluxHistogramsL" |
string | dk2nu_output = file_prefix+"_${padded_run_number5}.dk2nu.root" |
string | ppfx_ndhisto_output = "histos_" |
string | ntuple_output = file_prefix+"_${padded_run_number}.root" |
string | ndhisto_output = "histos_" |
string | fdhisto_output = "histos_" |
string | ndfmchisto_output = "histos_" |
string | fdfmchisto_output = "histos_" |
string | ndglobeshisto_output = "histos_" |
string | fdglobeshisto_output = "histos_" |
string | ppfx_fdhisto_output = "histos_" |
string | outfiles = temp_dir+ndhisto_output+" " |
logfile = log_dir+ntuple_output.split("/")[-1].replace(".root",".log").replace("_${padded_run_number}","_\$PROCESS"); | |
string | jobsub_command = "jobsub_submit.py -N " |
def submit_flux.remove_file | ( | myfile | ) |
submit_flux.action |
Definition at line 65 of file submit_flux.py.
submit_flux.args |
Definition at line 74 of file submit_flux.py.
submit_flux.cwd = os.getcwd() |
Make a tar file of the user's executable, setup area.
Definition at line 271 of file submit_flux.py.
submit_flux.default |
Definition at line 48 of file submit_flux.py.
submit_flux.dest |
Definition at line 47 of file submit_flux.py.
string submit_flux.dk2nu_output = file_prefix+"_${padded_run_number5}.dk2nu.root" |
Definition at line 385 of file submit_flux.py.
string submit_flux.executable_file = output_executable_dir+"g4lbne_" |
Definition at line 279 of file submit_flux.py.
string submit_flux.fdfmchisto_output = "histos_" |
Definition at line 410 of file submit_flux.py.
string submit_flux.fdglobeshisto_output = "histos_" |
Definition at line 412 of file submit_flux.py.
string submit_flux.fdhisto_output = "histos_" |
Definition at line 408 of file submit_flux.py.
string submit_flux.file_prefix = "g4lbne_" |
Loop over requested jobs.
Definition at line 291 of file submit_flux.py.
string submit_flux.flux_dir = options.output_dir+"/" |
Definition at line 172 of file submit_flux.py.
submit_flux.g4lbne_dir |
Definition at line 78 of file submit_flux.py.
string submit_flux.g4lbne_executable = options.g4lbne_dir+"/g4lbnf" |
Check validity of specified options.
Definition at line 94 of file submit_flux.py.
string submit_flux.g4lbne_setup = options.g4lbne_dir+"/setups/setup_g4lbne_cvmfs.sh" |
Definition at line 126 of file submit_flux.py.
submit_flux.help |
Definition at line 48 of file submit_flux.py.
string submit_flux.histomaker_macro = options.g4lbne_dir+"/ProductionScripts/makeFluxHistogramsL" |
Definition at line 140 of file submit_flux.py.
bool submit_flux.horn_current_set = False |
Definition at line 303 of file submit_flux.py.
string submit_flux.jobsub_command = "jobsub_submit.py -N " |
Definition at line 522 of file submit_flux.py.
string submit_flux.local_g4lbne_executable = "g4lbnf" |
Definition at line 376 of file submit_flux.py.
string submit_flux.local_g4lbne_setup = "setups/" |
Definition at line 350 of file submit_flux.py.
string submit_flux.local_histomaker_macro = "ProductionScripts/makeFluxHistogramsL" |
Definition at line 380 of file submit_flux.py.
submit_flux.local_macro_path = os.path.basename(new_macro_filename) |
Definition at line 374 of file submit_flux.py.
Definition at line 377 of file submit_flux.py.
string submit_flux.local_ppfx_setup = "ppfx/" |
Definition at line 351 of file submit_flux.py.
string submit_flux.local_ppfx_xml = "ppfx/scripts/inputs_default.xml" |
Definition at line 378 of file submit_flux.py.
string submit_flux.local_tar_path = "$_CONDOR_SCRATCH_DIR/" |
Definition at line 352 of file submit_flux.py.
string submit_flux.log_dir = options.output_dir+"/" |
Definition at line 173 of file submit_flux.py.
submit_flux.logfile = log_dir+ntuple_output.split("/")[-1].replace(".root",".log").replace("_${padded_run_number}","_\$PROCESS"); |
Definition at line 489 of file submit_flux.py.
string submit_flux.macro_template = options.macro_dir+"/" |
Definition at line 131 of file submit_flux.py.
submit_flux.mode = str(options.MODE) |
Definition at line 115 of file submit_flux.py.
string submit_flux.ndfmchisto_output = "histos_" |
Definition at line 409 of file submit_flux.py.
string submit_flux.ndglobeshisto_output = "histos_" |
Definition at line 411 of file submit_flux.py.
string submit_flux.ndhisto_output = "histos_" |
Definition at line 407 of file submit_flux.py.
submit_flux.new_macro_filename = output_macro_dir+os.path.basename(macro_template).replace(".mac","_"+str(i).zfill(3)+".mac") |
Definition at line 297 of file submit_flux.py.
submit_flux.newmac = open(new_macro_filename, 'w') |
Definition at line 302 of file submit_flux.py.
string submit_flux.ntuple_output = file_prefix+"_${padded_run_number}.root" |
Definition at line 405 of file submit_flux.py.
submit_flux.offset = options.first_job |
Definition at line 366 of file submit_flux.py.
submit_flux.oldmac = open(macro_template) |
Definition at line 296 of file submit_flux.py.
string submit_flux.on_grid = "true" |
Definition at line 344 of file submit_flux.py.
submit_flux.options |
Definition at line 74 of file submit_flux.py.
string submit_flux.outfiles = temp_dir+ndhisto_output+" " |
Definition at line 441 of file submit_flux.py.
submit_flux.output_dir |
Definition at line 80 of file submit_flux.py.
string submit_flux.output_executable_dir = "/pnfs/dune/scratch/users/" |
Definition at line 171 of file submit_flux.py.
string submit_flux.output_macro_dir = "/pnfs/dune/scratch/users/" |
string submit_flux.output_wrapper_dir = "/pnfs/dune/scratch/users/" |
Definition at line 170 of file submit_flux.py.
Definition at line 45 of file submit_flux.py.
submit_flux.physics_list = options.physics_list |
Definition at line 145 of file submit_flux.py.
string submit_flux.ppfx_dir = options.g4lbne_dir+"/ppfx/" |
Definition at line 95 of file submit_flux.py.
Definition at line 96 of file submit_flux.py.
string submit_flux.ppfx_fdhisto_output = "histos_" |
Definition at line 414 of file submit_flux.py.
string submit_flux.ppfx_flux_dir = options.output_dir+"/" |
Definition at line 174 of file submit_flux.py.
string submit_flux.ppfx_hadron_dir = ppfx_flux_dir+"hadron/flux/" |
Definition at line 175 of file submit_flux.py.
string submit_flux.ppfx_hadron_log = ppfx_flux_dir+"hadron/logfiles/" |
Definition at line 176 of file submit_flux.py.
string submit_flux.ppfx_imap_dir = ppfx_flux_dir+"imap/flux/" |
Definition at line 177 of file submit_flux.py.
string submit_flux.ppfx_imap_log = ppfx_flux_dir+"imap/logfiles/" |
Definition at line 178 of file submit_flux.py.
string submit_flux.ppfx_ndhisto_output = "histos_" |
Definition at line 386 of file submit_flux.py.
string submit_flux.ppfx_setup = options.g4lbne_dir+"/ppfx/setup_for_dune_cvmfs.sh " |
Definition at line 101 of file submit_flux.py.
string submit_flux.ppfx_xml = options.g4lbne_dir+"/ppfx/scripts/inputs_default.xml" |
Definition at line 102 of file submit_flux.py.
submit_flux.script_filename = output_wrapper_dir+os.path.basename(macro_template).replace(".mac",".sh") |
Definition at line 336 of file submit_flux.py.
submit_flux.scriptdir = os.path.abspath(sys.argv[0]+"/../..") |
Determine default g4lbne directory (the directory this script is in)
Definition at line 35 of file submit_flux.py.
submit_flux.splitline = s.split() |
Definition at line 316 of file submit_flux.py.
submit_flux.splitmacro = options.macro.split("-") |
Definition at line 133 of file submit_flux.py.
string submit_flux.temp_dir = " " |
Uncomment the following lines if you want interaction map from ppfx.
Uncomment the following lines if you want interaction map from ppfx
Definition at line 262 of file submit_flux.py.
Setup parser that reads in options.
Definition at line 44 of file submit_flux.py.
string submit_flux.version = "v3r5p5" |
Determine G4LBNE Version.
Definition at line 87 of file submit_flux.py.
submit_flux.wrapper = open(script_filename, 'w') |
Definition at line 343 of file submit_flux.py.