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