47 opts, args = getopt.getopt(argv,
"", [
"nproc=",
"dohighstat",
'hlt',
'inFile=',
'intbld'])
48 except getopt.GetoptError
as e:
58 for opt, arg
in opts :
59 if opt ==
"--inFile" :
63 if opt ==
"--dohighstat" :
67 if opt
in (
'--intbld',):
71 print(
"\nWARNING: option --hlt is deprecated as this is now default.\n")
74 commands_standard_file=open(inFile,
'r') 75 lines_standard=commands_standard_file.readlines() 76 commands_standard_file.close() 79 commands_standard_file=open(
'cmsDriver_standard_hlt.txt',
'r') 80 lines_standard=commands_standard_file.readlines() 81 commands_standard_file.close() 85 commands_highstat_file=open(
'cmsDriver_highstats_hlt.txt',
'r') 86 lines_highstat=commands_highstat_file.readlines() 87 commands_highstat_file.close() 89 lines=lines+lines_highstat 94 'SingleMuPt10',
'SinglePiPt1',
'SingleElectronPt10',
'SingleGammaPt10',
95 'MinBias',
'QCD_Pt_80_120',
'ZEE',
'BJets_Pt_50_120',
'TTbar',
97 'SinglePiE50HCAL',
'H130GGgluonfusion',
'QQH120Inv',
'bJpsiX',
98 'JpsiMM',
'BsMM',
'UpsMM',
'CJets_Pt_50_120' 103 if ( line[0]!=
'#' and 104 line.replace(
' ',
'')!=
'\n' ):
105 linecomponents=line.split(
'@@@')
106 if intBld
and linecomponents[0].
strip()
not in forIB:
continue 107 command=linecomponents[1][:-1]
108 commands.append(command)
109 print(
'Will do: '+command)
119 print(
'Running in %s thread(s)' %np)
121 for command
in commands:
122 print(
'Preparing to run %s' %command)
123 current = testit(command)
124 clist.append(current)
129 while (
int(i) >=
int(np)):
133 for j
in range(0,alen):
136 isA=pingle.is_alive()
138 if (
not isA
and mystat==0 ):
141 report+=pingle.report
147 for j
in range(0,alen):
154 report+=pingle.report
157 report+=
'\n %s tests passed, %s failed \n' %(npass,nfail)
160 runall_report_name=
'runall-report.log' 161 runall_report=open(runall_report_name,
'w')
162 runall_report.write(report)
163 runall_report.close()
166 print(
"\nWARNING: option --hlt is deprecated as this is now default.\n")
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)