26 sys.exit(
"trggdlDST.py> # of arg is strange. Exit.")
31 b2.set_log_level(b2.LogLevel.INFO)
33 main = b2.create_path()
36 if f_in_root[-6:] ==
".sroot":
37 rootfiletype =
"sroot"
38 input = b2.register_module(
'SeqRootInput')
39 if f_in_root[-5:] ==
".root":
41 input = b2.register_module(
'RootInput')
43 input.param(
'inputFileName', f_in_root)
44 main.add_module(input)
47 trggdlUnpacker = b2.register_module(
"TRGGDLUnpacker")
48 main.add_module(trggdlUnpacker)
51 trggdldst = b2.register_module(
'TRGGDLDST')
52 main.add_module(trggdldst)
54 output = b2.register_module(
'RootOutput')
55 output.param(
"outputFileName",
"gdldst.root")
56 main.add_module(output, branchNames=[
"TRGGDLDST"])
58 progress = b2.register_module(
'Progress')
59 main.add_module(progress)