ATLAS Offline Software
|
#include <SiCellId.h>
Public Member Functions | |
SiCellId () | |
Constructor. Set in invalid state. More... | |
SiCellId (int strip) | |
Construct with strip number. More... | |
SiCellId (int phiIndex, int etaIndex) | |
Construct with phi, eta index. More... | |
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 cell. Just the strip number for SCT or phi_index, eta_index for pixel. Packs the numbers in an int. Supports negative indices and is initialized in an invalid state when using the default constructor.
Definition at line 29 of file SiCellId.h.
|
private |
Enumerator | |
---|---|
PHI_MASK | |
PHI_NEG | |
ETA_MASK | |
ETA_SHIFT | |
ETA_NEG | |
VALID |
Definition at line 76 of file SiCellId.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Test if its in a valid state.
Definition at line 136 of file SiCellId.h.
|
inline |
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.
|
inline |
|
inline |
Get strip number. Equivalent to phiIndex().
Definition at line 131 of file SiCellId.h.
|
inline |
Definition at line 67 of file SiCellId.h.
|
private |
Definition at line 70 of file SiCellId.h.