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