15#ifndef TRIGT2CALOCOMMON_LARRODIDHASH_H
16#define TRIGT2CALOCOMMON_LARRODIDHASH_H
19#include <unordered_map>
30 using ID =
unsigned int;
class that provides LArReadoutModuleID to integer hash ID mapping.
unsigned int ID
definition of ID type
std::unordered_map< ID, size_t > m_lookup
lookup map
std::vector< ID > m_int2id
reverse lookup
ID identifier(size_t i) const
reverse conversion
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
int offset() const
return offset