CMS 3D CMS Logo

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.

00013                           :
00014     '''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'''
00015     filename=os.path.join(cmsDriverCmdPath,cmsDriverCmd)
00016     cmsDriverOptions=""
00017     if os.path.exists(filename):
00018         file=open(filename,"r")
00019         TTbar=re.compile("TTbar")
00020         STARTUP=re.compile("STARTUP")
00021         GENSIM=re.compile("GEN,SIM")
00022         option=re.compile("^--")
00023         for line in file.readlines():
00024             #Always pick the TTbar with IDEAL geometry line to pick up the "standard" options:
00025             if TTbar.search(line) and STARTUP.search(line) and GENSIM.search(line):
00026                 tokens=line.split()
00027                 #print line
00028                 #print tokens
00029                 for token in tokens:
00030                     found = option.search(token)
00031                     #Here we can filter out the options we don't care about:
00032                     #--relval
00033                     #--datatier
00034                     if found and not (found.string == "--relval" or found.string == "--datatier"): 
00035                         cmsDriverOptions=cmsDriverOptions+found.string+" "+tokens[tokens.index(found.string)+1]+" "
00036         return cmsDriverOptions
00037     else:
00038         print "Could not find file %s!\n"%filename
00039         return NULL

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.