Belle II Software development
DQMAnalysisTRG.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13# Set log level.
14b2.set_log_level(b2.LogLevel.DEBUG)
15
16# Create main path.
17main = b2.create_path()
18
19# Modules
20inroot = b2.register_module('DQMHistAnalysisInputRootFile')
21inroot.param('FileList', '/home/t2k/taichiro/public/erecodqm_e0026r001675.root')
22main.add_module(inroot)
23# main.add_module("DQMHistAutoCanvas") # Plot all Histo from Input not needed
24
25trg_analysis = b2.register_module('DQMHistAnalysisTRG')
26main.add_module(trg_analysis)
27
28output = b2.register_module('DQMHistAnalysisOutputFile')
29output.param('histogramDirectoryName', 'analysismodule')
30output.param('SaveHistos', False)
31output.param('SaveCanvases', True)
32main.add_module(output)
33
34# Process main path.
35b2.process(main)
36
37# Statistics.
38print(b2.statistics)