ATLAS Offline Software
|
#include <SiReadoutCellId.h>
Public Member Functions | |
SiReadoutCellId () | |
SiReadoutCellId (int strip) | |
SiReadoutCellId (int phiIndex, int etaIndex) | |
int | etaIndex () const |
Get eta index. More... | |
int | phiIndex () const |
Get phi index. Equivalent to strip(). More... | |
int | strip () const |
Get strip number. Equivalent to phiIndex(). More... | |
bool | isValid () const |
Test if its in a valid state. More... | |
bool | operator== (const SiCellId &other) const |
Test equality. More... | |
bool | operator!= (const SiCellId &other) const |
Test inequality. More... | |
bool | operator< (const SiCellId &other) const |
Operator for sorting. More... | |
unsigned int | word () const |
Private Types | |
enum | MaskAndShiftConstants { PHI_MASK = 0x0000ffff, PHI_NEG = 0x00008000, ETA_MASK = 0x00007fff, ETA_SHIFT = 16, ETA_NEG = 0x40000000, VALID = 0x80000000 } |
Private Attributes | |
unsigned int | m_word |
Identifier for the strip or pixel readout cell.
SiReadoutCellId behaves identically to its base class. Its only introduced to provide some type safety and distiguish between diodes (base class) and readout cells (this class). This is since more than one diode can be connected to a readout cell.
The following conversion is legal
SiReadoutCellId -> SiCellId OK
However the oppoisite is not allowed
SiCellId -> SiReadoutCellId NOT ALLOWED
since a SiCellId might not have direct readout out (eg for an edge strip or ganged pixel).
Definition at line 42 of file SiReadoutCellId.h.
|
privateinherited |
Enumerator | |
---|---|
PHI_MASK | |
PHI_NEG | |
ETA_MASK | |
ETA_SHIFT | |
ETA_NEG | |
VALID |
Definition at line 76 of file SiCellId.h.
|
inline |
Definition at line 62 of file SiReadoutCellId.h.
|
inline |
Definition at line 70 of file SiReadoutCellId.h.
|
inline |
Definition at line 66 of file SiReadoutCellId.h.
|
inlineinherited |
|
inlineinherited |
Test if its in a valid state.
Definition at line 136 of file SiCellId.h.
|
inlineinherited |
Test inequality.
Definition at line 146 of file SiCellId.h.
Operator for sorting.
Definition at line 151 of file SiCellId.h.
Test equality.
Definition at line 141 of file SiCellId.h.
|
inlineinherited |
|
inlineinherited |
Get strip number. Equivalent to phiIndex().
Definition at line 131 of file SiCellId.h.
|
inlineinherited |
Definition at line 67 of file SiCellId.h.
|
privateinherited |
Definition at line 70 of file SiCellId.h.