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
00025 if TTbar.search(line) and STARTUP.search(line) and GENSIM.search(line):
00026 tokens=line.split()
00027
00028
00029 for token in tokens:
00030 found = option.search(token)
00031
00032
00033
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