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)
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():
25 if TTbar.search(line)
and STARTUP.search(line)
and GENSIM.search(line):
30 found = option.search(token)
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
38 print(
"Could not find file %s!\n"%filename)
40 S & print(S &os, JobReport::InputFile const &f)
def get_cmsDriverOptions()