|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef MUONCALIBIDENTIFIERS_MDTTUBEINCHAMBERHASHTABLE_H
17 # define MUONCALIBIDENTIFIERS_MDTTUBEINCHAMBERHASHTABLE_H
23 #include "MuonCalibIdentifier/MdtFixedIds.h"
34 const MdtChamberId&
chamberId,
unsigned int globalHashOffset );
46 unsigned int nTubes()
const;
50 MdtTubeHash
localHash(
const MdtTubeId&
id )
const;
52 MdtTubeHash
globalHash(
const MdtTubeId&
id )
const;
73 : m_localHashTable(
type), m_chamberId(
id), m_globalHashOffset(0)
78 : m_localHashTable(
type), m_chamberId(
id), m_globalHashOffset(
offset)
133 #endif // MUONCALIBIDENTIFIERS_MDTTUBEINCHAMBERHASHTABLE_H
HashType getHash(const IdType &id) const
Get hash from 0 to size()-1.
unsigned int globalHashMax() const
Return maximum global hash plus 1 for this chamber.
unsigned int nTubes() const
Return the number of tubes per layer.
unsigned int m_globalHashOffset
MdtTubeId tubeIdFromLocalHash(const MdtTubeHash &localHash) const
Get (full) tube identifier from local hash.
MdtTubeInChamberHashTable(const MdtTubeInChamberHashTableType *type, const MdtChamberId &chamberId)
constructor
const MdtTubeInChamberHashTableType * m_localHashTable
unsigned int nMultilayers() const
Return the number of multilayers in the chamber.
unsigned int nTotalTubes() const
Return the total number of tubes in the chamber.
MdtChamberId chamberId() const
Return the chamber identifier.
unsigned int nLayers() const
Return the number of layers per multilayer.
unsigned int nTubes() const
Return the number of tubes per layer.
MdtTubeHash globalHash(const MdtTubeId &id) const
Return the global tube hash.
void setGlobalHashOffset(unsigned int offset)
Set global hash offset to offset.
class for making an MDT tube hash within one chamber.
holds the MDT chamber type information in the form of a MdtChamberTypeInfo data member.
unsigned int nTotalTubes() const
Return the total number of tubes in the chamber.
unsigned int globalHashMin() const
Return minimum global hash for this chamber.
unsigned int localHashMax() const
Returns the maximum local hash value plus 1.
unsigned int nLayers() const
Return the number of layers per multilayer.
MdtTubeHash localHash(const MdtTubeId &id) const
Return the hash-within-chamber from 0 to numberOfTubes()-1.
unsigned int nMultilayers() const
Return the number of multilayers in the chamber.
MdtTubeId tubeIdFromGlobalHash(const MdtTubeHash &globalHash) const
Get (full) tube identifier from global hash.
unsigned int size() const
Number of hashes in the table.
IdType getIdentifier(const HashType &idHash) const
Get identifier from hash.
void clear()
Clear the hashtable.