Belle II Software  release-08-01-10
RecvStore1.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
25 
26 import basf2 as b2
27 
28 # Set the log level to show only error and fatal messages
29 b2.set_log_level(b2.LogLevel.ERROR)
30 # set_log_level(LogLevel.INFO)
31 
32 # Modules
33 receiver = b2.register_module('DeSerializer')
34 dump = b2.register_module('PrintCollections')
35 # perf = register_module('DAQPerf')
36 output = b2.register_module('RootOutput')
37 
38 # RxSocket
39 receiver.param('Port', [99999])
40 
41 # Perf
42 # perf.param('Cycle', 100000)
43 
44 # Output
45 output.param('outputFileName', 'rawcopperM.root')
46 
47 # Create main path
48 main = b2.create_path()
49 
50 # Add modules to main path
51 main.add_module(receiver)
52 # main.add_module(dump)
53 main.add_module(output)
54 # main.add_module(perf)
55 
56 # Process all events
57 b2.process(main)