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
pxd_roi_plotter.py
1
#!/usr/bin/env python3
2
3
10
11
12
import
basf2
as
b2
13
from
ROOT
import
gROOT
14
15
import
PXDROIUnpackerModule
16
17
# prevent Canvases from popping up on x11
18
gROOT.SetBatch()
19
20
main = b2.create_path()
21
22
# main.add_module('RootInput')
23
main.add_module(
'SeqRootInput'
)
24
25
main.add_module(
'Progress'
)
26
27
main.add_module(
'PXDUnpacker'
)
28
29
'''Unpack ROIs from ONSEN output'''
30
main.add_module(
PXDROIUnpackerModule.PXDRawROIUnpackerModule
())
31
32
'''Unpack ROIs from HLT Payload (depends if there are in the sroot file)'''
33
# main.add_module(PXDROIUnpackerModule.PXDPayloadROIUnpackerModule())
34
35
plotter = b2.register_module(
'PXDROIPlot'
)
36
plotter.param(
"ROIsName"
,
"ROIs"
)
# calculated on HLT ... before Payload assembly
37
# plotter.param("ROIsName","PXDROIsPayHLT") # calculated on HLT ... unpacked from payload (depends what's in the sroot file)
38
plotter.param(
"DCROIsName"
,
"PXDROIsDC"
)
# output from DATCON by ONSEN
39
plotter.param(
"HLTROIsName"
,
"PXDROIsHLT"
)
# output from HLT by ONSEN
40
main.add_module(plotter)
41
42
b2.process(main)
PXDROIUnpackerModule.PXDRawROIUnpackerModule
Definition:
PXDROIUnpackerModule.py:15
pxd
examples
pxd_roi_plotter.py
Generated on Thu Apr 10 2025 02:39:10 for Belle II Software by
1.9.6