27 sys.exit(
"trggdlSummary.py> # of arg is strange. Exit.")
32b2.set_log_level(b2.LogLevel.INFO)
46b2.conditions.disable_globaltag_replay()
47b2.conditions.prepend_testing_payloads(
'./localdb/database.txt')
54main = b2.create_path()
57if f_in_root[-6:] ==
".sroot":
58 rootfiletype =
"sroot"
59 input = b2.register_module(
'SeqRootInput')
60 matchobj = re.search(
"([^\\/]+)\\.sroot", f_in_root)
61 basename = re.sub(
'\\.sroot$',
'', matchobj.group())
62if f_in_root[-5:] ==
".root":
64 input = b2.register_module(
'RootInput')
65 matchobj = re.search(
"([^\\/]+)\\.root", f_in_root)
66 basename = re.sub(
'\\.root$',
'', matchobj.group())
68input.param(
'inputFileName', f_in_root)
73trggdlUnpacker = b2.register_module(
"TRGGDLUnpacker")
75main.add_module(trggdlUnpacker)
78trggdlsummary = b2.register_module(
'TRGGDLSummary')
79main.add_module(trggdlsummary)
81datatsim = b2.register_module(
'TRGGDL')
82datatsim.param(
'SimulationMode', 3)
83datatsim.param(
'Belle2Phase',
"Belle2Phase")
86main.add_module(datatsim)
88histo = b2.register_module(
'HistoManager')
89histo.param(
"histoFileName", f
"trgsum/dsim.{basename}.root")
91if not os.path.isdir(
'trgsum'):
94progress = b2.register_module(
'Progress')
95main.add_module(progress)