11#include <pxd/dbobjects/PXDPixelThresholdPar.h>
12#include <pxd/dbobjects/PXDMaskedPixelPar.h>
13#include <pxd/dbobjects/PXDDeadPixelPar.h>
14#include <framework/database/DBObjPtr.h>
81 bool pixelOK(
VxdID id,
unsigned int uid,
unsigned int vid)
const;
89 bool pixelDead(
VxdID id,
unsigned int uid,
unsigned int vid)
const;
Class for accessing objects in the database.
The payload telling which PXD pixel is dead (=Readout system does not receive signals)
The payload telling which PXD pixel to mask (ignore)
The payload telling which charge threshold to use for PXD pixel.
PXDMaskedPixelPar m_maskedPixels
List of masked pixels.
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.
unsigned short getPixelThreshold(VxdID id, unsigned int uid, unsigned int vid) const
Check whether a pixel on a given sensor is OK or not and get threshold.
void maskSinglePixel(VxdID id, unsigned int uid, unsigned int vid)
Mask single pixel.
void setMaskedPixels()
Set masked pixels from DB.
DBObjPtr< PXDMaskedPixelPar > m_maskedPixelsFromDB
Masked pixels retrieved from DB.
void setDeadPixels()
Set dead pixels from DB.
DBObjPtr< PXDPixelThresholdPar > m_pixelThresholdsFromDB
Pixel thresholds from DB.
void setSinglePixelThreshold(VxdID id, unsigned int uid, unsigned int vid, unsigned short pixThr)
Set threshold for single pixel.
static PXDPixelMasker & getInstance()
Main (and only) way to access the PXDPixelMasker.
DBObjPtr< PXDDeadPixelPar > m_deadPixelsFromDB
Dead pixels retrieved from DB.
PXDPixelMasker(const PXDPixelMasker &)=delete
Singleton class, forbidden copy constructor.
PXDPixelMasker & operator=(const PXDPixelMasker &)=delete
Singleton class, forbidden assignment operator.
const PXDMaskedPixelPar & getMaskedPixelParameters() const
Return masked pixel payload.
PXDDeadPixelPar m_deadPixels
List of masked pixels.
void setPixelThresholds()
Set pixel threshold from DB.
const PXDDeadPixelPar & getDeadPixelParameters() const
Return dead pixel payload.
PXDPixelThresholdPar m_pixelThresholds
List of pixel threshold.
PXDPixelMasker()
Singleton class, hidden constructor.
const PXDPixelThresholdPar & getPixelThresholdParameters() const
Return masked pixel payload.
Class to uniquely identify a any structure of the PXD and SVD.
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.