CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
cmsRelValCmd Namespace Reference

Functions

def get_cmsDriverOptions
 

Variables

string cmsDriverCmd = "cmsDriver_highstats_hlt.txt"
 
list cmsDriverCmdPath = os.environ["CMSSW_RELEASE_BASE"]
 

Function Documentation

def cmsRelValCmd.get_cmsDriverOptions ( )
Function returns a string with the cmsDriver.py options relevant to the performance suite used in file cmsDriver_highstats_hlt.txt  in package Configuration/PyReleaseValidation/data\n

Definition at line 12 of file cmsRelValCmd.py.

12 
14  '''Function returns a string with the cmsDriver.py options relevant to the performance suite used in file cmsDriver_highstats_hlt.txt in package Configuration/PyReleaseValidation/data\n'''
15  filename=os.path.join(cmsDriverCmdPath,cmsDriverCmd)
16  cmsDriverOptions=""
17  if os.path.exists(filename):
18  file=open(filename,"r")
19  TTbar=re.compile("TTbar")
20  STARTUP=re.compile("STARTUP")
21  GENSIM=re.compile("GEN,SIM")
22  option=re.compile("^--")
23  for line in file.readlines():
24  #Always pick the TTbar with IDEAL geometry line to pick up the "standard" options:
25  if TTbar.search(line) and STARTUP.search(line) and GENSIM.search(line):
26  tokens=line.split()
27  #print line
28  #print tokens
29  for token in tokens:
30  found = option.search(token)
31  #Here we can filter out the options we don't care about:
32  #--relval
33  #--datatier
34  if found and not (found.string == "--relval" or found.string == "--datatier"):
35  cmsDriverOptions=cmsDriverOptions+found.string+" "+tokens[tokens.index(found.string)+1]+" "
36  return cmsDriverOptions
37  else:
38  print "Could not find file %s!\n"%filename
39  return NULL
def get_cmsDriverOptions
Definition: cmsRelValCmd.py:12

Variable Documentation

string cmsRelValCmd.cmsDriverCmd = "cmsDriver_highstats_hlt.txt"

Definition at line 8 of file cmsRelValCmd.py.

list cmsRelValCmd.cmsDriverCmdPath = os.environ["CMSSW_RELEASE_BASE"]

Definition at line 10 of file cmsRelValCmd.py.