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
TrackingDQM.py
1
#!/usr/bin/env python3
2
3
10
11
21
22
import
basf2
as
b2
23
import
tracking
as
trk
24
import
rawdata
as
raw
25
import
sys
26
27
# main
28
main = b2.create_path()
29
30
# read input rootfile
31
# -> can be overwritten with the -i option
32
main.add_module(
"RootInput"
)
33
34
# register the HistoManager and specify output file
35
main.add_module(
"HistoManager"
, histoFileName=
"TrackingDQM_e"
+ str(sys.argv[1]) +
"r"
+ str(sys.argv[2]) +
".root"
)
36
37
# nee to know geometry to create histograms
38
main.add_module(
'Gearbox'
)
39
main.add_module(
'Geometry'
)
40
41
# unpack
42
raw.add_unpackers(main, components=[
'PXD'
,
'SVD'
,
'CDC'
])
43
44
trk.add_tracking_reconstruction(main, components=[
'PXD'
,
'SVD'
,
'CDC'
])
45
46
# add DQM - official way
47
# cdqm.add_common_dqm(main,components=['SVD'], dqm_environment=sys.argv[4])
48
49
# add DQM - test both modules at once
50
main.add_module(
'TrackingHLTDQM'
)
51
main.add_module(
'TrackingExpressRecoDQM'
)
52
53
# == Show progress
54
main.add_module(
'Progress'
)
55
56
b2.print_path(main)
57
58
# Process events
59
b2.process(main)
60
61
print(b2.statistics)
tracking
examples
TrackingDQM.py
Generated on Wed Apr 9 2025 02:51:09 for Belle II Software by
1.9.6