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