 |
Belle II Software
release-05-01-25
|
12 #include <pxd/reconstruction/PXDPixelMasker.h>
13 #include <vxd/geometry/GeoCache.h>
23 if ((*m_maskedPixelsFromDB).isValid()) {
30 if ((*m_deadPixelsFromDB).isValid()) {
47 m_maskedPixels.maskSinglePixel(
id.
getID(), uid * vCells + vid);
55 return m_maskedPixels.pixelOK(
id.
getID(), uid * vCells + vid);
60 auto sensorID =
id.getID();
61 if (m_deadPixels.isDeadSensor(sensorID))
64 if (m_deadPixels.isDeadRow(sensorID, vid))
67 if (m_deadPixels.isDeadDrain(sensorID, uid * 4 + vid % 4))
71 if (m_deadPixels.isDeadSinglePixel(sensorID, uid * vCells + vid))
80 m_maskedPixels = **m_maskedPixelsFromDB;
85 m_deadPixels = **m_deadPixelsFromDB;
Class to uniquely identify a any structure of the PXD and SVD.
void setMaskedPixels()
Set masked pixels from DB.
static const SensorInfoBase & get(Belle2::VxdID id)
Return a reference to the SensorInfo of a given SensorID.
int getID(const std::vector< double > &breaks, double t)
get id of the time point t
bool pixelOK(VxdID id, unsigned int uid, unsigned int vid) const
Check whether a pixel on a given sensor is OK or not.
Singleton class for managing pixel masking for the PXD.
void initialize()
Initialize the PXDPixelMasker.
static GeoCache & getInstance()
Return a reference to the singleton instance.
int getVCells() const
Return number of pixel/strips in v direction.
bool pixelDead(VxdID id, unsigned int uid, unsigned int vid) const
Check whether a pixel on a given sensor is dead or not.
void maskSinglePixel(VxdID id, unsigned int uid, unsigned int vid)
Mask single pixel.
void setDeadPixels()
Set dead pixels from DB.
static PXDPixelMasker & getInstance()
Main (and only) way to access the PXDPixelMasker.