Functions | Variables
hadd_reco_validation Namespace Reference

Functions

def source_script (filename)
 

Variables

 parser = argparse.ArgumentParser()
 
 type
 
 str
 
 help
 
 default
 
 args = parser.parse_args()
 
 config_file = args.config_file
 
list sam_datasets = [x.strip().strip('\n') for x in parser.get('sam', 'defnames').split('\n')]
 
 nfiles = parser.get('sam', 'number_of_files')
 
 working_dir = parser.get('working folder', 'path')
 
 jobname = parser.get('grid configuration', 'jobname')
 
 fcl = parser.get('grid configuration', 'c')
 
 dest = parser.get('grid configuration', 'dest')
 
 testrel = parser.get('grid configuration', 'testrel')
 
 tag = parser.get('grid configuration', 'tag')
 
 histTier = parser.get('grid configuration', 'histTier')
 
 maxopt = parser.get('grid configuration', 'maxopt')
 
 group = parser.get('grid configuration', 'G')
 
 njobs = parser.get('grid configuration', 'njobs')
 
 files_per_job = parser.get('grid configuration', 'files_per_job')
 
 opportunistic = parser.get('grid configuration', 'opportunistic')
 
 copyOut = parser.get('grid configuration', 'copyOut')
 
 print_jobsub = parser.get('grid configuration', 'print_jobsub')
 
 expected_lifetime = parser.get('grid configuration', 'expected_lifetime')
 
 cur_dest = os.path.join(dest, defname)
 
 grid_copy_dir = os.path.join(working_dir, defname, 'hadded_output', 'grid_copy')
 
string cmd = ''
 

Function Documentation

def hadd_reco_validation.source_script (   filename)

Definition at line 11 of file hadd_reco_validation.py.

References novadaq::HexUtils.format(), and split().

11 def source_script(filename):
12  proc = subprocess.Popen(['bash', '-c', 'source {0} && env'.format(filename)], stdout=subprocess.PIPE)
13  for tup in map(lambda s: s.strip().split('=', 1), proc.stdout):
14  if len(tup) > 1:
15  os.environ[tup[0].strip()] = tup[1].strip()
16 
17 #
18 # command line argument parsing
19 #
void split(double tt, double *fr)
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14

Variable Documentation

hadd_reco_validation.args = parser.parse_args()

Definition at line 22 of file hadd_reco_validation.py.

string hadd_reco_validation.cmd = ''

Definition at line 64 of file hadd_reco_validation.py.

hadd_reco_validation.config_file = args.config_file

Definition at line 23 of file hadd_reco_validation.py.

Referenced by genie::AlgConfigPool.LoadMasterConfig().

hadd_reco_validation.copyOut = parser.get('grid configuration', 'copyOut')

Definition at line 45 of file hadd_reco_validation.py.

hadd_reco_validation.cur_dest = os.path.join(dest, defname)

Definition at line 60 of file hadd_reco_validation.py.

hadd_reco_validation.default

Definition at line 21 of file hadd_reco_validation.py.

hadd_reco_validation.dest = parser.get('grid configuration', 'dest')

Definition at line 36 of file hadd_reco_validation.py.

hadd_reco_validation.expected_lifetime = parser.get('grid configuration', 'expected_lifetime')

Definition at line 47 of file hadd_reco_validation.py.

hadd_reco_validation.fcl = parser.get('grid configuration', 'c')

Definition at line 35 of file hadd_reco_validation.py.

hadd_reco_validation.files_per_job = parser.get('grid configuration', 'files_per_job')

Definition at line 43 of file hadd_reco_validation.py.

hadd_reco_validation.grid_copy_dir = os.path.join(working_dir, defname, 'hadded_output', 'grid_copy')

Definition at line 61 of file hadd_reco_validation.py.

hadd_reco_validation.group = parser.get('grid configuration', 'G')
hadd_reco_validation.help

Definition at line 21 of file hadd_reco_validation.py.

hadd_reco_validation.histTier = parser.get('grid configuration', 'histTier')

Definition at line 39 of file hadd_reco_validation.py.

hadd_reco_validation.jobname = parser.get('grid configuration', 'jobname')

Definition at line 34 of file hadd_reco_validation.py.

hadd_reco_validation.maxopt = parser.get('grid configuration', 'maxopt')

Definition at line 40 of file hadd_reco_validation.py.

hadd_reco_validation.nfiles = parser.get('sam', 'number_of_files')

Definition at line 31 of file hadd_reco_validation.py.

hadd_reco_validation.njobs = parser.get('grid configuration', 'njobs')

Definition at line 42 of file hadd_reco_validation.py.

hadd_reco_validation.opportunistic = parser.get('grid configuration', 'opportunistic')

Definition at line 44 of file hadd_reco_validation.py.

hadd_reco_validation.parser = argparse.ArgumentParser()

Definition at line 20 of file hadd_reco_validation.py.

hadd_reco_validation.print_jobsub = parser.get('grid configuration', 'print_jobsub')

Definition at line 46 of file hadd_reco_validation.py.

list hadd_reco_validation.sam_datasets = [x.strip().strip('\n') for x in parser.get('sam', 'defnames').split('\n')]

Definition at line 30 of file hadd_reco_validation.py.

hadd_reco_validation.str

Definition at line 21 of file hadd_reco_validation.py.

hadd_reco_validation.tag = parser.get('grid configuration', 'tag')

Definition at line 38 of file hadd_reco_validation.py.

hadd_reco_validation.testrel = parser.get('grid configuration', 'testrel')

Definition at line 37 of file hadd_reco_validation.py.

Referenced by calib::CalibAna.endJob().

hadd_reco_validation.type

Definition at line 21 of file hadd_reco_validation.py.

hadd_reco_validation.working_dir = parser.get('working folder', 'path')

Definition at line 32 of file hadd_reco_validation.py.