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;
holds the MDT chamber type information in the form of a MdtChamberTypeInfo data member.
unsigned int globalHashMax() const
Return maximum global hash plus 1 for this chamber.
MdtTubeId tubeIdFromLocalHash(const MdtTubeHash &localHash) const
Get (full) tube identifier from local hash.
MdtTubeId tubeIdFromGlobalHash(const MdtTubeHash &globalHash) const
Get (full) tube identifier from global hash.
unsigned int nTubes() const
Return the number of tubes per layer.
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.
const MdtTubeInChamberHashTableType * m_localHashTable
unsigned int m_globalHashOffset
MdtChamberId chamberId() const
Return the chamber identifier.
unsigned int nLayers() const
Return the number of layers per multilayer.
unsigned int localHashMax() const
Returns the maximum local hash value plus 1.
MdtTubeHash globalHash(const MdtTubeId &id) const
Return the global tube hash.
unsigned int globalHashMin() const
Return minimum global hash for this chamber.
MdtTubeHash localHash(const MdtTubeId &id) const
Return the hash-within-chamber from 0 to numberOfTubes()-1.
void setGlobalHashOffset(unsigned int offset)
Set global hash offset to offset.
void clear()
Clear the hashtable.
MdtTubeInChamberHashTable(const MdtTubeInChamberHashTableType *type, const MdtChamberId &chamberId)
constructor