ATLAS Offline Software
|
#include <TgcL1RdoIdHash.h>
Public Types | |
enum | { INVALID_ID = 0xFFFF } |
typedef uint16_t | ID |
Public Member Functions | |
TgcL1RdoIdHash () | |
virtual | ~TgcL1RdoIdHash () |
int | operator() (const ID &id) const |
Convert ID to int. More... | |
int | max () const |
return maximum number of IDs More... | |
ID | identifier (int i) const |
reverse conversion More... | |
uint16_t | subDetectorId (int i) const |
reverse conversion for SubDetectorID and ROD ID More... | |
uint16_t | rodId (int i) const |
reverse conversion : ROD ID More... | |
Private Attributes | |
int | m_size |
total number of IDs More... | |
std::map< ID, int > | m_lookup |
lookup table More... | |
std::vector< ID > | m_int2id |
reverse lookup More... | |
std::vector< uint16_t > | m_int2subDetectorId |
reverse lookup for SubDetectorID and ROD ID More... | |
std::vector< uint16_t > | m_int2rodId |
Definition at line 17 of file TgcL1RdoIdHash.h.
typedef uint16_t TgcL1RdoIdHash::ID |
Definition at line 21 of file TgcL1RdoIdHash.h.
anonymous enum |
TgcL1RdoIdHash::TgcL1RdoIdHash | ( | ) |
Definition at line 9 of file TgcL1RdoIdHash.cxx.
|
inlinevirtual |
Definition at line 24 of file TgcL1RdoIdHash.h.
TgcL1RdoIdHash::ID TgcL1RdoIdHash::identifier | ( | int | i | ) | const |
reverse conversion
Definition at line 31 of file TgcL1RdoIdHash.cxx.
|
inline |
Convert ID to int.
return INVALID_ID if invalid ID
return -1 if invalid ID
Definition at line 64 of file TgcL1RdoIdHash.cxx.
uint16_t TgcL1RdoIdHash::rodId | ( | int | i | ) | const |
uint16_t TgcL1RdoIdHash::subDetectorId | ( | int | i | ) | const |
reverse conversion for SubDetectorID and ROD ID
reverse conversion : SubDetectorID
Definition at line 42 of file TgcL1RdoIdHash.cxx.
|
private |
reverse lookup
Definition at line 52 of file TgcL1RdoIdHash.h.
|
private |
Definition at line 57 of file TgcL1RdoIdHash.h.
|
private |
reverse lookup for SubDetectorID and ROD ID
Definition at line 56 of file TgcL1RdoIdHash.h.
|
private |
lookup table
Definition at line 48 of file TgcL1RdoIdHash.h.
|
private |
total number of IDs
Definition at line 44 of file TgcL1RdoIdHash.h.