![]() |
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 Types | |
using | KEY_TYPE = typename T_ModuleHelper::KEY_TYPE |
Public Member Functions | |
EmulatedDefects (const InDetDD::SiDetectorElementCollection &detector_elements) | |
std::pair< typename std::vector< KEY_TYPE >::const_iterator, typename std::vector< KEY_TYPE >::const_iterator > | lower_bound (unsigned int id_hash, KEY_TYPE key) const |
Convenience method to find the preceding defect. More... | |
bool | isDefect (const T_ModuleHelper &helper, unsigned int id_hash, KEY_TYPE key) const |
Test whether a pixel or strip 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... | |
bool | isModuleDefect (unsigned int id_hash) const |
Return true if the module defined by the given ID hash is defect. More... | |
void | setModuleDefect (unsigned int id_hash) |
Mark the specified module as defect. More... | |
const InDetDD::SiDetectorElement & | getDetectorElement (unsigned int id_hash) const |
Return the detector element for the given ID hash. More... | |
const InDetDD::SiDetectorElementCollection & | getDetectorElementCollection () const |
Return the detector element collection. More... | |
Static Public Member Functions | |
static std::pair< typename std::vector< KEY_TYPE >::iterator, typename std::vector< KEY_TYPE >::iterator > | lower_bound (std::vector< KEY_TYPE > &module_defects, KEY_TYPE key) |
Convenience method to find the preceding defect. More... | |
Public Attributes | |
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 |
static constexpr bool | s_needMasking = T_ModuleHelper::N_MASKS>0 |
Protected Member Functions | |
void | resize (std::size_t n_modules) |
Resize data structures for this number of modules. More... | |
Protected Attributes | |
std::vector< bool > | m_moduleIsDefect |
const InDetDD::SiDetectorElementCollection * | m_detectorElements |
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 24 of file EmulatedDefects.h.
using InDet::EmulatedDefects< T_ModuleHelper >::KEY_TYPE = typename T_ModuleHelper::KEY_TYPE |
Definition at line 29 of file EmulatedDefects.h.
|
inline |
Definition at line 31 of file EmulatedDefects.h.
|
inline |
Return the detector element for the given ID hash.
will throw a range_error if the ID hash is invalid.
Definition at line 120 of file EmulatedDefects.h.
|
inline |
Return the detector element collection.
Definition at line 125 of file EmulatedDefects.h.
|
inline |
Test whether a pixel or strip 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 87 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 100 of file EmulatedDefects.h.
|
inline |
Return true if the module defined by the given ID hash is defect.
Will throw a range_error if ID hash is invalid.
Definition at line 107 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 60 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 74 of file EmulatedDefects.h.
|
inlineprotected |
Resize data structures for this number of modules.
Definition at line 131 of file EmulatedDefects.h.
|
inline |
Mark the specified module as defect.
Definition at line 113 of file EmulatedDefects.h.
|
inherited |
STL member.
|
protected |
Definition at line 136 of file EmulatedDefects.h.
|
protected |
Definition at line 135 of file EmulatedDefects.h.
|
staticconstexpr |
Definition at line 27 of file EmulatedDefects.h.
|
staticconstexpr |
Definition at line 28 of file EmulatedDefects.h.