ATLAS Offline Software
Functions | Variables
python.trfDefaultFiles Namespace Reference

Functions

def getOutputFileName (fmt)
 
def getInputFileName (arg, tag=None)
 

Variables

 DefaultInputs
 

Function Documentation

◆ getInputFileName()

def python.trfDefaultFiles.getInputFileName (   arg,
  tag = None 
)

Definition at line 41 of file trfDefaultFiles.py.

41 def getInputFileName(arg, tag=None):
42  arg=arg.lstrip('-')
43  if tag=="q120" and arg=='inputBSFile':
44  return DefaultInputs["cosmicsBS"]
45  elif tag=="q126" and arg=='inputBSFile':
46  return DefaultInputs["topBS"]
47  datatype = arg.replace('input','').replace('File', '')
48  return DefaultInputs.get(arg, getOutputFileName(datatype))
49 
50 
51 
52 

◆ getOutputFileName()

def python.trfDefaultFiles.getOutputFileName (   fmt)

Definition at line 29 of file trfDefaultFiles.py.

29 def getOutputFileName(fmt):
30  value='my'+fmt
31  fmt=fmt.split('_')[0]
32  if fmt in ['RAW', 'DRAW', 'BS']:
33  value += '.data'
34  elif fmt in ['RDO', 'EVNT', 'TAG', 'HITS', 'ESD', 'DESD', 'D2ESD', 'DESDM', 'D2ESDM', 'AOD', 'DAOD', 'D2AOD', 'DAODM', 'D2AODM']:
35  value += '.pool.root'
36  elif fmt in ['HIST', 'NTUP']:
37  value += '.root'
38  return value
39 
40 

Variable Documentation

◆ DefaultInputs

python.trfDefaultFiles.DefaultInputs

Definition at line 10 of file trfDefaultFiles.py.

replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
python.trfDefaultFiles.getInputFileName
def getInputFileName(arg, tag=None)
Definition: trfDefaultFiles.py:41
python.trfDefaultFiles.getOutputFileName
def getOutputFileName(fmt)
Definition: trfDefaultFiles.py:29