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