44 int hash (
const ID&
id)
const;
std::vector< Identifier > ID
#define TYPE(CODE, TYP, IOTYP)
int max() const
return maximum number of IDs
int operator()(const ID &id) const
Convert ID to int.
int hash(const ID &id) const
Convert ID to int (same as the converter, but easier to call from python)
int offset() const
return offset
static std::string typeToString(TYPE type)
Printable representation of a type.
int m_size
total number of IDs
int m_lookup[m_table_size]
ID identifier(int i) const
reverse conversion
std::vector< ID > m_int2id
TYPE type() const
return hash type
static const int m_table_size
lookup table
Helper class for TileCal online (hardware) identifiers.