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