![]() |
ATLAS Offline Software
|
class that provides LArReadoutModuleID to integer hash ID mapping. More...
#include <LArRodIdHash.h>
Public Types | |
| using | ID = unsigned int |
| definition of ID type | |
Public Member Functions | |
| void | initialize (int offset, const std::vector< HWIdentifier > &roms) |
| Initialize. | |
| size_t | operator() (ID id) const |
| convert ID to index throws std::out_of_range if not found | |
| size_t | max () const |
| return maximum number of IDs | |
| ID | identifier (size_t i) const |
| reverse conversion | |
| int | offset () const |
| return offset | |
Private Attributes | |
| std::unordered_map< ID, size_t > | m_lookup |
| lookup map | |
| std::vector< ID > | m_int2id |
| reverse lookup | |
| int | m_offset {0} |
class that provides LArReadoutModuleID to integer hash ID mapping.
Definition at line 25 of file LArRodIdHash.h.
| using LArRodIdHash::ID = unsigned int |
definition of ID type
Definition at line 30 of file LArRodIdHash.h.
|
inline |
| void LArRodIdHash::initialize | ( | int | offset, |
| const std::vector< HWIdentifier > & | roms ) |
Initialize.
Here real map is built
Definition at line 15 of file LArRodIdHash.cxx.
|
inline |
|
inline |
| size_t LArRodIdHash::operator() | ( | ID | id | ) | const |
convert ID to index throws std::out_of_range if not found
Definition at line 39 of file LArRodIdHash.cxx.
|
private |
reverse lookup
Definition at line 54 of file LArRodIdHash.h.
|
private |
lookup map
Definition at line 51 of file LArRodIdHash.h.
|
private |
Definition at line 56 of file LArRodIdHash.h.