20 from ROOT
import Belle2
28 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
29 root_input = b2.register_module(
'SeqRootInput')
31 root_input = b2.register_module(
'RootInput')
33 main = b2.create_path()
34 main.add_module(root_input)
38 b2.use_database_chain()
40 cdc_unpacker = b2.register_module(
'CDCUnpacker')
41 cdc_unpacker.param(
'enableStoreCDCRawHit',
True)
42 main.add_module(cdc_unpacker)
44 unpacker = b2.register_module(
'CDCTriggerUnpacker')
45 unpacker.logging.log_level = b2.LogLevel.DEBUG
47 unpacker.logging.debug_level = 10
48 unpacker.logging.set_info(b2.LogLevel.DEBUG, b2.LogInfo.LEVEL | b2.LogInfo.MESSAGE)
50 unpacker.param(
'headerSize', 3)
52 unpacker.param(
'unpackTracker2D',
True)
54 unpacker.param(
'decode2DFinderTrack',
True)
56 unpacker.param(
'decode2DFinderInput',
True)
58 unpacker.param(
'2DNodeId', [
63 unpacker.param(
'2DNodeId_pcie40', [
69 main.add_module(unpacker)
73 empty_path = b2.create_path()
74 unpacker.if_false(empty_path)
77 main.add_module(
'RootOutput',
78 outputFileName=
'unpackedCDCTrigger.root',
79 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...