Belle II Software development
RecvSendROPC.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)
30b2.set_log_level(b2.LogLevel.INFO)
31
32# Modules
33reader = b2.register_module('DeSerializerPC')
34sender = b2.register_module('Serializer')
35
36# TxSocket
37reader.param('RecvPort', 35000)
38# sender.param('DestHostName', 'hltes')
39sender.param('DestHostName', 'localhost')
40sender.param('DestPort', 37000)
41
42# Create main path
43main = b2.create_path()
44
45# Add modules to main path
46main.add_module(reader)
47main.add_module(sender)
48
49# Process all events
50b2.process(main)