Namespaces | Functions | Variables
submit_ppfxjobs.py File Reference

Go to the source code of this file.

Namespaces

 submit_ppfxjobs
 

Functions

def submit_ppfxjobs.make_tarfile (output_filename, source_dir)
 AUTHOR AMIT BASHYAL (amitb.nosp@m.ashy.nosp@m.al@gm.nosp@m.ail..nosp@m.com) ################## USAGE THIS SCRIPT IS TO GENERATE THE PPFX FILES FROM ALREADY EXISTING DK2NU FILES ls path_to_dk2nufiles/*.root >file_list.txt python submit_ppfxjobs.py -t file_list.txt -o /path/to/outputfile/ -n detector_index END USAGE#####################################################. More...
 

Variables

string submit_ppfxjobs.CACHE_PNFS_AREA = "/pnfs/dune/scratch/users/{USER}/grid_cache/"
 
 submit_ppfxjobs.EXPERIMENT
 
 submit_ppfxjobs.USER
 
 submit_ppfxjobs.PWD = os.getenv("PWD")
 
string submit_ppfxjobs.tarfilename = "local_install.tar.gz"
 
string submit_ppfxjobs.cache_folder = CACHE_PNFS_AREA+str(random.randint(10000,99999))+"/"
 
 submit_ppfxjobs.ppfx_dir = os.getcwd()
 
 submit_ppfxjobs.ppfx_executable = os.path.join(ppfx_dir,"bin/doReweight_dk2nu_numix")
 
string submit_ppfxjobs.MODE = "OPT"
 
string submit_ppfxjobs.ppfx_setup = "setup_for_dune_cvmfs.sh "
 
string submit_ppfxjobs.ppfx_xml = ppfx_dir+"/scripts/inputs_default.xml"
 
string submit_ppfxjobs.usage = "usage:%prog [options]"
 
 submit_ppfxjobs.user = os.getenv("USER")
 
 submit_ppfxjobs.parser = OptionParser(usage=usage)
 
 submit_ppfxjobs.dest
 
 submit_ppfxjobs.help
 
 submit_ppfxjobs.default
 
 submit_ppfxjobs.options
 
 submit_ppfxjobs.args
 
 submit_ppfxjobs.text_file = str(options.file_list)
 
string submit_ppfxjobs.xrootd_input = "root://fndca1.fnal.gov:1094/"
 
string submit_ppfxjobs.xrootd_text_file = "xroot_"
 
 submit_ppfxjobs.xrootd_file = open(xrootd_text_file,'w')
 
 submit_ppfxjobs.__line = xrootd_input+line.replace("/pnfs/","/pnfs/fnal.gov/usr/")
 
 submit_ppfxjobs._line = __line.replace("//pnfs","/pnfs")
 
list submit_ppfxjobs._list = []
 
 submit_ppfxjobs._textfile = open(xrootd_text_file,'r')
 
list submit_ppfxjobs._pre = []
 
list submit_ppfxjobs.index = []
 
 submit_ppfxjobs._temp = _list[i].replace(".dk2nu.root","")
 
 submit_ppfxjobs.temp = _temp.split("_")
 
 submit_ppfxjobs.__prefix = os.path.basename(_list[0])
 
 submit_ppfxjobs._prefix = __prefix.replace("\n","")
 
 submit_ppfxjobs._temp_prefix = os.path.basename(_list[0])
 
 submit_ppfxjobs.temp_prefix = _temp_prefix.replace(index[0],"")
 
string submit_ppfxjobs.prefix = ""
 
 submit_ppfxjobs.ntot = len(_list)
 
string submit_ppfxjobs.wrapname = "wrapper_doReweight_dk2nu_"
 
string submit_ppfxjobs.wrapdir = CACHE_PNFS_AREA+"wrapdir/"
 
 submit_ppfxjobs.wrapfile = wrapdir+wrapname
 
 submit_ppfxjobs.temp_text = wrapname.replace(".sh",".txt")
 
 submit_ppfxjobs.executable_file = cache_folder+tarfilename
 
string submit_ppfxjobs.temp_dir = "$_CONDOR_SCRATCH_DIR/"
 
string submit_ppfxjobs.local_tar_path = "$_CONDOR_SCRATCH_DIR/"
 
 submit_ppfxjobs.wrapper = open(wrapfile,'w')
 
string submit_ppfxjobs.output_filename = prefix+"_${run_number}.root"
 
string submit_ppfxjobs.command = "./bin/doReweight_dk2nu_numix "
 
 submit_ppfxjobs.logfilename = output_filename.replace(".root","_\$PROCESS.log")
 
 submit_ppfxjobs.logfile = os.path.join(str(options.output_dir),logfilename)
 
string submit_ppfxjobs.osver = "SL%i"
 
string submit_ppfxjobs.jobsub_command = "jobsub_submit.py -N "