Belle II Software development
PXDPayloadROIUnpackerModule Class Reference
Inheritance diagram for PXDPayloadROIUnpackerModule:

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 mPHLT
 PXDROIsPayHLT.
 
 mPDC
 PXDROIsPayDC.
 

Detailed Description

Unpack HLT Payload Rois

Definition at line 58 of file PXDROIUnpackerModule.py.

Member Function Documentation

◆ event()

def event (   self)
reimplementation of Module::event().

Definition at line 71 of file PXDROIUnpackerModule.py.

71 def event(self):
72 """reimplementation of Module::event()."""
73
74 q = Belle2.PyStoreObj('ROIpayload')
75 if not q:
76 B2ERROR("ROIpayload is missing")
77 return
78 q = q.obj()
79 n = q.getNrROIs()
80 for i in range(0, n):
81 DHEID = q.getDHHID(i)
82 sensor = (DHEID & 0x1) + 1
83 ladder = (DHEID & 0x1E) >> 1 # no +1
84 layer = ((DHEID & 0x20) >> 5) + 1
85 v = Belle2.VxdID(layer, ladder, sensor)
86 if q.getType(i) == 0:
87 ROI = self.mPHLT.appendNew()
88 ROI.setSensorID(v)
89 ROI.setMinUid(q.getMinUid(i))
90 ROI.setMaxUid(q.getMaxUid(i))
91 ROI.setMinVid(q.getMinVid(i))
92 ROI.setMaxVid(q.getMaxVid(i))
93 else:
94 ROI = self.mPDC.appendNew()
95 ROI.setSensorID(v)
96 ROI.setMinUid(q.getMinUid(i))
97 ROI.setMaxUid(q.getMaxUid(i))
98 ROI.setMinVid(q.getMinVid(i))
99 ROI.setMaxVid(q.getMaxVid(i))
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33

◆ initialize()

def initialize (   self)
reimplementation of Module::initialize().

Definition at line 61 of file PXDROIUnpackerModule.py.

61 def initialize(self):
62 """reimplementation of Module::initialize()."""
63
64 self.mPHLT = Belle2.PyStoreArray(Belle2.ROIid.Class(), "PXDROIsPayHLT")
65
66 self.mPDC = Belle2.PyStoreArray(Belle2.ROIid.Class(), "PXDROIsPayDC")
67
68 self.mPHLT.registerInDataStore()
69 self.mPDC.registerInDataStore()
70
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

Member Data Documentation

◆ mPDC

mPDC

PXDROIsPayDC.

Definition at line 66 of file PXDROIUnpackerModule.py.

◆ mPHLT

mPHLT

PXDROIsPayHLT.

Definition at line 64 of file PXDROIUnpackerModule.py.


The documentation for this class was generated from the following file: