ATLAS Offline Software
|
Data structure do mark e.g. More...
#include <EmulatedDefects.h>
Classes | |
class | greater |
Special greater operator which ignores the column group flag in the comparison. More... | |
Public Member Functions | |
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 T_ModuleHelper &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 T_ModuleHelper &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 Public Member Functions | |
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... | |
Public Attributes | |
const InDetDD::SiDetectorElementCollection * | m_detectorElements = nullptr |
T | elements |
STL member. More... | |
Static Public Attributes | |
static constexpr unsigned int | MASK_FOR_COMPARISON = T_ModuleHelper::CHIP_MASK | T_ModuleHelper::ROW_MASK | T_ModuleHelper::COL_MASK |
Data structure do mark e.g.
pixel defects for a list of modules. Contains a list of ordered hardware coordinates marking defect "pixels" for each module identified by an ID hash (consecutive integer). Defects can be either individual pixel defects or column group defects (group of 8 consecutive columns). The defects are expected to be ordered in descending order (excluding the column group flag), such that std::lower_bound together with the supplied greater comparator will yield the defect which is either identical, has a smaller column address or smaller row address. If the elements are in a different order the results will be undefined.
Definition at line 27 of file EmulatedDefects.h.
|
inline |
Test whether a pixel on a certain module is marked as defect.
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. |
Definition at line 72 of file EmulatedDefects.h.
|
inline |
Test whether a pixel on a certain module is marked as defect.
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 |
Definition at line 85 of file EmulatedDefects.h.
|
inlinestatic |
Convenience method to find the preceding defect.
module_defects | the defect list of a particular module |
key | packed hardware coordinates addressing a single pixel or column group defect. |
Definition at line 46 of file EmulatedDefects.h.
|
inline |
Convenience method to find the preceding defect.
id_hash | a valid ID hash of a module. |
key | packed hardware coordinates addressing a single pixel or column group defect. |
Definition at line 59 of file EmulatedDefects.h.
|
inherited |
STL member.
const InDetDD::SiDetectorElementCollection* InDet::EmulatedDefects< T_ModuleHelper >::m_detectorElements = nullptr |
Definition at line 90 of file EmulatedDefects.h.
|
staticconstexpr |
Definition at line 30 of file EmulatedDefects.h.