ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
LVL1TGCTrigger::TGCReadoutIndex Class Reference

#include <TGCReadoutIndex.h>

Collaboration diagram for LVL1TGCTrigger::TGCReadoutIndex:

Public Member Functions

 TGCReadoutIndex ()
 
 TGCReadoutIndex (TGCZDirection iz, int ioct, int imd, int ir, int ilyr)
 
 ~TGCReadoutIndex ()
 
 TGCReadoutIndex (const TGCReadoutIndex &right)=default
 
TGCReadoutIndexoperator= (const TGCReadoutIndex &right)
 
int operator== (const TGCReadoutIndex &right) const
 
int operator!= (const TGCReadoutIndex &right) const
 
TGCZDirection GetZDirection () const
 
int GetSideNumber () const
 
int GetOctantNumber () const
 
int GetModuleNumber () const
 
int GetRNumber () const
 
int GetLayerNumber () const
 
void Print () const
 

Protected Attributes

TGCZDirection m_zDirection
 
int m_octantNumber
 
int m_moduleNumber
 
int m_rNumber
 
int m_layerNumber
 

Detailed Description

Definition at line 12 of file TGCReadoutIndex.h.

Constructor & Destructor Documentation

◆ TGCReadoutIndex() [1/3]

LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex ( )

Definition at line 12 of file TGCReadoutIndex.cxx.

15 {
16 }

◆ TGCReadoutIndex() [2/3]

LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex ( TGCZDirection  iz,
int  ioct,
int  imd,
int  ir,
int  ilyr 
)

Definition at line 19 of file TGCReadoutIndex.cxx.

21  : m_zDirection(iz), m_octantNumber(ioct),
23 {
24 }

◆ ~TGCReadoutIndex()

LVL1TGCTrigger::TGCReadoutIndex::~TGCReadoutIndex ( )
inline

Definition at line 24 of file TGCReadoutIndex.h.

24 { }

◆ TGCReadoutIndex() [3/3]

LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex ( const TGCReadoutIndex right)
default

Member Function Documentation

◆ GetLayerNumber()

int LVL1TGCTrigger::TGCReadoutIndex::GetLayerNumber ( ) const
inline

Definition at line 58 of file TGCReadoutIndex.h.

58 { return m_layerNumber; }

◆ GetModuleNumber()

int LVL1TGCTrigger::TGCReadoutIndex::GetModuleNumber ( ) const
inline

Definition at line 56 of file TGCReadoutIndex.h.

56 { return m_moduleNumber; }

◆ GetOctantNumber()

int LVL1TGCTrigger::TGCReadoutIndex::GetOctantNumber ( ) const
inline

Definition at line 55 of file TGCReadoutIndex.h.

55 { return m_octantNumber; }

◆ GetRNumber()

int LVL1TGCTrigger::TGCReadoutIndex::GetRNumber ( ) const
inline

Definition at line 57 of file TGCReadoutIndex.h.

57 { return m_rNumber; }

◆ GetSideNumber()

int LVL1TGCTrigger::TGCReadoutIndex::GetSideNumber ( ) const
inline

Definition at line 52 of file TGCReadoutIndex.h.

52  { if(m_zDirection==kZ_FORWARD) return 0;
53  if(m_zDirection==kZ_BACKWARD) return 1;
54  return -1;}

◆ GetZDirection()

TGCZDirection LVL1TGCTrigger::TGCReadoutIndex::GetZDirection ( ) const
inline

Definition at line 51 of file TGCReadoutIndex.h.

51 { return m_zDirection; }

◆ operator!=()

Definition at line 45 of file TGCReadoutIndex.h.

46  {
47  return (this!=&right);
48  }

◆ operator=()

TGCReadoutIndex& LVL1TGCTrigger::TGCReadoutIndex::operator= ( const TGCReadoutIndex right)
inline

Definition at line 28 of file TGCReadoutIndex.h.

29  {
30  if (this != &right) {
31  m_zDirection= right.m_zDirection;
32  m_octantNumber= right.m_octantNumber;
33  m_moduleNumber= right.m_moduleNumber;
34  m_rNumber= right.m_rNumber;
35  m_layerNumber= right.m_layerNumber;
36  }
37  return *this;
38  }

◆ operator==()

int LVL1TGCTrigger::TGCReadoutIndex::operator== ( const TGCReadoutIndex right) const
inline

Definition at line 40 of file TGCReadoutIndex.h.

41  {
42  return (this==&right);
43  }

◆ Print()

void LVL1TGCTrigger::TGCReadoutIndex::Print ( ) const

Definition at line 28 of file TGCReadoutIndex.cxx.

29 {
30  static const char gZDirName[kTotalNumTGCZDirection] = {'F', 'B'};
31  std::cout << " " << gZDirName[m_zDirection] << "-"
32  << std::setw(1) << m_octantNumber << "-"
33  << std::setw(2) << m_moduleNumber << "-"
34  << m_rNumber << "-"
35  << m_layerNumber;
36 }

Member Data Documentation

◆ m_layerNumber

int LVL1TGCTrigger::TGCReadoutIndex::m_layerNumber
protected

Definition at line 19 of file TGCReadoutIndex.h.

◆ m_moduleNumber

int LVL1TGCTrigger::TGCReadoutIndex::m_moduleNumber
protected

Definition at line 17 of file TGCReadoutIndex.h.

◆ m_octantNumber

int LVL1TGCTrigger::TGCReadoutIndex::m_octantNumber
protected

Definition at line 16 of file TGCReadoutIndex.h.

◆ m_rNumber

int LVL1TGCTrigger::TGCReadoutIndex::m_rNumber
protected

Definition at line 18 of file TGCReadoutIndex.h.

◆ m_zDirection

TGCZDirection LVL1TGCTrigger::TGCReadoutIndex::m_zDirection
protected

Definition at line 15 of file TGCReadoutIndex.h.


The documentation for this class was generated from the following files:
LVL1TGCTrigger::TGCReadoutIndex::m_moduleNumber
int m_moduleNumber
Definition: TGCReadoutIndex.h:17
LVL1TGCTrigger::kZ_BACKWARD
@ kZ_BACKWARD
Definition: TGCNumbering.h:45
LVL1TGCTrigger::TGCReadoutIndex::m_zDirection
TGCZDirection m_zDirection
Definition: TGCReadoutIndex.h:15
LVL1TGCTrigger::TGCReadoutIndex::m_rNumber
int m_rNumber
Definition: TGCReadoutIndex.h:18
ir
int ir
counter of the current depth
Definition: fastadd.cxx:49
LVL1TGCTrigger::TGCReadoutIndex::m_layerNumber
int m_layerNumber
Definition: TGCReadoutIndex.h:19
LVL1TGCTrigger::kTotalNumTGCZDirection
@ kTotalNumTGCZDirection
Definition: TGCNumbering.h:46
LVL1TGCTrigger::TGCReadoutIndex::m_octantNumber
int m_octantNumber
Definition: TGCReadoutIndex.h:16
LVL1TGCTrigger::kZ_FORWARD
@ kZ_FORWARD
Definition: TGCNumbering.h:44