Belle II Software
development
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 assemly
37
# plotter.param("ROIsName","PXDROIsPayHLT") # calculated on HLT ... unpacked from payload (depends whats 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 Fri Nov 8 2024 02:40:30 for Belle II Software by
1.9.6