28 sys.exit(
"trggdlSummary.py> # of arg is strange. Exit.")
33 b2.set_log_level(b2.LogLevel.INFO)
47 b2.conditions.disable_globaltag_replay()
48 b2.conditions.prepend_testing_payloads(
'./localdb/database.txt')
55 main = b2.create_path()
58 if f_in_root[-6:] ==
".sroot":
59 rootfiletype =
"sroot"
60 input = b2.register_module(
'SeqRootInput')
61 matchobj = re.search(
"([^\\/]+)\\.sroot", f_in_root)
62 basename = re.sub(
'\\.sroot$',
'', matchobj.group())
63 if f_in_root[-5:] ==
".root":
65 input = b2.register_module(
'RootInput')
66 matchobj = re.search(
"([^\\/]+)\\.root", f_in_root)
67 basename = re.sub(
'\\.root$',
'', matchobj.group())
69 input.param(
'inputFileName', f_in_root)
70 main.add_module(input)
74 trggdlUnpacker = b2.register_module(
"TRGGDLUnpacker")
76 main.add_module(trggdlUnpacker)
79 trggdlsummary = b2.register_module(
'TRGGDLSummary')
80 main.add_module(trggdlsummary)
82 datatsim = b2.register_module(
'TRGGDL')
83 datatsim.param(
'SimulationMode', 3)
84 datatsim.param(
'Belle2Phase',
"Belle2Phase")
87 main.add_module(datatsim)
89 histo = b2.register_module(
'HistoManager')
90 histo.param(
"histoFileName",
"trgsum/dsim.%s.root" % basename)
91 main.add_module(histo)
92 if not os.path.isdir(
'trgsum'):
95 progress = b2.register_module(
'Progress')
96 main.add_module(progress)