10 #include <pxd/reconstruction/PXDPixelMasker.h>
11 #include <vxd/geometry/GeoCache.h>
21 if ((*m_maskedPixelsFromDB).isValid()) {
28 if ((*m_deadPixelsFromDB).isValid()) {
45 m_maskedPixels.maskSinglePixel(
id.
getID(), uid * vCells + vid);
53 return m_maskedPixels.pixelOK(
id.
getID(), uid * vCells + vid);
58 auto sensorID =
id.getID();
59 if (m_deadPixels.isDeadSensor(sensorID))
62 if (m_deadPixels.isDeadRow(sensorID, vid))
65 if (m_deadPixels.isDeadDrain(sensorID, uid * 4 + vid % 4))
69 if (m_deadPixels.isDeadSinglePixel(sensorID, uid * vCells + vid))
78 m_maskedPixels = **m_maskedPixelsFromDB;
83 m_deadPixels = **m_deadPixelsFromDB;
Class for accessing objects in the database.
Singleton class for managing pixel masking for the PXD.
bool pixelDead(VxdID id, unsigned int uid, unsigned int vid) const
Check whether a pixel on a given sensor is dead or not.
void initialize()
Initialize the PXDPixelMasker.
bool pixelOK(VxdID id, unsigned int uid, unsigned int vid) const
Check whether a pixel on a given sensor is OK or not.
void maskSinglePixel(VxdID id, unsigned int uid, unsigned int vid)
Mask single pixel.
void setMaskedPixels()
Set masked pixels from DB.
void setDeadPixels()
Set dead pixels from DB.
static PXDPixelMasker & getInstance()
Main (and only) way to access the PXDPixelMasker.
static GeoCache & getInstance()
Return a reference to the singleton instance.
static const SensorInfoBase & get(Belle2::VxdID id)
Return a reference to the SensorInfo of a given SensorID.
int getVCells() const
Return number of pixel/strips in v direction.
Class to uniquely identify a any structure of the PXD and SVD.
int getID(const std::vector< double > &breaks, double t)
get id of the time point t