![]() |
ATLAS Offline Software
|
Helper class to convert between offline column, row and hardware chip, column, row coordinates. More...
#include <StripModuleHelper.h>
Public Types | |
| using | KEY_TYPE = unsigned short |
Public Member Functions | |
| StripModuleHelper (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 | rowsPerCircuit () const |
| KEY_TYPE | hardwareCoordinates (unsigned int row, unsigned int column) const |
| Compute "hardware" coordinates from offline coordinates. More... | |
| std::pair< unsigned int, unsigned int > | offlineCoordinates (unsigned int key) const |
| compute offline coordinates from "hardware" coordinates More... | |
| unsigned int | nCells () const |
| Return the total number strips of this module. More... | |
| unsigned int | nSensorColumns () const |
| Number of offline columns aka. More... | |
| unsigned int | nSensorRows () const |
| Number of offline rows aka. More... | |
| unsigned int | nElements ([[maybe_unused]] unsigned int mask_i) const |
| return the maximum number of unique mask (or group) defects per module. More... | |
| std::array< unsigned int, 4 > | offlineRange (const std::pair< unsigned int, unsigned int > &range) const |
| Convenience function to return offline column and row ranges matching the defect-area of the given key (for histogramming. More... | |
Static Public Member Functions | |
| static constexpr unsigned int | getStripMask () |
| static constexpr unsigned int | getChipMask () |
| static constexpr unsigned int | nMasks () |
| static constexpr unsigned int | columnsPerCircuit () |
| static constexpr unsigned int | circuitsPerColumn () |
| static constexpr unsigned int | circuitsPerRow () |
| static constexpr unsigned int | columnsPerMask ([[maybe_unused]] unsigned int mask_idx) |
| static constexpr bool | swapOfflineRowsColumns () |
| static constexpr unsigned short | makeKey (bool is_range, unsigned int chip, unsigned int col, unsigned int row=0u) |
| Create a key from mask, chip, column and row indices. More... | |
| static constexpr unsigned short | getColumn (unsigned short key) |
| Get the column index from a full key. More... | |
| static constexpr unsigned short | getRow (unsigned short key) |
| Get the row index from a full key. More... | |
| static constexpr unsigned short | getLimitRowMax () |
| Get the maximum row value. More... | |
| static constexpr unsigned short | getLimitColumnMax () |
| Get the maximum row value. More... | |
| static constexpr unsigned short | getChip (unsigned short key) |
| Get the column index from a full key. More... | |
| static constexpr unsigned short | getDefectType (unsigned short key) |
| Get an associated defect type. More... | |
| static constexpr unsigned short | getDefectTypeComponent (unsigned short key) |
| Get key component of an associated defect type. More... | |
| static constexpr unsigned short | makeDefectTypeKey (unsigned int defect_type) |
| Make the key component representing the an associated defect type. More... | |
| static constexpr bool | isRangeKey (unsigned short key) |
| Test whether a key is a range key. More... | |
| static constexpr unsigned short | makeRangeKey (unsigned short key) |
| Turn a key into a range key. More... | |
| static constexpr unsigned short | makeBaseKey (unsigned short key) |
| Return the key with the range flag removed. More... | |
| static constexpr std::pair< unsigned short, unsigned short > | makeRangeForMask (unsigned short key, unsigned short mask) |
| Return a key pair marking the beginning and the end of the range for the given mask and key. More... | |
| static constexpr bool | isMatchingDefect (unsigned short defect_key, unsigned short key) |
| Convenience method to check whether the key matches the defect. More... | |
Static Public Attributes | |
| static constexpr unsigned int | N_MASKS = 1 |
| 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 short | ROW_SHIFT |
| static constexpr unsigned short | COL_SHIFT |
| static constexpr unsigned short | CHIP_SHIFT |
| static constexpr unsigned short | RANGE_FLAG_SHIFT |
| static constexpr unsigned short | TYPE_SHIFT |
| static constexpr unsigned short | ROW_MASK |
| static constexpr unsigned short | COL_MASK |
| static constexpr unsigned short | CHIP_MASK |
| static constexpr unsigned short | RANGE_FLAG_MASK |
| static constexpr unsigned short | TYPE_MASK |
Static Protected Member Functions | |
| static constexpr unsigned short | makeKeyPart ([[maybe_unused]] unsigned short val) |
| Convenience method to create part of a key. More... | |
Private Attributes | |
| unsigned short | m_rows = 0 |
| unsigned short | m_columns = 0 |
Helper class to convert between offline column, row and hardware chip, column, row coordinates.
Definition at line 17 of file StripModuleHelper.h.
|
inherited |
Definition at line 57 of file ModuleKeyHelper.h.
|
inline |
Definition at line 31 of file StripModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 53 of file StripModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 54 of file StripModuleHelper.h.
|
inline |
Definition at line 49 of file StripModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 51 of file StripModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 56 of file StripModuleHelper.h.
|
inlinestaticconstexprinherited |
|
inlinestaticconstexpr |
Definition at line 28 of file StripModuleHelper.h.
|
inlinestaticconstexprinherited |
Get the column index from a full key.
Definition at line 94 of file ModuleKeyHelper.h.
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
|
inlinestaticconstexprinherited |
Get the row index from a full key.
Definition at line 98 of file ModuleKeyHelper.h.
|
inlinestaticconstexpr |
Definition at line 26 of file StripModuleHelper.h.
|
inline |
Compute "hardware" coordinates from offline coordinates.
| row | offline row aka. phi index |
| column | offline column aka. eta index |
Definition at line 63 of file StripModuleHelper.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 41 of file StripModuleHelper.h.
|
inline |
Return the total number strips of this module.
Definition at line 112 of file StripModuleHelper.h.
|
inline |
return the maximum number of unique mask (or group) defects per module.
For strips there is a single mask which covers all strips.
Definition at line 128 of file StripModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 40 of file StripModuleHelper.h.
|
inline |
Number of offline columns aka.
upper bound of eta index
Definition at line 117 of file StripModuleHelper.h.
|
inline |
Number of offline rows aka.
upper bound of phi index
Definition at line 122 of file StripModuleHelper.h.
|
inline |
compute offline coordinates from "hardware" coordinates
| key | packed hardware coordinates |
Definition at line 83 of file StripModuleHelper.h.
|
inline |
Convenience function to return offline column and row ranges matching the defect-area of the given key (for histogramming.
| key | packed hardware coordinates addressing a single strip (or a group defect) |
Definition at line 137 of file StripModuleHelper.h.
|
inline |
Definition at line 47 of file StripModuleHelper.h.
|
inline |
Definition at line 50 of file StripModuleHelper.h.
|
inline |
Definition at line 52 of file StripModuleHelper.h.
|
inlinestaticconstexpr |
Definition at line 155 of file StripModuleHelper.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 159 of file StripModuleHelper.h.
|
private |
Definition at line 158 of file StripModuleHelper.h.
|
staticconstexpr |
Definition at line 39 of file StripModuleHelper.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.
1.8.18