11#include <unordered_map>
46 auto& singles = mapIterSingles->second;
47 singles.insert(std::pair <unsigned int, unsigned short>(pixID, pixThr));
52 singleThresholds.insert(std::pair <unsigned int, unsigned short>(pixID, pixThr));
67 auto& singleThresholds = singleSensorThresholds->second;
69 auto singleThr = singleThresholds.find(pixID);
70 if (singleThr != singleThresholds.end()) {
71 return singleThr->second;
unsigned short m_defaultThreshold
Default value for charge threshold.
~PXDPixelThresholdPar()
Destructor.
void setSinglePixelThreshold(unsigned short sensorID, unsigned int pixID, unsigned short pixThr=255)
Set threshold for single pixel.
unsigned short getPixelThreshold(unsigned short sensorID, unsigned int pixID) const
Check whether a pixel on a given sensor is OK or not and get threshold.
PXDPixelThresholdPar(unsigned short defaultThr=7)
Default constructor.
std::unordered_map< unsigned int, unsigned short > SinglePixelThresholdsSet
Structure to hold set of single pixels indexed by their unique id (unsigned int), stored in hash tabl...
std::unordered_map< unsigned short, SinglePixelThresholdsSet > m_MapSingleThresholds
Structure holding sets of masked single pixels for all sensors by sensor id (unsigned short).
const std::unordered_map< unsigned short, SinglePixelThresholdsSet > & getPixelThresholdMap() const
Return unordered_map with all masked single pixels in PXD.
ClassDef(PXDPixelThresholdPar, 1)
ClassDef.
Abstract base class for different kinds of events.