Belle II Software  release-05-01-25
dqmana.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 import basf2 as b2
5 import sys
6 argv = sys.argv
7 
8 # Set the log level to show only error and fatal messages
9 b2.set_log_level(b2.LogLevel.ERROR)
10 b2.set_log_level(b2.LogLevel.INFO)
11 
12 # Create main path
13 main = b2.create_path()
14 
15 # Modules
16 input = b2.register_module('DQMHistAnalysisInput')
17 input.param('HistMemoryPath', argv[1])
18 main.add_module(input)
19 
20 # example = register_module('DQMHistAnalysisExample')
21 # example.param("HistoName", "DAQ/h_Gaus_2")
22 # example.param("Function", "gaus(2)")
23 # main.add_module(example)
24 
25 output = b2.register_module('DQMHistAnalysisOutputRelayMsg')
26 output.param("Port", 9192)
27 main.add_module(output)
28 
29 # nsm = register_module('DQMHistAnalysisOutputNSM')
30 # nsm.param('NSMNodeName', "DQMH1")
31 # main.add_module(nsm)
32 
33 # Process all events
34 b2.process(main)