26b2.set_log_level(b2.LogLevel.DEBUG)
28main = b2.create_path()
30if argc == 2
and argvs[1][-6:] ==
".sroot":
32 input = b2.register_module(
'SeqRootInput')
33 matchobj = re.search(
r"([^\/]+)\.sroot", f_in_root)
34 basename = re.sub(
r'\.sroot$',
'', matchobj.group())
35 input.param(
'inputFileName', f_in_root)
36elif argc == 2
and argvs[1][-5:] ==
".root":
38 input = b2.register_module(
'RootInput')
39 matchobj = re.search(
r"([^\/]+)\.root", f_in_root)
40 basename = re.sub(
r'\.root$',
'', matchobj.group())
41 input.param(
'inputFileName', f_in_root)
43 input = b2.register_module(
'RootInput')
44 input.param(
'inputFileName',
'/home/belle/nkzw/e3.4S/r034*/all/raw/sub00/raw.physics.hlt_hadron.0003.*.root')
45 basename =
"e3.4S.r034"
47 sys.exit(
"trgcdctsfDQM.py> # of arg is strange. Exit.")
50histo = b2.register_module(
'HistoManager')
51histo.param(
"histoFileName", f
"dqm.{basename}.root")
54nmod = [0, 1, 2, 3, 4, 5, 6]
57 main.add_module(
'TRGCDCTSFUnpacker', TSFMOD=mod)
60 main.add_module(
'TRGCDCTSFDQM', TSFMOD=mod)
64progress = b2.register_module(
'Progress')
65main.add_module(progress)