Belle II Software  release-06-02-00
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 
30 v0a = b2.register_module('DQMHistAnalysisV0')
31 v0a.param('OverlayPath', Belle2.FileSystem.findFile('/dqm/analysis/CAD'))
32 main.add_module(v0a)
33 
34 outroot = b2.register_module('DQMHistAnalysisOutputFile')
35 outroot.param('SaveHistos', False) # don't save histograms
36 outroot.param('SaveCanvases', True) # save canvases
37 main.add_module(outroot)
38 
39 b2.print_path(main)
40 # Process all events
41 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:145