ATLAS Offline Software
|
class that provides LArReadoutModuleID to integer hash ID mapping. More...
#include <LArRodIdHash.h>
Public Types | |
typedef unsigned int | ID |
definition of ID type More... | |
Public Member Functions | |
void | initialize (int offset, const std::vector< HWIdentifier > &roms) |
Initialize. More... | |
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... | |
int | offset () const |
return offset More... | |
Private Attributes | |
int | m_size {0} |
total number of IDs More... | |
std::map< unsigned int, int > | m_lookup |
test beam flag More... | |
std::vector< ID > | m_int2id |
reverse look up More... | |
int | m_offset {0} |
class that provides LArReadoutModuleID to integer hash ID mapping.
Definition at line 26 of file LArRodIdHash.h.
typedef unsigned int LArRodIdHash::ID |
definition of ID type
Definition at line 31 of file LArRodIdHash.h.
LArRodIdHash::ID LArRodIdHash::identifier | ( | int | i | ) | const |
reverse conversion
Definition at line 65 of file LArRodIdHash.cxx.
void LArRodIdHash::initialize | ( | int | offset, |
const std::vector< HWIdentifier > & | roms | ||
) |
int LArRodIdHash::max | ( | ) | const |
return maximum number of IDs
Definition at line 82 of file LArRodIdHash.cxx.
int LArRodIdHash::offset | ( | ) | const |
Convert ID to int.
Definition at line 71 of file LArRodIdHash.cxx.
|
private |
reverse look up
Definition at line 56 of file LArRodIdHash.h.
|
private |
test beam flag
Definition at line 53 of file LArRodIdHash.h.
|
private |
Definition at line 58 of file LArRodIdHash.h.
|
private |
total number of IDs
Definition at line 50 of file LArRodIdHash.h.