 |
Belle II Software
release-05-01-25
|
13 #include <pxd/dbobjects/PXDMaskedPixelPar.h>
14 #include <pxd/dbobjects/PXDDeadPixelPar.h>
15 #include <framework/database/DBObjPtr.h>
16 #include <vxd/dataobjects/VxdID.h>
29 class PXDPixelMasker {
60 bool pixelOK(
VxdID id,
unsigned int uid,
unsigned int vid)
const;
68 bool pixelDead(
VxdID id,
unsigned int uid,
unsigned int vid)
const;
Class to uniquely identify a any structure of the PXD and SVD.
PXDMaskedPixelPar m_maskedPixels
List of masked pixels.
PXDDeadPixelPar m_deadPixels
List of masked pixels.
std::unique_ptr< DBObjPtr< PXDMaskedPixelPar > > m_maskedPixelsFromDB
Masked pixels retrieved from DB.
void setMaskedPixels()
Set masked pixels from DB.
PXDPixelMasker & operator=(const PXDPixelMasker &)=delete
Singleton class, forbidden assignment operator.
The payload telling which PXD pixel is dead (=Readout system does not receive signals)
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.
std::unique_ptr< DBObjPtr< PXDDeadPixelPar > > m_deadPixelsFromDB
Dead pixels retrieved from DB.
void initialize()
Initialize the PXDPixelMasker.
const PXDDeadPixelPar & getDeadPixelParameters() const
Return dead pixel payload.
Abstract base class for different kinds of events.
PXDPixelMasker()
Singleton class, hidden constructor.
const PXDMaskedPixelPar & getMaskedPixelParameters() const
Return masked pixel payload.
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.
The payload telling which PXD pixel to mask (ignore)