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