ATLAS Offline Software
|
class for making an MDT tube hash within one chamber. More...
#include <MdtTubeInChamberHashTable.h>
Public Member Functions | |
MdtTubeInChamberHashTable (const MdtTubeInChamberHashTableType *type, const MdtChamberId &chamberId) | |
constructor More... | |
MdtTubeInChamberHashTable (const MdtTubeInChamberHashTableType *type, const MdtChamberId &chamberId, unsigned int globalHashOffset) | |
constructor More... | |
void | clear () |
Clear the hashtable. More... | |
void | setGlobalHashOffset (unsigned int offset) |
Set global hash offset to offset. More... | |
MdtChamberId | chamberId () const |
Return the chamber identifier. More... | |
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... | |
MdtTubeHash | localHash (const MdtTubeId &id) const |
Return the hash-within-chamber from 0 to numberOfTubes()-1. More... | |
MdtTubeHash | globalHash (const MdtTubeId &id) const |
Return the global tube hash. More... | |
unsigned int | localHashMax () const |
Returns the maximum local hash value plus 1. More... | |
unsigned int | globalHashMin () const |
Return minimum global hash for this chamber. More... | |
unsigned int | globalHashMax () const |
Return maximum global hash plus 1 for this chamber. More... | |
MdtTubeId | tubeIdFromLocalHash (const MdtTubeHash &localHash) const |
Get (full) tube identifier from local hash. More... | |
MdtTubeId | tubeIdFromGlobalHash (const MdtTubeHash &globalHash) const |
Get (full) tube identifier from global hash. More... | |
Private Attributes | |
const MdtTubeInChamberHashTableType * | m_localHashTable |
MdtChamberId | m_chamberId |
unsigned int | m_globalHashOffset |
class for making an MDT tube hash within one chamber.
Definition at line 27 of file MdtTubeInChamberHashTable.h.
|
inline |
|
inline |
|
inline |
Return the chamber identifier.
Definition at line 81 of file MdtTubeInChamberHashTable.h.
void MdtTubeInChamberHashTable::clear | ( | ) |
Clear the hashtable.
|
inline |
Return the global tube hash.
Meaning depends on context.
Definition at line 118 of file MdtTubeInChamberHashTable.h.
|
inline |
Return maximum global hash plus 1 for this chamber.
It is equal to the global hash offset plus localHashMax()
Definition at line 97 of file MdtTubeInChamberHashTable.h.
|
inline |
Return minimum global hash for this chamber.
It is equal to the global hash offset of this chamber.
Definition at line 93 of file MdtTubeInChamberHashTable.h.
|
inline |
Return the hash-within-chamber from 0 to numberOfTubes()-1.
Definition at line 89 of file MdtTubeInChamberHashTable.h.
|
inline |
Returns the maximum local hash value plus 1.
The minimum local hash value is zero.
Definition at line 85 of file MdtTubeInChamberHashTable.h.
|
inline |
Return the number of layers per multilayer.
Definition at line 105 of file MdtTubeInChamberHashTable.h.
|
inline |
Return the number of multilayers in the chamber.
Definition at line 101 of file MdtTubeInChamberHashTable.h.
|
inline |
Return the total number of tubes in the chamber.
Definition at line 113 of file MdtTubeInChamberHashTable.h.
|
inline |
Return the number of tubes per layer.
Definition at line 109 of file MdtTubeInChamberHashTable.h.
void MdtTubeInChamberHashTable::setGlobalHashOffset | ( | unsigned int | offset | ) |
Set global hash offset to offset.
|
inline |
Get (full) tube identifier from global hash.
Definition at line 128 of file MdtTubeInChamberHashTable.h.
|
inline |
Get (full) tube identifier from local hash.
Definition at line 123 of file MdtTubeInChamberHashTable.h.
|
private |
Definition at line 74 of file MdtTubeInChamberHashTable.h.
|
private |
Definition at line 75 of file MdtTubeInChamberHashTable.h.
|
private |
Definition at line 73 of file MdtTubeInChamberHashTable.h.