CMS 3D CMS Logo

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.

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


Variable Documentation

string cmsRelValCmd::cmsDriverCmd = "cmsDriver_highstats_hlt.txt" [static]

Definition at line 8 of file cmsRelValCmd.py.

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

Definition at line 10 of file cmsRelValCmd.py.


Generated on Tue Jun 9 18:36:41 2009 for CMSSW by  doxygen 1.5.4