11from basf2
import Module, B2ERROR
12from ROOT
import Belle2
19 """reimplementation of Module::initialize()."""
25 self.
mHLT.registerInDataStore()
26 self.
mDC.registerInDataStore()
29 """reimplementation of Module::event()."""
38 sensor = (DHEID & 0x1) + 1
39 ladder = (DHEID & 0x1E) >> 1
40 layer = ((DHEID & 0x20) >> 5) + 1
43 ROI = self.
mHLT.appendNew()
45 ROI.setMinUid(q.getMinUid(i))
46 ROI.setMaxUid(q.getMaxUid(i))
47 ROI.setMinVid(q.getMinVid(i))
48 ROI.setMaxVid(q.getMaxVid(i))
50 ROI = self.
mDC.appendNew()
52 ROI.setMinUid(q.getMinUid(i))
53 ROI.setMaxUid(q.getMaxUid(i))
54 ROI.setMinVid(q.getMinVid(i))
55 ROI.setMaxVid(q.getMaxVid(i))
59 """Unpack HLT Payload Rois"""
62 """reimplementation of Module::initialize()."""
68 self.
mPHLT.registerInDataStore()
69 self.
mPDC.registerInDataStore()
72 """reimplementation of Module::event()."""
76 B2ERROR(
"ROIpayload is missing")
82 sensor = (DHEID & 0x1) + 1
83 ladder = (DHEID & 0x1E) >> 1
84 layer = ((DHEID & 0x20) >> 5) + 1
87 ROI = self.
mPHLT.appendNew()
89 ROI.setMinUid(q.getMinUid(i))
90 ROI.setMaxUid(q.getMaxUid(i))
91 ROI.setMinVid(q.getMinVid(i))
92 ROI.setMaxVid(q.getMaxVid(i))
94 ROI = self.
mPDC.appendNew()
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 StoreArray.
a (simplified) python wrapper for StoreObjPtr.
Class to uniquely identify a any structure of the PXD and SVD.