CMS 3D CMS Logo

Functions | Variables
cmsRelValCmd Namespace Reference

Functions

def get_cmsDriverOptions ()
 

Variables

 cmsDriverCmd
 
 cmsDriverCmdPath
 

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.

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

Variable Documentation

cmsRelValCmd.cmsDriverCmd

Definition at line 8 of file cmsRelValCmd.py.

cmsRelValCmd.cmsDriverCmdPath

Definition at line 10 of file cmsRelValCmd.py.