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