28 b2.set_log_level(b2.LogLevel.DEBUG)
30 b2.use_central_database(
"TRGGDL_201811")
32 main = b2.create_path()
34 if argc == 2
and argvs[1][-6:] ==
".sroot":
36 input = b2.register_module(
'SeqRootInput')
37 matchobj = re.search(
"([^\\/]+)\\.sroot", f_in_root)
38 basename = re.sub(
'\\.sroot$',
'', matchobj.group())
39 input.param(
'inputFileName', f_in_root)
40 elif argc == 2
and argvs[1][-5:] ==
".root":
42 input = b2.register_module(
'RootInput')
43 matchobj = re.search(
"([^\\/]+)\\.root", f_in_root)
44 basename = re.sub(
'\\.root$',
'', matchobj.group())
45 input.param(
'inputFileName', f_in_root)
47 input = b2.register_module(
'RootInput')
48 input.param(
'inputFileName',
'/home/belle/nkzw/e3.4S/r034*/all/raw/sub00/raw.physics.hlt_hadron.0003.*.root')
49 basename =
"e3.4S.r034"
51 sys.exit(
"trggdlDQM.py> # of arg is strange. Exit.")
53 main.add_module(input)
54 histo = b2.register_module(
'HistoManager')
55 histo.param(
"histoFileName",
"dqm.%s.root" % basename)
58 trggdlUnpacker = b2.register_module(
"TRGGDLUnpacker")
59 main.add_module(trggdlUnpacker)
60 main.add_module(histo)
64 trggdldqm = b2.register_module(
'TRGGDLDQM')
66 trggdldqm.param(
'eventByEventTimingHistRecord',
False)
68 trggdldqm.param(
'bitNameOnBinLabel',
True)
70 trggdldqm.param(
'generatePostscript',
False)
72 psname =
"dqm.%s.ps" % basename
73 trggdldqm.param(
'postScriptName', psname)
76 dumpVcdFileTrue =
False
77 trggdldqm.param(
'dumpVcdFile', dumpVcdFileTrue)
79 if not os.path.isdir(
'vcd'):
81 trggdldqm.param(
'bitConditionToDumpVcd',
'HIE ECL_BHA')
87 trggdldqm.param(
'vcdEventStart', 0)
88 trggdldqm.param(
'vcdNumberOfEvents', 10)
90 main.add_module(trggdldqm)
92 progress = b2.register_module(
'Progress')
93 main.add_module(progress)