The payload telling which PXD pixel to mask (ignore)
More...
#include <PXDMaskedPixelPar.h>
|
typedef std::unordered_set< unsigned int > | MaskedSinglePixelsSet |
| Structure to hold set of masked single pixels indexed by their unique id (unsigned int), stored in hash table.
|
|
|
| ClassDef (PXDMaskedPixelPar, 1) |
| ClassDef, must be the last term before the closing {}.
|
|
|
std::unordered_map< unsigned short, MaskedSinglePixelsSet > | m_MapSingles |
| Structure holding sets of masked single pixels for all sensors by sensor id (unsigned short).
|
|
The payload telling which PXD pixel to mask (ignore)
Definition at line 24 of file PXDMaskedPixelPar.h.
◆ MaskedSinglePixelsSet
Structure to hold set of masked single pixels indexed by their unique id (unsigned int), stored in hash table.
Definition at line 27 of file PXDMaskedPixelPar.h.
◆ PXDMaskedPixelPar()
Default constructor.
Definition at line 30 of file PXDMaskedPixelPar.h.
std::unordered_map< unsigned short, MaskedSinglePixelsSet > m_MapSingles
Structure holding sets of masked single pixels for all sensors by sensor id (unsigned short).
◆ ~PXDMaskedPixelPar()
◆ getMaskedPixelMap()
◆ maskSinglePixel()
void maskSinglePixel |
( |
unsigned short |
sensorID, |
|
|
unsigned int |
pixID |
|
) |
| |
|
inline |
Mask single pixel.
- Parameters
-
sensorID | unique ID of the sensor |
pixID | unique ID of single pixel to mask |
Definition at line 39 of file PXDMaskedPixelPar.h.
40 {
43
44 auto& singles = mapIterSingles->second;
45
46 if (singles.find(pixID) == singles.end())
47 singles.insert(pixID);
48 } else {
49
51
52 singles.insert(pixID);
54 }
55 }
std::unordered_set< unsigned int > MaskedSinglePixelsSet
Structure to hold set of masked single pixels indexed by their unique id (unsigned int),...
◆ pixelOK()
bool pixelOK |
( |
unsigned short |
sensorID, |
|
|
unsigned int |
pixID |
|
) |
| const |
|
inline |
Check whether a pixel on a given sensor is OK or not.
- Parameters
-
sensorID | unique ID of the sensor |
pixID | unique ID of single pixel to mask |
- Returns
- true if pixel is not masked, otherwise false.
Definition at line 62 of file PXDMaskedPixelPar.h.
63 {
66
67 auto& singles = mapIterSingles->second;
68
69 if (singles.find(pixID) != singles.end())
70 return false;
71 }
72
73 return true;
74 }
◆ m_MapSingles
Structure holding sets of masked single pixels for all sensors by sensor id (unsigned short).
Definition at line 82 of file PXDMaskedPixelPar.h.
The documentation for this class was generated from the following file: