Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
▼
Belle II Software
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
DQMAnalysisKLM.py
1
#!/usr/bin/env python3
2
3
10
11
import
basf2
12
13
# Set log level.
14
basf2.set_log_level(basf2.LogLevel.INFO)
15
16
# Create main path.
17
main = basf2.create_path()
18
19
# Input module.
20
main.add_module(
'DQMHistAnalysisInputRootFile'
,
21
Experiment=0,
22
RunList=[0],
23
EventsList=[1],
24
EventInterval=1,
25
FileList=[
'KLMDQM.root'
],
26
SelectHistograms=[
'KLM/*'
,
'DAQ/*'
])
27
28
main.add_module(
"DQMHistAutoCanvas"
)
# Plot all Histo from Input
29
30
# KLM DQM analysis module.
31
main.add_module(
'DQMHistAnalysisKLM'
)
32
33
# Output module.
34
main.add_module(
'DQMHistAnalysisOutputFile'
,
35
HistoFile=
'KLMDQMAnalysed.root'
,
36
SaveHistos=
False
,
37
SaveCanvases=
True
)
38
39
# Process main path.
40
basf2.process(main)
41
42
# Print modules' statistics.
43
print(basf2.statistics)
dqm
analysis
examples
DQMAnalysisKLM.py
Generated on Thu Apr 10 2025 02:34:03 for Belle II Software by
1.9.6