12def add_neuro_2d_unpackers(path, debug_level=4, debugout=True):
13 unpacker = b2.register_module(
'CDCTriggerUnpacker')
15 unpacker.logging.log_level = b2.LogLevel.DEBUG
17 unpacker.logging.debug_level = debug_level
18 unpacker.logging.set_info(b2.LogLevel.DEBUG, b2.LogInfo.LEVEL | b2.LogInfo.MESSAGE)
20 unpacker.param(
'headerSize', 3)
22 unpacker.param(
'unpackTracker2D',
True)
24 unpacker.param(
'decode2DFinderTrack',
True)
26 unpacker.param(
'decode2DFinderInput',
True)
27 unpacker.param(
'2DNodeId', [
32 unpacker.param(
'NeuroNodeId', [
38 unpacker.param(
'unpackNeuro',
True)
39 unpacker.param(
'decodeNeuro',
True)
40 path.add_module(unpacker)
43b2.set_log_level(b2.LogLevel.ERROR)
44b2.use_database_chain()
45b2.use_central_database(
"data_reprocessing_prod6")
47main = b2.create_path()
48dstfiles = [
'/hsm/belle2/bdata/Data/\
49release-02-01-00/DB00000438/prod00000006/e0003/4S/\
50r05613/all/dst/sub00/dst.physics.0003.05613.HLT2.f00000.root']
51main.add_module(
"RootInput", inputFileNames=dstfiles)
52add_neuro_2d_unpackers(main, debug_level=2, debugout=
False)
54main.add_module(
'HistoManager',
55 histoFileName=
'histogram.root')
57main.add_module(
'CDCTriggerDQM')
58main.add_module(
'Progress')