11#include <unordered_map>
12#include <unordered_set>
44 auto& singles = mapIterSingles->second;
46 if (singles.find(pixID) == singles.end())
47 singles.insert(pixID);
52 singles.insert(pixID);
62 bool pixelOK(
unsigned short sensorID,
unsigned int pixID)
const
67 auto& singles = mapIterSingles->second;
69 if (singles.find(pixID) != singles.end())
82 std::unordered_map<unsigned short, MaskedSinglePixelsSet>
m_MapSingles;
The payload telling which PXD pixel to mask (ignore)
std::unordered_map< unsigned short, MaskedSinglePixelsSet > m_MapSingles
Structure holding sets of masked single pixels for all sensors by sensor id (unsigned short).
bool pixelOK(unsigned short sensorID, unsigned int pixID) const
Check whether a pixel on a given sensor is OK or not.
const std::unordered_map< unsigned short, MaskedSinglePixelsSet > & getMaskedPixelMap() const
Return unordered_map with all masked single pixels in PXD.
std::unordered_set< unsigned int > MaskedSinglePixelsSet
Structure to hold set of masked single pixels indexed by their unique id (unsigned int),...
void maskSinglePixel(unsigned short sensorID, unsigned int pixID)
Mask single pixel.
~PXDMaskedPixelPar()
Destructor.
PXDMaskedPixelPar()
Default constructor.
ClassDef(PXDMaskedPixelPar, 1)
ClassDef, must be the last term before the closing {}.
Abstract base class for different kinds of events.