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