ATLAS Offline Software
TGCReadoutIndex.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigT1TGC_TGCReadoutIndex_H
6 #define TrigT1TGC_TGCReadoutIndex_H
7 
9 
10 namespace LVL1TGCTrigger {
11 
13 {
14  protected:
18  int m_rNumber;
20 
21  public:
23  TGCReadoutIndex(TGCZDirection iz, int ioct, int imd, int ir, int ilyr);
25 
26  TGCReadoutIndex(const TGCReadoutIndex& right) = default;
27 
29  {
30  if (this != &right) {
34  m_rNumber= right.m_rNumber;
36  }
37  return *this;
38  }
39 
40  int operator==(const TGCReadoutIndex& right) const
41  {
42  return (this==&right);
43  }
44 
45  int operator!=(const TGCReadoutIndex& right) const
46  {
47  return (this!=&right);
48  }
49 
50  // get functions
52  int GetSideNumber() const { if(m_zDirection==kZ_FORWARD) return 0;
53  if(m_zDirection==kZ_BACKWARD) return 1;
54  return -1;}
55  int GetOctantNumber() const { return m_octantNumber; }
56  int GetModuleNumber() const { return m_moduleNumber; }
57  int GetRNumber() const { return m_rNumber; }
58  int GetLayerNumber() const { return m_layerNumber; }
59 
60  // operations
61  void Print() const;
62 
63 };
64 
65 } // end of namespace
66 
67 #endif
LVL1TGCTrigger::TGCReadoutIndex::operator==
int operator==(const TGCReadoutIndex &right) const
Definition: TGCReadoutIndex.h:40
LVL1TGCTrigger::TGCReadoutIndex::GetZDirection
TGCZDirection GetZDirection() const
Definition: TGCReadoutIndex.h:51
LVL1TGCTrigger::TGCReadoutIndex::operator=
TGCReadoutIndex & operator=(const TGCReadoutIndex &right)
Definition: TGCReadoutIndex.h:28
LVL1TGCTrigger::TGCReadoutIndex::m_moduleNumber
int m_moduleNumber
Definition: TGCReadoutIndex.h:17
LVL1TGCTrigger::kZ_BACKWARD
@ kZ_BACKWARD
Definition: TGCNumbering.h:45
LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex
TGCReadoutIndex()
Definition: TGCReadoutIndex.cxx:12
LVL1TGCTrigger::TGCReadoutIndex::m_zDirection
TGCZDirection m_zDirection
Definition: TGCReadoutIndex.h:15
LVL1TGCTrigger::TGCReadoutIndex::GetLayerNumber
int GetLayerNumber() const
Definition: TGCReadoutIndex.h:58
LVL1TGCTrigger::TGCReadoutIndex::GetOctantNumber
int GetOctantNumber() const
Definition: TGCReadoutIndex.h:55
LVL1TGCTrigger::TGCReadoutIndex::GetModuleNumber
int GetModuleNumber() const
Definition: TGCReadoutIndex.h:56
LVL1TGCTrigger::TGCReadoutIndex::m_rNumber
int m_rNumber
Definition: TGCReadoutIndex.h:18
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
TGCNumbering.h
LVL1TGCTrigger::TGCReadoutIndex::GetRNumber
int GetRNumber() const
Definition: TGCReadoutIndex.h:57
LVL1TGCTrigger::TGCReadoutIndex::~TGCReadoutIndex
~TGCReadoutIndex()
Definition: TGCReadoutIndex.h:24
LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex
TGCReadoutIndex(const TGCReadoutIndex &right)=default
ir
int ir
counter of the current depth
Definition: fastadd.cxx:49
LVL1TGCTrigger::TGCReadoutIndex::GetSideNumber
int GetSideNumber() const
Definition: TGCReadoutIndex.h:52
LVL1TGCTrigger::TGCReadoutIndex::m_layerNumber
int m_layerNumber
Definition: TGCReadoutIndex.h:19
LVL1TGCTrigger::TGCReadoutIndex::operator!=
int operator!=(const TGCReadoutIndex &right) const
Definition: TGCReadoutIndex.h:45
LVL1TGCTrigger::TGCReadoutIndex::Print
void Print() const
Definition: TGCReadoutIndex.cxx:28
LVL1TGCTrigger::TGCReadoutIndex
Definition: TGCReadoutIndex.h:13
LVL1TGCTrigger::TGCReadoutIndex::m_octantNumber
int m_octantNumber
Definition: TGCReadoutIndex.h:16
LVL1TGCTrigger::TGCZDirection
TGCZDirection
Definition: TGCNumbering.h:43
LVL1TGCTrigger::kZ_FORWARD
@ kZ_FORWARD
Definition: TGCNumbering.h:44