27 sys.exit(
"trgtopUnpacker.py> # of arg is strange.\n 1.rootname\n Exit.")
33b2.set_log_level(b2.LogLevel.INFO)
35b2.use_central_database(
"online")
38if f_in_root[-6:] ==
".sroot":
39 rootfiletype =
"sroot"
40 input = b2.register_module(
'SeqRootInput')
41if f_in_root[-5:] ==
".root":
43 input = b2.register_module(
'RootInput')
45input.param(
'inputFileName', f_in_root)
48unpacker = b2.register_module(
'TRGTOPUnpacker')
55output = b2.register_module(
'RootOutput')
58main = b2.create_path()
62main.add_module(unpacker)
64input.param(
"inputFileName", f_in_root)
65output.param(
"outputFileName",
"trgtop_test.root")
67main.add_module(output, branchNames=[
"TRGTOPUnpackerStores"])