Belle II Software development
MakeHisto.py
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4
11
12
25
26import basf2 as b2
27
28# Set the log level to show only error and fatal messages
29b2.set_log_level(b2.LogLevel.ERROR)
30# set_log_level(LogLevel.INFO)
31
32# input
33# input = register_module('SeqRootInput')
34# input.param('iutputFileName', 'RootOutput1.root')
35input = b2.register_module('RootInput')
36
37# output
38output = b2.register_module('PrintData')
39
40# Histo Module
41# histo = register_module('DqmHistoManager')
42histo = b2.register_module('HistoManager')
43# histo.param('HostName', 'ropc01')
44# histo.param('Port', 9991)
45# histo.param('DumpInterval', 10)
46# histo.param('HistoFileName', 'ropc_histofile.root')
47
48# Monitor module
49monitor = b2.register_module('MonitorDataCOPPER')
50
51# Create main path
52main = b2.create_path()
53
54# Add modules to main path
55main.add_module(input)
56main.add_module(histo)
57main.add_module(monitor)
58# main.add_module(output)
59
60# Process all events
61b2.process(main)