Belle II Software development
unpack_merger.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12from ROOT import Belle2
13
14
15input_files = Belle2.Environment.Instance().getInputFilesOverride()
16if not input_files.empty() and input_files.front().endswith(".sroot"):
17 root_input = b2.register_module('SeqRootInput')
18else:
19 root_input = b2.register_module('RootInput')
20
21main = b2.create_path()
22main.add_module(root_input)
23
24merger_unpacker = b2.register_module('CDCTriggerUnpacker')
25merger_unpacker.logging.log_level = b2.LogLevel.DEBUG
26merger_unpacker.logging.debug_level = 100
27merger_unpacker.logging.set_info(b2.LogLevel.DEBUG, b2.LogInfo.LEVEL | b2.LogInfo.MESSAGE)
28
29main.add_module(merger_unpacker)
30b2.process(main)
31print(b2.statistics)
static Environment & Instance()
Static method to get a reference to the Environment instance.
Definition: Environment.cc:28