27b2.set_log_level(b2.LogLevel.DEBUG)
29b2.use_central_database(
"TRGGDL_201811")
31main = b2.create_path()
33if argc == 2
and argvs[1][-6:] ==
".sroot":
35 input = b2.register_module(
'SeqRootInput')
36 matchobj = re.search(
"([^\\/]+)\\.sroot", f_in_root)
37 basename = re.sub(
'\\.sroot$',
'', matchobj.group())
38 input.param(
'inputFileName', f_in_root)
39elif argc == 2
and argvs[1][-5:] ==
".root":
41 input = b2.register_module(
'RootInput')
42 matchobj = re.search(
"([^\\/]+)\\.root", f_in_root)
43 basename = re.sub(
'\\.root$',
'', matchobj.group())
44 input.param(
'inputFileName', f_in_root)
46 input = b2.register_module(
'RootInput')
47 input.param(
'inputFileName',
'/home/belle/nkzw/e3.4S/r034*/all/raw/sub00/raw.physics.hlt_hadron.0003.*.root')
48 basename =
"e3.4S.r034"
50 sys.exit(
"trggdlDQM.py> # of arg is strange. Exit.")
53histo = b2.register_module(
'HistoManager')
54histo.param(
"histoFileName", f
"dqm.{basename}.root")
57trggdlUnpacker = b2.register_module(
"TRGGDLUnpacker")
58main.add_module(trggdlUnpacker)
63trggdldqm = b2.register_module(
'TRGGDLDQM')
65trggdldqm.param(
'eventByEventTimingHistRecord',
False)
67trggdldqm.param(
'bitNameOnBinLabel',
True)
69trggdldqm.param(
'generatePostscript',
False)
71psname = f
"dqm.{basename}.ps"
72trggdldqm.param(
'postScriptName', psname)
75dumpVcdFileTrue =
False
76trggdldqm.param(
'dumpVcdFile', dumpVcdFileTrue)
78 if not os.path.isdir(
'vcd'):
80 trggdldqm.param(
'bitConditionToDumpVcd',
'HIE ECL_BHA')
86 trggdldqm.param(
'vcdEventStart', 0)
87 trggdldqm.param(
'vcdNumberOfEvents', 10)
89main.add_module(trggdldqm)
91progress = b2.register_module(
'Progress')
92main.add_module(progress)