208 navigationStarted=
False
211 stepToLevel = [
"L2",
"EFunpacking",
"EF"]
214 if line.find(
"- --")
is not -1:
216 if line.find(
"inputTEs")
is not -1:
218 teId = line.split(
" ")[5]
219 teId = string.strip(teId,
"(), \"\n")
220 teId = rstrip(teId,
",")
221 teName = line.split(
" ")[4]
222 teName = string.strip(teName,
"(), \"\n")
223 teIdtoName[teId] = teName
226 if line.find(
" outputTE : (")
is not -1:
227 teId = line.split(
" ")[7]
228 teId = string.strip(teId,
"() \n")
229 teName = line.split(
" ")[6]
230 teName = string.strip(teName,
"()\",\n")
231 teIdtoName[teId] = teName
234 if line.find(
"start processing event #")
is not -1:
235 eventId = line.split(
"#")[1].
split(
",")[0]
237 print "scanning event: ",eventId
240 if line.find(
"Start of HLT Processing in L2")
is not -1:
243 if line.find(
"Start of HLT Processing in EF")
is not -1:
246 if line.find(
"TrigSteer_EF.ResultBuilder")
is not -1:
250 if line.find(
"\\_")
is not -1:
251 if navigationStarted
is False:
252 navigationStarted=
True
255 if navigationStarted
is True:
256 navigationStarted=
False
257 nav2dot(nav, eventId, stepToLevel[step] )
279 options[
'drawFeatures'] =
True
280 print "OPTION: will draw features"
283 options[
'clid'] =
True
284 print "OPTION: will use clid command to get class names (slower)"
286 options[
'regex'] = re.compile(sys.argv[sys.argv.index(
'-x')+1])
287 print "OPTION: will use only TEs accepted by regex", sys.argv[sys.argv.index(
'-x')+1]
290 options[
'event'] = string.atoi(sys.argv[sys.argv.index(
'-e')+1])
291 print "OPTION: will only draw event: ", options[
"event"]
294 options[
'convert'] =
True;
295 print "OPTION: will convert to graphics on the fly"
298 options[
'program'] = sys.argv[sys.argv.index(
'-p')+1]
299 print "OPTION: will convert to graphics on the fly using ", options[
'program']
302 options[
'raw'] =
True
303 options[
'configdump'] = sys.argv[sys.argv.index(
'-r')+2]
304 options[
'navigationdump'] = sys.argv[sys.argv.index(
'-r')+1]
308 print "OPTION: Help needed? Here it is:"
310 Files generated by this utility can be viewed by programs like 'dotty'.
311 Thay can be converted to graphics using probram 'dot':
312 dot nav_event_123.dot -o nav123.png -Tpng
315 -f -- draw freatures atteched to TE (with lables)
316 -d -- use clid command instead of CLIDDBout.txt to get human class names rather than CLIDs
317 -e X -- writeout only event (X)
318 -x regex -- use the regex to select only wanted TEs
319 -c -- convert graphs to png on the fly using dot program
320 -p prog -- use other program(neato, twopi, circo, fdp)
321 -r navigationfile configfile -- take files with the navigation dump and the configuration dump (rather than plain log)
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles