ATLAS Offline Software
|
holds the MDT chamber type information in the form of a MdtChamberTypeInfo data member. More...
#include <MdtTubeInChamberHashTableType.h>
Public Types | |
typedef IdentifierHashCalc< MdtTubeInChamberIdFields > | BaseClass |
define type BaseClass More... | |
enum | |
N is the number of fields to use from the identifier NMAX is just to make sure we get unsigned int type of enum. More... | |
typedef MdtTubeInChamberIdFields | IdFieldsType |
define the type IdFieldsType More... | |
typedef T::IdentifierType | IdType |
define the type IdType More... | |
typedef T::HashType | HashType |
define the type HashType More... | |
Public Member Functions | |
MdtTubeInChamberHashTableType (const MdtChamberTypeInfo &type) | |
constructor More... | |
bool | operator== (const MdtTubeInChamberHashTableType &) const |
bool | operator== (const MdtChamberTypeInfo &) const |
unsigned int | nMultilayers () const |
Return the number of multilayers in the chamber. More... | |
unsigned int | nLayers () const |
Return the number of layers per multilayer. More... | |
unsigned int | nTubes () const |
Return the number of tubes per layer. More... | |
unsigned int | nTotalTubes () const |
Return the total number of tubes in the chamber. More... | |
void | clear () |
Clear the hashtable. More... | |
unsigned int | size () const |
Number of hashes in the table. More... | |
bool | checkValidity () const |
Check that the table is internally consistent. More... | |
bool | addEntry (const IdType &id) |
Add an identifier to the table. More... | |
void | setFieldLimits (unsigned int fieldIndex, int fieldMin, int fieldMax) |
Set the limits of a specific field. More... | |
HashType | getHash (const IdType &id) const |
Get hash from 0 to size()-1. More... | |
IdType | getIdentifier (const HashType &idHash) const |
Get identifier from hash. More... | |
void | dump (std::ostream &os=std::cout) const |
Dump complete table to output stream. More... | |
std::string | dumpToString () const |
Dump complete table into a string. More... | |
Private Member Functions | |
bool | isInRange (const MdtTubeInChamberIdFields &idFields) const |
void | update () |
Private Attributes | |
MdtChamberTypeInfo | m_chamberType |
int | m_fieldsMin [NFIELDS] |
int | m_fieldsMax [NFIELDS] |
unsigned int | m_fieldsSize [NFIELDS] |
unsigned int | m_fieldsFactor [NFIELDS] |
MdtTubeInChamberIdFields | m_idFields |
holds the MDT chamber type information in the form of a MdtChamberTypeInfo data member.
Is is used by MdtHashTable.
Definition at line 29 of file MdtTubeInChamberHashTableType.h.
define type BaseClass
Definition at line 40 of file MdtTubeInChamberHashTableType.h.
|
inherited |
define the type HashType
Definition at line 43 of file IdentifierHashCalc.h.
|
inherited |
define the type IdFieldsType
Definition at line 39 of file IdentifierHashCalc.h.
|
inherited |
define the type IdType
Definition at line 41 of file IdentifierHashCalc.h.
|
inherited |
N is the number of fields to use from the identifier NMAX is just to make sure we get unsigned int type of enum.
Definition at line 37 of file IdentifierHashCalc.h.
|
inlineexplicit |
|
inherited |
Add an identifier to the table.
|
inherited |
Check that the table is internally consistent.
An empty table will return false.
|
inherited |
Clear the hashtable.
|
inherited |
Dump complete table to output stream.
|
inherited |
Dump complete table into a string.
|
inherited |
Get hash from 0 to size()-1.
Returns invalid hash if id is not in table.
|
inherited |
Get identifier from hash.
Returns invalid identifier if hash is out of range.
|
privateinherited |
|
inline |
Return the number of layers per multilayer.
Definition at line 81 of file MdtTubeInChamberHashTableType.h.
|
inline |
Return the number of multilayers in the chamber.
Definition at line 68 of file MdtTubeInChamberHashTableType.h.
|
inline |
Return the total number of tubes in the chamber.
Definition at line 89 of file MdtTubeInChamberHashTableType.h.
|
inline |
Return the number of tubes per layer.
Definition at line 85 of file MdtTubeInChamberHashTableType.h.
|
inline |
Definition at line 77 of file MdtTubeInChamberHashTableType.h.
|
inline |
Definition at line 73 of file MdtTubeInChamberHashTableType.h.
|
inherited |
Set the limits of a specific field.
|
inherited |
Number of hashes in the table.
|
privateinherited |
|
private |
Definition at line 56 of file MdtTubeInChamberHashTableType.h.
|
privateinherited |
Definition at line 76 of file IdentifierHashCalc.h.
|
privateinherited |
Definition at line 74 of file IdentifierHashCalc.h.
|
privateinherited |
Definition at line 73 of file IdentifierHashCalc.h.
|
privateinherited |
Definition at line 75 of file IdentifierHashCalc.h.
|
mutableprivateinherited |
Definition at line 77 of file IdentifierHashCalc.h.