Belle II Software development
dqmana.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import sys
13argv = sys.argv
14
15# Set the log level to show only error and fatal messages
16b2.set_log_level(b2.LogLevel.INFO)
17
18# Create main path
19main = b2.create_path()
20
21# Modules
22input = b2.register_module('DQMHistAnalysisInput')
23input.param('HistMemoryPath', argv[1])
24main.add_module(input)
25main.add_module("DQMHistAutoCanvas") # Plot all Histo from Input
26
27# example = register_module('DQMHistAnalysisExample')
28# example.param("HistoName", "DAQ/h_Gaus_2")
29# example.param("Function", "gaus(2)")
30# main.add_module(example)
31
32output = b2.register_module('DQMHistAnalysisOutputRelayMsg')
33output.param("Port", 9192)
34main.add_module(output)
35
36# Process all events
37b2.process(main)