Belle II Software  release-06-00-14
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 16 of file PXDROIUnpackerModule.py.

Member Function Documentation

◆ event()

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

Definition at line 29 of file PXDROIUnpackerModule.py.

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


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