Belle II Software development
DummyDAQDQM.py
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4
11
12import basf2 as b2
13
14# Set the log level to show only error and fatal messages
15b2.set_log_level(b2.LogLevel.INFO)
16
17packer = b2.register_module('DummyDataSource')
18packer.param('NodeID', 4001) # COPPER node ID (stored in RawHeader)
19packer.param('UseShmFlag', 0)
20packer.param('NodeName', "4001")
21
22# Histo Module
23histo = b2.register_module('DqmHistoManager')
24histo.param('HostName', 'localhost')
25histo.param('Port', 9991)
26histo.param('DumpInterval', 1000)
27
28# Monitor module
29monitor = b2.register_module('MonitorDataCOPPER')
30
31# Create main path
32main = b2.create_path()
33
34# Add modules to main path
35main.add_module(packer)
36main.add_module(histo)
37main.add_module(monitor)
38
39# Process all events
40b2.process(main)