Belle II Software  release-08-01-10
MakeHisto.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
25 
26 import basf2 as b2
27 
28 # Set the log level to show only error and fatal messages
29 b2.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')
35 input = b2.register_module('RootInput')
36 
37 # output
38 output = b2.register_module('PrintData')
39 
40 # Histo Module
41 # histo = register_module('DqmHistoManager')
42 histo = 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
49 monitor = b2.register_module('MonitorDataCOPPER')
50 
51 # Create main path
52 main = b2.create_path()
53 
54 # Add modules to main path
55 main.add_module(input)
56 main.add_module(histo)
57 main.add_module(monitor)
58 # main.add_module(output)
59 
60 # Process all events
61 b2.process(main)