Belle II Software
release-05-01-25
V0DQManalysis.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
import
basf2
as
b2
5
from
ROOT
import
Belle2
6
import
sys
7
8
# Set the log level to show only error and fatal messages
9
# set_log_level(LogLevel.ERROR)
10
b2.set_log_level(b2.LogLevel.INFO)
11
# set_log_level(LogLevel.DEBUG)
12
# set_debug_level(1000)
13
14
# Create main path
15
main = b2.create_path()
16
17
# Modules
18
inroot = b2.register_module(
'DQMHistAnalysisInputRootFile'
)
19
inroot.param(
'InputRootFile'
, sys.argv[1])
20
main.add_module(inroot)
21
22
v0a = b2.register_module(
'DQMHistAnalysisV0'
)
23
v0a.param(
'OverlayPath'
,
Belle2.FileSystem.findFile
(
'/dqm/analysis/CAD'
))
24
main.add_module(v0a)
25
26
outroot = b2.register_module(
'DQMHistAnalysisOutputFile'
)
27
outroot.param(
'SaveHistos'
,
False
)
# don't save histograms
28
outroot.param(
'SaveCanvases'
,
True
)
# save canvases
29
main.add_module(outroot)
30
31
b2.print_path(main)
32
# Process all events
33
b2.process(main)
Belle2::FileSystem::findFile
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:147
dqm
analysis
examples
V0DQManalysis.py
Generated on Fri Nov 5 2021 03:50:34 for Belle II Software by
1.8.17