18from ROOT
import Belle2
21b2.set_log_level(b2.LogLevel.INFO)
25b2.use_database_chain()
26b2.use_central_database(
"Calibration_Offline_Development", b2.LogLevel.INFO)
31if not input_files.empty()
and input_files.front().endswith(
".sroot"):
32 root_input = b2.register_module(
'SeqRootInput')
34 root_input = b2.register_module(
'RootInput')
36unpacker = b2.register_module(
'CDCUnpacker')
37output = b2.register_module(
'RootOutput')
38output.param(
'outputFileName',
'UnpackerOutput.root')
39output.param(
'branchNames', [
'CDCHits',
'CDCRawHits'])
42main = b2.create_path()
45main.add_module(root_input)
46main.add_module(unpacker)
47main.add_module(output)
static Environment & Instance()
Static method to get a reference to the Environment instance.