Belle II Software  release-08-01-10
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.INFO)
18 
19 # Create main path
20 main = b2.create_path()
21 
22 # Modules
23 input = b2.register_module('DQMHistAnalysisInput')
24 input.param('HistMemoryPath', argv[1])
25 main.add_module(input)
26 main.add_module("DQMHistAutoCanvas") # Plot all Histo from 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)