ATLAS Offline Software
Loading...
Searching...
No Matches
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:
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)
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.

27 {
29 }
static constexpr int multiLayerShift
Definition MdtId.h:18
static constexpr int maxNTubesPerLayer
the tube number of a tube in a tubeLayer in encoded in the GeoSerialIdentifier (modulo maxNTubesPerLa...
Definition MdtId.h:17
static constexpr int stationShift
Definition MdtId.h:19
bool isBarrel() const
Definition MdtId.h:30

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.

◆ 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.

◆ 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.

40{0};

◆ maxNTubesPerLayer

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

int TrkDriftCircleMath::MdtId::multiLayerShift = 10000
staticconstexpr

Definition at line 18 of file MdtId.h.

◆ stationShift

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: