17 print(
'v 1.0 / Feb. 7, 2021 / by your colleague')
19 print(
'This script processes histograms from selected (or all) branches/folders and prepares canvases')
21 print(
'To make this script work, first build dqm package b2code-package-add daq; scons')
23 print(
'For more information see https://xwiki.desy.de/xwiki/rest/p/a331d')
25 print(f
'Usage: {argv[0]} input_filename output_filename')
29b2.set_log_level(b2.LogLevel.INFO)
32main = b2.create_path()
35inroot = b2.register_module(
'DQMHistAnalysisInputRootFile')
36inroot.param(
'InputRootFile', argv[1])
44main.add_module(inroot)
45main.add_module(
"DQMHistAutoCanvas")
47outroot = b2.register_module(
'DQMHistAnalysisOutputFile')
49outroot.param(
'SaveHistos',
False)
50outroot.param(
'SaveCanvases',
True)
52outroot.param(
'HistoFile', argv[2])
53main.add_module(outroot)