ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
TrkDriftCircleMath::MdtId Class Reference

#include <MdtId.h>

Collaboration diagram for TrkDriftCircleMath::MdtId:

Public Member Functions

 MdtId ()=default
 
 MdtId (bool isBarrel, int ml, int lay, int tube)
 Parameters: More...
 
bool isBarrel () const
 
int ml () const
 
int lay () const
 
int tube () const
 
int value () const
 
bool operator== (const MdtId &other) const
 
bool operator!= (const MdtId &other) const
 

Static Public Attributes

static constexpr int maxNTubesPerLayer = MdtIdHelper::maxNTubesPerLayer
 the tube number of a tube in a tubeLayer in encoded in the GeoSerialIdentifier (modulo maxNTubesPerLayer) More...
 
static constexpr int multiLayerShift = 10000
 
static constexpr int stationShift = 100000
 

Private Attributes

int m_id {0}
 

Detailed Description

Definition at line 14 of file MdtId.h.

Constructor & Destructor Documentation

◆ MdtId() [1/2]

TrkDriftCircleMath::MdtId::MdtId ( )
default

◆ MdtId() [2/2]

TrkDriftCircleMath::MdtId::MdtId ( bool  isBarrel,
int  ml,
int  lay,
int  tube 
)
inline

Parameters:

  • isBarrel: Boolean flag whether the chamber is built into the barrel or endcap
  • ml: Number of the multi layer in the chamber -lay: Layer number inside the multilayer -tube: Tube number in the layer

Definition at line 27 of file MdtId.h.

Member Function Documentation

◆ isBarrel()

bool TrkDriftCircleMath::MdtId::isBarrel ( ) const
inline

Definition at line 30 of file MdtId.h.

30 { return m_id / stationShift; }

◆ lay()

int TrkDriftCircleMath::MdtId::lay ( ) const
inline

Definition at line 32 of file MdtId.h.

32 { return (m_id % multiLayerShift) / maxNTubesPerLayer; }

◆ ml()

int TrkDriftCircleMath::MdtId::ml ( ) const
inline

Definition at line 31 of file MdtId.h.

31 { return (m_id % stationShift) / multiLayerShift; }

◆ operator!=()

bool TrkDriftCircleMath::MdtId::operator!= ( const MdtId other) const
inline

Definition at line 37 of file MdtId.h.

37 { return !(*this == other); }

◆ operator==()

bool TrkDriftCircleMath::MdtId::operator== ( const MdtId other) const
inline

Definition at line 36 of file MdtId.h.

36 { return m_id == other.m_id; }

◆ tube()

int TrkDriftCircleMath::MdtId::tube ( ) const
inline

Definition at line 33 of file MdtId.h.

33 { return (m_id % multiLayerShift) % maxNTubesPerLayer; }

◆ value()

int TrkDriftCircleMath::MdtId::value ( ) const
inline

Definition at line 34 of file MdtId.h.

34 { return m_id; }

Member Data Documentation

◆ m_id

int TrkDriftCircleMath::MdtId::m_id {0}
private

Definition at line 40 of file MdtId.h.

◆ maxNTubesPerLayer

constexpr int TrkDriftCircleMath::MdtId::maxNTubesPerLayer = MdtIdHelper::maxNTubesPerLayer
staticconstexpr

the tube number of a tube in a tubeLayer in encoded in the GeoSerialIdentifier (modulo maxNTubesPerLayer)

Definition at line 17 of file MdtId.h.

◆ multiLayerShift

constexpr int TrkDriftCircleMath::MdtId::multiLayerShift = 10000
staticconstexpr

Definition at line 18 of file MdtId.h.

◆ stationShift

constexpr int TrkDriftCircleMath::MdtId::stationShift = 100000
staticconstexpr

Definition at line 19 of file MdtId.h.


The documentation for this class was generated from the following file:
TrkDriftCircleMath::MdtId::stationShift
static constexpr int stationShift
Definition: MdtId.h:19
TrkDriftCircleMath::MdtId::lay
int lay() const
Definition: MdtId.h:32
TrkDriftCircleMath::MdtId::maxNTubesPerLayer
static constexpr int maxNTubesPerLayer
the tube number of a tube in a tubeLayer in encoded in the GeoSerialIdentifier (modulo maxNTubesPerLa...
Definition: MdtId.h:17
TrkDriftCircleMath::MdtId::ml
int ml() const
Definition: MdtId.h:31
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TrkDriftCircleMath::MdtId::m_id
int m_id
Definition: MdtId.h:40
TrkDriftCircleMath::MdtId::isBarrel
bool isBarrel() const
Definition: MdtId.h:30
TrkDriftCircleMath::MdtId::tube
int tube() const
Definition: MdtId.h:33
TrkDriftCircleMath::MdtId::multiLayerShift
static constexpr int multiLayerShift
Definition: MdtId.h:18