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

#include <ClusterId.h>

Collaboration diagram for TrkDriftCircleMath::ClusterId:

Public Member Functions

 ClusterId ()=default
 
 ClusterId (int stName, int eta, int phi, int barrel, int measuresPhi)
 
int id () const
 
int stName () const
 
int eta () const
 
int phi () const
 
int isTgc () const
 
int measuresPhi () const
 

Static Public Attributes

static constexpr int stationOffSet = 1000000
 
static constexpr int etaOffSet = 10000
 
static constexpr int phiOffSet = 100
 

Private Attributes

int m_id {0}
 

Detailed Description

Definition at line 12 of file ClusterId.h.

Constructor & Destructor Documentation

◆ ClusterId() [1/2]

TrkDriftCircleMath::ClusterId::ClusterId ( )
default

◆ ClusterId() [2/2]

TrkDriftCircleMath::ClusterId::ClusterId ( int  stName,
int  eta,
int  phi,
int  barrel,
int  measuresPhi 
)
inline

Definition at line 18 of file ClusterId.h.

18  {
20  }

Member Function Documentation

◆ eta()

int TrkDriftCircleMath::ClusterId::eta ( ) const
inline

Definition at line 24 of file ClusterId.h.

24 { return (m_id % stationOffSet) / etaOffSet; }

◆ id()

int TrkDriftCircleMath::ClusterId::id ( ) const
inline

Definition at line 22 of file ClusterId.h.

22 { return m_id; }

◆ isTgc()

int TrkDriftCircleMath::ClusterId::isTgc ( ) const
inline

Definition at line 26 of file ClusterId.h.

26 { return (m_id % phiOffSet) / 10; }

◆ measuresPhi()

int TrkDriftCircleMath::ClusterId::measuresPhi ( ) const
inline

Definition at line 27 of file ClusterId.h.

27 { return m_id % 10; }

◆ phi()

int TrkDriftCircleMath::ClusterId::phi ( ) const
inline

Definition at line 25 of file ClusterId.h.

25 { return (m_id % etaOffSet) / phiOffSet; }

◆ stName()

int TrkDriftCircleMath::ClusterId::stName ( ) const
inline

Definition at line 23 of file ClusterId.h.

23 { return m_id / stationOffSet; }

Member Data Documentation

◆ etaOffSet

constexpr int TrkDriftCircleMath::ClusterId::etaOffSet = 10000
staticconstexpr

Definition at line 15 of file ClusterId.h.

◆ m_id

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

Definition at line 30 of file ClusterId.h.

◆ phiOffSet

constexpr int TrkDriftCircleMath::ClusterId::phiOffSet = 100
staticconstexpr

Definition at line 16 of file ClusterId.h.

◆ stationOffSet

constexpr int TrkDriftCircleMath::ClusterId::stationOffSet = 1000000
staticconstexpr

Definition at line 14 of file ClusterId.h.


The documentation for this class was generated from the following file:
ReadBchFromCool.barrel
barrel
Definition: ReadBchFromCool.py:405
TrkDriftCircleMath::ClusterId::etaOffSet
static constexpr int etaOffSet
Definition: ClusterId.h:15
TrkDriftCircleMath::ClusterId::eta
int eta() const
Definition: ClusterId.h:24
TrkDriftCircleMath::ClusterId::measuresPhi
int measuresPhi() const
Definition: ClusterId.h:27
TrkDriftCircleMath::ClusterId::stationOffSet
static constexpr int stationOffSet
Definition: ClusterId.h:14
TrkDriftCircleMath::ClusterId::phi
int phi() const
Definition: ClusterId.h:25
TrkDriftCircleMath::ClusterId::phiOffSet
static constexpr int phiOffSet
Definition: ClusterId.h:16
TrkDriftCircleMath::ClusterId::stName
int stName() const
Definition: ClusterId.h:23
TrkDriftCircleMath::ClusterId::m_id
int m_id
Definition: ClusterId.h:30