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}.superlayer0.root")
54trgcdctsfUnpacker = b2.register_module(
"TRGCDCTSFUnpacker")
55trgcdctsfUnpacker.param(
'TSFMOD', 0)
56main.add_module(trgcdctsfUnpacker)
60trgcdctsfdqm = b2.register_module(
'TRGCDCTSFDQM')
61trgcdctsfdqm.param(
'generatePostscript',
True)
62trgcdctsfdqm.param(
'TSFMOD', 0)
64psname = f
"dqm.{basename}.ps"
65trgcdctsfdqm.param(
'postScriptName', psname)
67main.add_module(trgcdctsfdqm)
69progress = b2.register_module(
'Progress')
70main.add_module(progress)