18 print(
'v 1.0 / Feb. 7, 2021 / by your colleague')
20 print(
'This script processes histograms from selected (or all) branches/folders and prepares canvases')
22 print(
'To make this script work, first build dqm package b2code-package-add daq; scons')
24 print(
'For more information see https://confluence.desy.de/display/BI/Develop+DQM+Analysis+Modules')
26 print(
'Usage: %s input_filename output_filename' % argv[0])
30 b2.set_log_level(b2.LogLevel.INFO)
33 main = b2.create_path()
36 inroot = b2.register_module(
'DQMHistAnalysisInputRootFile')
37 inroot.param(
'InputRootFile', argv[1])
45 main.add_module(inroot)
46 main.add_module(
"DQMHistAutoCanvas")
48 outroot = b2.register_module(
'DQMHistAnalysisOutputFile')
50 outroot.param(
'SaveHistos',
False)
51 outroot.param(
'SaveCanvases',
True)
53 outroot.param(
'HistoFile', argv[2])
54 main.add_module(outroot)