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)
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():
24 if TTbar.search(line)
and STARTUP.search(line)
and GENSIM.search(line):
29 found = option.search(token)
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
37 print "Could not find file %s!\n"%filename
39 def get_cmsDriverOptions()