ATLAS Offline Software
|
Hash function for CSC Raw Data Collection. More...
#include <CscRawDataCollectionIdHash.h>
Public Types | |
enum | { INVALID_ID = 0xFFFF } |
typedef uint16_t | ID |
Public Member Functions | |
CscRawDataCollectionIdHash () | |
~CscRawDataCollectionIdHash () | |
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 (unsigned int i) const |
reverse conversion : ROD ID More... | |
Private Attributes | |
int | m_size {0} |
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 |
Hash function for CSC Raw Data Collection.
Definition at line 16 of file CscRawDataCollectionIdHash.h.
typedef uint16_t CscRawDataCollectionIdHash::ID |
Definition at line 20 of file CscRawDataCollectionIdHash.h.
anonymous enum |
CscRawDataCollectionIdHash::CscRawDataCollectionIdHash | ( | ) |
Definition at line 12 of file CscRawDataCollectionIdHash.cxx.
|
inline |
Definition at line 23 of file CscRawDataCollectionIdHash.h.
CscRawDataCollectionIdHash::ID CscRawDataCollectionIdHash::identifier | ( | int | i | ) | const |
reverse conversion
Definition at line 41 of file CscRawDataCollectionIdHash.cxx.
|
inline |
Convert ID to int.
return INVALID_ID if invalid ID
return -1 if invalid ID
Definition at line 76 of file CscRawDataCollectionIdHash.cxx.
uint16_t CscRawDataCollectionIdHash::rodId | ( | unsigned int | i | ) | const |
uint16_t CscRawDataCollectionIdHash::subDetectorId | ( | int | i | ) | const |
reverse conversion for SubDetectorID and ROD ID
reverse conversion : SubDetectorID
Definition at line 52 of file CscRawDataCollectionIdHash.cxx.
|
private |
reverse lookup
Definition at line 51 of file CscRawDataCollectionIdHash.h.
|
private |
Definition at line 56 of file CscRawDataCollectionIdHash.h.
|
private |
reverse lookup for SubDetectorID and ROD ID
Definition at line 55 of file CscRawDataCollectionIdHash.h.
|
private |
lookup table
Definition at line 47 of file CscRawDataCollectionIdHash.h.
|
private |
total number of IDs
Definition at line 43 of file CscRawDataCollectionIdHash.h.