Belle II Software  release-05-01-25
DQMHistAnalyserMakeRefHistoFile.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 import basf2 as b2
5 import sys
6 argv = sys.argv
7 
8 # Set the log level to show only error and fatal messages
9 b2.set_log_level(b2.LogLevel.ERROR)
10 b2.set_log_level(b2.LogLevel.INFO)
11 
12 # Create main path
13 main = b2.create_path()
14 
15 # Modules
16 input = b2.register_module('DQMHistAnalysisInput')
17 input.param('HistMemoryPath', argv[1])
18 main.add_module(input)
19 
20 output = b2.register_module('DQMHistAnalysisOutputFile')
21 output.param('SaveCanvases', True)
22 output.param('SaveHistos', False)
23 main.add_module(output)
24 
25 # Process all events
26 b2.process(main)