Belle II Software  release-08-01-10
V0DQManalysis.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 import basf2 as b2
13 from ROOT import Belle2
14 import sys
15 
16 # Set the log level to show only error and fatal messages
17 # set_log_level(LogLevel.ERROR)
18 b2.set_log_level(b2.LogLevel.INFO)
19 # set_log_level(LogLevel.DEBUG)
20 # set_debug_level(1000)
21 
22 # Create main path
23 main = b2.create_path()
24 
25 # Modules
26 inroot = b2.register_module('DQMHistAnalysisInputRootFile')
27 inroot.param('InputRootFile', sys.argv[1])
28 main.add_module(inroot)
29 # main.add_module("DQMHistAutoCanvas") # Plot all Histo from Inputnot needed
30 
31 v0a = b2.register_module('DQMHistAnalysisV0')
32 v0a.param('OverlayPath', Belle2.FileSystem.findFile('/dqm/analysis/CAD'))
33 main.add_module(v0a)
34 
35 outroot = b2.register_module('DQMHistAnalysisOutputFile')
36 outroot.param('SaveHistos', False) # don't save histograms
37 outroot.param('SaveCanvases', True) # save canvases
38 main.add_module(outroot)
39 
40 b2.print_path(main)
41 # Process all events
42 b2.process(main)
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...
Definition: FileSystem.cc:148