Belle II Software development
dqmtest.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import sys
13
14argvs = sys.argv
15argc = len(argvs)
16
17
18# set_log_level(LogLevel.ERROR)
19
20main = b2.create_path()
21
22# File input module
23input = b2.register_module("RootInput")
24main.add_module(input)
25
26# DQM Histogram Module
27histo = b2.register_module('DqmHistoManager')
28histo.param('histoFileName', 'dqmtest.root')
29histo.param('Port', int(argvs[1]))
30histo.param('DumpInterval', 10)
31main.add_module(histo)
32
33# monitor = register_module('MonitorData')
34# main.add_module(monitor)
35
36# progress
37progress = b2.register_module("Progress")
38main.add_module(progress)
39
40# Start processing
41b2.process(main)