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