Belle II Software development
rawunpack.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13b2.set_log_level(b2.LogLevel.INFO)
14
15# input
16input = b2.register_module('SeqRootInput')
17
18# dump
19# dump = register_module('RootOutput')
20
21# progress monitor
22progress = b2.register_module('Progress')
23
24# converts RawCOPPER->RawARICH
25convert = b2.register_module('Convert2RawDet')
26
27# converts RawARICH->ARICHRawDigits
28unpack = b2.register_module('ARICHRawunpacker')
29
30# Create main path
31main = b2.create_path()
32
33# Add modules to main path
34main.add_module(input)
35main.add_module(convert)
36main.add_module(unpack)
37# main.add_module(dump)
38main.add_module(progress)
39
40# Process all events
41b2.process(main)
42
43print(b2.statistics)