Belle II Software  release-08-01-10
PXDRawROIUnpackerModule Class Reference
Inheritance diagram for PXDRawROIUnpackerModule:
Collaboration diagram for PXDRawROIUnpackerModule:

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 mHLT
 PXDROIsHLT.
 
 mDC
 PXDROIsDC.
 

Detailed Description

Unpack Raw Rois

Definition at line 15 of file PXDROIUnpackerModule.py.

Member Function Documentation

◆ event()

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

Definition at line 28 of file PXDROIUnpackerModule.py.

28  def event(self):
29  """reimplementation of Module::event()."""
30 
31  rois = Belle2.PyStoreArray('PXDRawROIss')
32  if not rois:
33  return
34  for q in rois:
35  m = q.getNrROIs()
36  for i in range(0, m):
37  DHEID = q.getDHHID(i)
38  sensor = (DHEID & 0x1) + 1
39  ladder = (DHEID & 0x1E) >> 1 # no +1
40  layer = ((DHEID & 0x20) >> 5) + 1
41  v = Belle2.VxdID(layer, ladder, sensor)
42  if q.getType(i) == 0:
43  ROI = self.mHLT.appendNew()
44  ROI.setSensorID(v)
45  ROI.setMinUid(q.getMinUid(i))
46  ROI.setMaxUid(q.getMaxUid(i))
47  ROI.setMinVid(q.getMinVid(i))
48  ROI.setMaxVid(q.getMaxVid(i))
49  else:
50  ROI = self.mDC.appendNew()
51  ROI.setSensorID(v)
52  ROI.setMinUid(q.getMinUid(i))
53  ROI.setMaxUid(q.getMaxUid(i))
54  ROI.setMinVid(q.getMinVid(i))
55  ROI.setMaxVid(q.getMaxVid(i))
56 
57 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
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 18 of file PXDROIUnpackerModule.py.


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