 |
Belle II Software
release-05-01-25
|
13 #include <unordered_map>
14 #include <unordered_set>
26 class PXDMaskedPixelPar:
public TObject {
46 auto& singles = mapIterSingles->second;
48 if (singles.find(pixID) == singles.end())
49 singles.insert(pixID);
54 singles.insert(pixID);
64 bool pixelOK(
unsigned short sensorID,
unsigned int pixID)
const
69 auto& singles = mapIterSingles->second;
71 if (singles.find(pixID) != singles.end())
84 std::unordered_map<unsigned short, MaskedSinglePixelsSet>
m_MapSingles;
ClassDef(PXDMaskedPixelPar, 1)
ClassDef, must be the last term before the closing {}.
std::unordered_set< unsigned int > MaskedSinglePixelsSet
Structure to hold set of masked single pixels indexed by their unique id (unsigned int),...
std::unordered_map< unsigned short, MaskedSinglePixelsSet > m_MapSingles
Structure holding sets of masked single pixels for all sensors by sensor id (unsigned short).
Abstract base class for different kinds of events.
const std::unordered_map< unsigned short, MaskedSinglePixelsSet > & getMaskedPixelMap() const
Return unordered_map with all masked single pixels in PXD.
PXDMaskedPixelPar()
Default constructor.
void maskSinglePixel(unsigned short sensorID, unsigned int pixID)
Mask single pixel.
bool pixelOK(unsigned short sensorID, unsigned int pixID) const
Check whether a pixel on a given sensor is OK or not.
~PXDMaskedPixelPar()
Destructor.