25 print(f
'Usage: {argv[0]} input_filename output_filename OR {argv[0]} exp run')
29if argv[1].isnumeric()
and argv[2].isnumeric():
32 input_filename = f
'/group/belle2/phase3/dqm/dqmsrv1/e{exp:04}/dqmhisto/hltdqm_e{exp:04}r{run:06}.root'
33 output_filename = f
'/group/belle2/group/detector/ECL/tmp/DQManalysis/hltdqm_e{exp:04}r{run:06}.root'
35 input_filename = argv[1]
36 output_filename = argv[2]
38b2.set_log_level(b2.LogLevel.INFO)
41main = b2.create_path()
44inroot = b2.register_module(
'DQMHistAnalysisInputRootFile')
45inroot.param(
'FileList', input_filename)
46inroot.param(
'SelectHistograms',
"ECL/*")
47main.add_module(inroot)
50ecl = b2.register_module(
'DQMHistAnalysisECL')
53outroot = b2.register_module(
'DQMHistAnalysisOutputFile')
54outroot.param(
'SaveHistos',
False)
55outroot.param(
'SaveCanvases',
True)
56outroot.param(
'HistoFile', output_filename)
57main.add_module(outroot)