ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace LVL1TGCTrigger {
11
13{
14 protected:
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
TGCReadoutIndex(const TGCReadoutIndex &right)=default
int operator!=(const TGCReadoutIndex &right) const
TGCZDirection GetZDirection() const
int operator==(const TGCReadoutIndex &right) const
TGCReadoutIndex & operator=(const TGCReadoutIndex &right)
int ir
counter of the current depth
Definition fastadd.cxx:49