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