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