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