Belle II Software  release-05-01-25
dqmana_nsm.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 main.add_module(output)
27 
28 nsm = b2.register_module('DQMHistAnalysisOutputNSM')
29 nsm.param('NSMNodeName', "DQMH1")
30 main.add_module(nsm)
31 
32 # Process all events
33 b2.process(main)