Belle II Software development
V0DQManalysis.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12from ROOT import Belle2
13import sys
14
15# Set the log level to show only error and fatal messages
16# set_log_level(LogLevel.ERROR)
17b2.set_log_level(b2.LogLevel.INFO)
18# set_log_level(LogLevel.DEBUG)
19# set_debug_level(1000)
20
21# Create main path
22main = b2.create_path()
23
24# Modules
25inroot = b2.register_module('DQMHistAnalysisInputRootFile')
26inroot.param('InputRootFile', sys.argv[1])
27main.add_module(inroot)
28# main.add_module("DQMHistAutoCanvas") # Plot all Histo from Inputnot needed
29
30v0a = b2.register_module('DQMHistAnalysisV0')
31v0a.param('OverlayPath', Belle2.FileSystem.findFile('/dqm/analysis/CAD'))
32main.add_module(v0a)
33
34outroot = b2.register_module('DQMHistAnalysisOutputFile')
35outroot.param('SaveHistos', False) # don't save histograms
36outroot.param('SaveCanvases', True) # save canvases
37main.add_module(outroot)
38
39b2.print_path(main)
40# Process all events
41b2.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:151