19from ROOT
import Belle2
27if not input_files.empty()
and input_files.front().endswith(
".sroot"):
28 root_input = b2.register_module(
'SeqRootInput')
30 root_input = b2.register_module(
'RootInput')
32main = b2.create_path()
33main.add_module(root_input)
37 b2.use_database_chain()
39 cdc_unpacker = b2.register_module(
'CDCUnpacker')
40 cdc_unpacker.param(
'enableStoreCDCRawHit',
True)
41 main.add_module(cdc_unpacker)
43unpacker = b2.register_module(
'CDCTriggerUnpacker')
44unpacker.logging.log_level = b2.LogLevel.DEBUG
46unpacker.logging.debug_level = 10
47unpacker.logging.set_info(b2.LogLevel.DEBUG, b2.LogInfo.LEVEL | b2.LogInfo.MESSAGE)
49unpacker.param(
'headerSize', 3)
51unpacker.param(
'unpackTracker2D',
True)
53unpacker.param(
'decode2DFinderTrack',
True)
55unpacker.param(
'decode2DFinderInput',
True)
57unpacker.param(
'2DNodeId', [
62unpacker.param(
'2DNodeId_pcie40', [
68main.add_module(unpacker)
72 empty_path = b2.create_path()
73 unpacker.if_false(empty_path)
76main.add_module(
'RootOutput',
77 outputFileName=
'unpackedCDCTrigger.root',
78 excludeBranchNames=[
'RawCDCs',
static Environment & Instance()
Static method to get a reference to the Environment instance.
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...