27 sys.exit(
"trggdlSummary.py> # of arg is strange. Exit.")
32b2.set_log_level(b2.LogLevel.INFO)
34main = b2.create_path()
37if f_in_root[-6:] ==
".sroot":
38 rootfiletype =
"sroot"
39 input = b2.register_module(
'SeqRootInput')
40 matchobj = re.search(
"([^\\/]+)\\.sroot", f_in_root)
41 basename = re.sub(
'\\.sroot$',
'', matchobj.group())
42if f_in_root[-5:] ==
".root":
44 input = b2.register_module(
'RootInput')
45 matchobj = re.search(
"([^\\/]+)\\.root", f_in_root)
46 basename = re.sub(
'\\.root$',
'', matchobj.group())
48input.param(
'inputFileName', f_in_root)
53output = b2.register_module(
'RootOutput')
54output.param(
"outputFileName", f
"trgsum/trgsum.{basename}.root")
55if not os.path.isdir(
'trgsum'):
59trggdlUnpacker = b2.register_module(
"TRGGDLUnpacker")
60main.add_module(trggdlUnpacker)
63trggdlsummary = b2.register_module(
'TRGGDLSummary')
64main.add_module(trggdlsummary)
66progress = b2.register_module(
'Progress')
67main.add_module(progress)
69main.add_module(output, branchNames=[
"TRGSummary"])