Specialization of emulated defects conditions data for ITk pixels Defect conditions data for defects which use addresses created by the PixelModuleHelper.
More...
#include <PixelEmulatedDefects.h>
|
std::pair< std::vector< unsigned int >::const_iterator, std::vector< unsigned int >::const_iterator > | lower_bound (unsigned int id_hash, unsigned int key) const |
| Convenience method to find the preceding defect. More...
|
|
bool | isDefect (const PixelModuleHelper &helper, unsigned int id_hash, unsigned int key) const |
| Test whether a pixel on a certain module is marked as defect. More...
|
|
bool | isDefect (const PixelModuleHelper &helper, unsigned int id_hash, unsigned int row_idx_aka_phi, unsigned int col_idx_aka_eta) const |
| Test whether a pixel on a certain module is marked as defect. More...
|
|
|
static std::pair< std::vector< unsigned int >::iterator, std::vector< unsigned int >::iterator > | lower_bound (std::vector< unsigned int > &module_defects, unsigned int key) |
| Convenience method to find the preceding defect. More...
|
|
Specialization of emulated defects conditions data for ITk pixels Defect conditions data for defects which use addresses created by the PixelModuleHelper.
Definition at line 15 of file PixelEmulatedDefects.h.
◆ isDefect() [1/2]
Test whether a pixel on a certain module is marked as defect.
- Parameters
-
helper | utility matching this defect data to check whether a defect overlaps with pixel coordinates. |
id_hash | a valid ID hash |
key | packed hardware coordinates of the pixel to be tested. |
- Returns
- true if this data structure contains a defect for this module which overlaps with the given pixel coordinates. Will throw a range_error if the ID hash is invalid.
Definition at line 72 of file EmulatedDefects.h.
74 return (defect_iter != end_iter &&
helper.isSameDefectWithGroups( *defect_iter,
key) );
◆ isDefect() [2/2]
Test whether a pixel on a certain module is marked as defect.
- Parameters
-
helper | utility matching this defect data to check whether a defect overlaps with pixel coordinates. |
id_hash | a valid ID hash |
row_idx_aka_phi | the offline row aka phi index of a pixel |
col_idx_aka_eta | the offline column aka eta index of a pixel |
- Returns
- true if this data structure contains a defect for this module which overlaps with the given pixel coordinates Will throw a range_error if the ID hash is invalid.
Definition at line 85 of file EmulatedDefects.h.
86 unsigned int key =
helper.hardwareCoordinates(row_idx_aka_phi, col_idx_aka_eta);
◆ lower_bound() [1/2]
static std::pair< std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator> InDet::EmulatedDefects< PixelModuleHelper >::lower_bound |
( |
std::vector< unsigned int > & |
module_defects, |
|
|
unsigned int |
key |
|
) |
| |
|
inlinestaticinherited |
Convenience method to find the preceding defect.
- Parameters
-
module_defects | the defect list of a particular module |
key | packed hardware coordinates addressing a single pixel or column group defect. |
- Returns
- pair of the iterator of the preceding element and the end iterator If there is no preceding defect then both returned iterators will be the end iterator
Definition at line 46 of file EmulatedDefects.h.
48 return std::make_pair( std::lower_bound( module_defects.begin(),module_defects.end(),
key,
greater()),
49 module_defects.end());
◆ lower_bound() [2/2]
std::pair< std::vector<unsigned int>::const_iterator, std::vector<unsigned int>::const_iterator> InDet::EmulatedDefects< PixelModuleHelper >::lower_bound |
( |
unsigned int |
id_hash, |
|
|
unsigned int |
key |
|
) |
| const |
|
inlineinherited |
Convenience method to find the preceding defect.
- Parameters
-
id_hash | a valid ID hash of a module. |
key | packed hardware coordinates addressing a single pixel or column group defect. |
- Returns
- pair of the iterator of the preceding element and the end iterator of the corresponding module If there is no preceding defect then both returned iterators will be the end iterator. Will throw a range_error if the ID hash is invalid.
Definition at line 59 of file EmulatedDefects.h.
60 const std::vector<unsigned int> &module_defects = this->at(id_hash);
61 return std::make_pair( std::lower_bound( module_defects.begin(),module_defects.end(),
key,
greater()),
62 module_defects.end());
◆ elements
T std::vector< T >::elements |
|
inherited |
◆ m_detectorElements
◆ MASK_FOR_COMPARISON
The documentation for this class was generated from the following file: