![]() |
ATLAS Offline Software
|
Helper class to convert between offline column, row and hardware chip, column, row coordinates. More...
#include <PixelModuleHelper.h>
Public Types | |
| using | KEY_TYPE |
Public Member Functions | |
| PixelModuleHelper (const InDetDD::SiDetectorDesign &design) | |
| std::array< unsigned int, N_MASKS > | masks () const |
| operator bool () const | |
| unsigned int | columns () const |
| unsigned int | rows () const |
| unsigned int | columnsPerCircuit () const |
| unsigned int | rowsPerCircuit () const |
| unsigned int | circuitsPerColumn () const |
| unsigned int | circuitsPerRow () const |
| float | columnPitch () const |
| float | rowPitch () const |
| unsigned int | hardwareCoordinates (unsigned int row, unsigned int column) const |
| compute "hardware" coordinates from offline coordinates. | |
| std::pair< unsigned int, unsigned int > | offlineCoordinates (unsigned int key) const |
| compute offline coordinates from "hardware" coordinates | |
| unsigned int | nCells () const |
| Return total number of pixels per module. | |
| unsigned int | nSensorColumns () const |
| Return the number of offline columns. | |
| unsigned int | nSensorRows () const |
| Return the number of offline rows. | |
| unsigned int | nElements (unsigned int mask_i) const |
| return the maximum number of unique mask (or group) defects per module. | |
| std::array< unsigned int, 4 > | offlineRange (const std::pair< unsigned int, unsigned int > &range) const |
| Function to return offline column and row ranges matching the defect-area of the given key (used for histogramming) | |
| bool | swapOfflineRowsColumns () const |
Static Public Member Functions | |
| static constexpr unsigned int | getPixelMask () |
| static constexpr unsigned int | getColGroup8Mask () |
| static constexpr unsigned int | getColGroup4Mask () |
| static constexpr unsigned int | getChipMask () |
| static constexpr unsigned int | nMasks () |
| static constexpr unsigned int | makeKey (bool is_range, unsigned int chip, unsigned int col, unsigned int row=0u) |
| Create a key from mask, chip, column and row indices. | |
| static constexpr unsigned int | getColumn (unsigned int key) |
| Get the column index from a full key. | |
| static constexpr unsigned int | getRow (unsigned int key) |
| Get the row index from a full key. | |
| static constexpr unsigned int | getLimitRowMax () |
| Get the maximum row value. | |
| static constexpr unsigned int | getLimitColumnMax () |
| Get the maximum row value. | |
| static constexpr unsigned int | getChip (unsigned int key) |
| Get the column index from a full key. | |
| static constexpr unsigned int | getDefectType (unsigned int key) |
| Get an associated defect type. | |
| static constexpr unsigned int | getDefectTypeComponent (unsigned int key) |
| Get key component of an associated defect type. | |
| static constexpr unsigned int | makeDefectTypeKey (unsigned int defect_type) |
| Make the key component representing the an associated defect type. | |
| static constexpr bool | isRangeKey (unsigned int key) |
| Test whether a key is a range key. | |
| static constexpr unsigned int | makeRangeKey (unsigned int key) |
| Turn a key into a range key. | |
| static constexpr unsigned int | makeBaseKey (unsigned int key) |
| Return the key with the range flag removed. | |
| static constexpr std::pair< unsigned int, unsigned int > | makeRangeForMask (unsigned int key, unsigned int mask) |
| Return a key pair marking the beginning and the end of the range for the given mask and key. | |
| static constexpr bool | isMatchingDefect (unsigned int defect_key, unsigned int key) |
| Convenience method to check whether the key matches the defect. | |
Static Public Attributes | |
| static constexpr std::array< unsigned short, 2 > | N_COLS_PER_GROUP |
| static constexpr unsigned int | N_MASKS =3 |
| static constexpr unsigned int | ROW_BITS |
| static constexpr unsigned int | COL_BITS |
| static constexpr unsigned int | CHIP_BITS |
| static constexpr unsigned int | RANGE_FLAG_BITS |
| static constexpr unsigned int | TYPE_BITS |
| static constexpr unsigned int | ROW_SHIFT |
| static constexpr unsigned int | COL_SHIFT |
| static constexpr unsigned int | CHIP_SHIFT |
| static constexpr unsigned int | RANGE_FLAG_SHIFT |
| static constexpr unsigned int | TYPE_SHIFT |
| static constexpr unsigned int | ROW_MASK |
| static constexpr unsigned int | COL_MASK |
| static constexpr unsigned int | CHIP_MASK |
| static constexpr unsigned int | RANGE_FLAG_MASK |
| static constexpr unsigned int | TYPE_MASK |
Static Protected Member Functions | |
| static constexpr unsigned int | makeKeyPart (unsigned int val) |
| Convenience method to create part of a key. | |
Private Attributes | |
| unsigned short | m_sensorRows =0 |
| unsigned short | m_sensorColumns =0 |
| unsigned short | m_rows = 0 |
| unsigned short | m_columns = 0 |
| unsigned short | m_rowsPerCircuit = 0 |
| unsigned short | m_columnsPerCircuit = 0 |
| unsigned char | m_circuitsPerRow = 0 |
| unsigned char | m_circuitsPerColumn = 0 |
| float | m_columnPitch = 0 |
| float | m_rowPitch = 0 |
| bool | m_rectangularPixels = false |
| bool | m_swapOfflineRowsColumns =false |
Helper class to convert between offline column, row and hardware chip, column, row coordinates.
Definition at line 16 of file PixelModuleHelper.h.
|
inherited |
Definition at line 57 of file ModuleKeyHelper.h.
|
inline |
Definition at line 38 of file PixelModuleHelper.h.
|
inline |
Definition at line 88 of file PixelModuleHelper.h.
|
inline |
Definition at line 89 of file PixelModuleHelper.h.
|
inline |
Definition at line 91 of file PixelModuleHelper.h.
|
inline |
Definition at line 84 of file PixelModuleHelper.h.
|
inline |
Definition at line 86 of file PixelModuleHelper.h.
|
inlinestaticconstexprinherited |
Get the column index from a full key.
Definition at line 110 of file ModuleKeyHelper.h.
|
inlinestaticconstexpr |
Definition at line 35 of file PixelModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 33 of file PixelModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 31 of file PixelModuleHelper.h.
|
inlinestaticconstexprinherited |
Get the column index from a full key.
Definition at line 94 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Get an associated defect type.
Definition at line 114 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexpr |
Definition at line 29 of file PixelModuleHelper.h.
|
inlinestaticconstexprinherited |
Get the row index from a full key.
Definition at line 98 of file ModuleKeyHelper.h.
|
inline |
compute "hardware" coordinates from offline coordinates.
| row | offline row aka. phi index |
| column | offline column aka. eta index |
Definition at line 99 of file PixelModuleHelper.h.
|
inlinestaticconstexprinherited |
Convenience method to check whether the key matches the defect.
| defect_key | the key of the defect returned by lower_bound of the emulated defects. |
| key | the key to test |
Definition at line 184 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Test whether a key is a range key.
Range keys mark the beginning of inclusive range.
Definition at line 150 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Return the key with the range flag removed.
If the key is a range key return the key without the range flag otherwise return the the same key.
Definition at line 168 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Make the key component representing the an associated defect type.
Definition at line 136 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Create a key from mask, chip, column and row indices.
| is_range | if true the key marks the beginning of an inclusive range |
| chip | the index of a chip starting from zero |
| col | the index of a column starting from zero |
| row | the index of a row starting from zero |
The indices must be representable by the number of reserved bits.
Definition at line 85 of file ModuleKeyHelper.h.
|
inlinestaticconstexprprotectedinherited |
Convenience method to create part of a key.
| SHIFT | the given value will be shifted by this ammount |
| MASK | the shifted value must not overflow this mask. |
| val | the value to be stored in the key part |
Definition at line 66 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Return a key pair marking the beginning and the end of the range for the given mask and key.
| key | a key which marks a point in the range |
| mask | a mask which defines the range @preturn a pair containing the start key and end key of the range |
Definition at line 175 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
Turn a key into a range key.
Such keys mark the beginning of an inclusive range.
Definition at line 162 of file ModuleKeyHelper.h.
|
inline |
Definition at line 75 of file PixelModuleHelper.h.
|
inline |
Return total number of pixels per module.
Definition at line 156 of file PixelModuleHelper.h.
|
inline |
return the maximum number of unique mask (or group) defects per module.
Definition at line 171 of file PixelModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 74 of file PixelModuleHelper.h.
|
inline |
Return the number of offline columns.
Definition at line 161 of file PixelModuleHelper.h.
|
inline |
Return the number of offline rows.
Definition at line 166 of file PixelModuleHelper.h.
|
inline |
compute offline coordinates from "hardware" coordinates
| key | packed hardware coordinates |
Definition at line 125 of file PixelModuleHelper.h.
|
inline |
Function to return offline column and row ranges matching the defect-area of the given key (used for histogramming)
| range | pair of packed hardware coordinates addressing the start and end pixel of an rectangular inclusive pixel range. |
Definition at line 187 of file PixelModuleHelper.h.
|
inline |
Definition at line 82 of file PixelModuleHelper.h.
|
inline |
Definition at line 92 of file PixelModuleHelper.h.
|
inline |
Definition at line 85 of file PixelModuleHelper.h.
|
inline |
Definition at line 87 of file PixelModuleHelper.h.
|
inline |
Definition at line 204 of file PixelModuleHelper.h.
|
staticconstexprinherited |
Definition at line 44 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 54 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 49 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 43 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 53 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 48 of file ModuleKeyHelper.h.
|
private |
Definition at line 215 of file PixelModuleHelper.h.
|
private |
Definition at line 214 of file PixelModuleHelper.h.
|
private |
Definition at line 217 of file PixelModuleHelper.h.
|
private |
Definition at line 211 of file PixelModuleHelper.h.
|
private |
Definition at line 213 of file PixelModuleHelper.h.
|
private |
Definition at line 220 of file PixelModuleHelper.h.
|
private |
Definition at line 218 of file PixelModuleHelper.h.
|
private |
Definition at line 210 of file PixelModuleHelper.h.
|
private |
Definition at line 212 of file PixelModuleHelper.h.
|
private |
Definition at line 209 of file PixelModuleHelper.h.
|
private |
Definition at line 208 of file PixelModuleHelper.h.
|
private |
Definition at line 221 of file PixelModuleHelper.h.
|
staticconstexpr |
Definition at line 24 of file PixelModuleHelper.h.
|
staticconstexpr |
Definition at line 73 of file PixelModuleHelper.h.
|
staticconstexprinherited |
Definition at line 45 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 55 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 50 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 42 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 52 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 47 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 46 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 56 of file ModuleKeyHelper.h.
|
staticconstexprinherited |
Definition at line 51 of file ModuleKeyHelper.h.