Belle II Software  release-08-01-10
dqmana.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.INFO)
18 
19 # Create main path
20 main = b2.create_path()
21 
22 # Modules
23 input = b2.register_module('DQMHistAnalysisInput')
24 input.param('HistMemoryPath', argv[1])
25 main.add_module(input)
26 main.add_module("DQMHistAutoCanvas") # Plot all Histo from 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 output.param("Port", 9192)
35 main.add_module(output)
36 
37 # Process all events
38 b2.process(main)