ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1TGC
TrigT1TGC
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
8
#include "
TrigT1TGC/TGCNumbering.h
"
9
10
namespace
LVL1TGCTrigger
{
11
12
class
TGCReadoutIndex
13
{
14
protected
:
15
TGCZDirection
m_zDirection
;
16
int
m_octantNumber
;
17
int
m_moduleNumber
;
18
int
m_rNumber
;
19
int
m_layerNumber
;
20
21
public
:
22
TGCReadoutIndex
();
23
TGCReadoutIndex
(
TGCZDirection
iz,
int
ioct,
int
imd,
int
ir
,
int
ilyr);
24
~TGCReadoutIndex
() { }
25
26
TGCReadoutIndex
(
const
TGCReadoutIndex
& right) =
default
;
27
28
TGCReadoutIndex
&
operator=
(
const
TGCReadoutIndex
& right)
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
}
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
51
TGCZDirection
GetZDirection
()
const
{
return
m_zDirection
; }
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
TGCNumbering.h
LVL1TGCTrigger::TGCReadoutIndex::GetLayerNumber
int GetLayerNumber() const
Definition
TGCReadoutIndex.h:58
LVL1TGCTrigger::TGCReadoutIndex::m_rNumber
int m_rNumber
Definition
TGCReadoutIndex.h:18
LVL1TGCTrigger::TGCReadoutIndex::~TGCReadoutIndex
~TGCReadoutIndex()
Definition
TGCReadoutIndex.h:24
LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex
TGCReadoutIndex(const TGCReadoutIndex &right)=default
LVL1TGCTrigger::TGCReadoutIndex::GetOctantNumber
int GetOctantNumber() const
Definition
TGCReadoutIndex.h:55
LVL1TGCTrigger::TGCReadoutIndex::m_moduleNumber
int m_moduleNumber
Definition
TGCReadoutIndex.h:17
LVL1TGCTrigger::TGCReadoutIndex::Print
void Print() const
Definition
TGCReadoutIndex.cxx:28
LVL1TGCTrigger::TGCReadoutIndex::m_octantNumber
int m_octantNumber
Definition
TGCReadoutIndex.h:16
LVL1TGCTrigger::TGCReadoutIndex::operator!=
int operator!=(const TGCReadoutIndex &right) const
Definition
TGCReadoutIndex.h:45
LVL1TGCTrigger::TGCReadoutIndex::m_zDirection
TGCZDirection m_zDirection
Definition
TGCReadoutIndex.h:15
LVL1TGCTrigger::TGCReadoutIndex::GetRNumber
int GetRNumber() const
Definition
TGCReadoutIndex.h:57
LVL1TGCTrigger::TGCReadoutIndex::m_layerNumber
int m_layerNumber
Definition
TGCReadoutIndex.h:19
LVL1TGCTrigger::TGCReadoutIndex::GetSideNumber
int GetSideNumber() const
Definition
TGCReadoutIndex.h:52
LVL1TGCTrigger::TGCReadoutIndex::GetZDirection
TGCZDirection GetZDirection() const
Definition
TGCReadoutIndex.h:51
LVL1TGCTrigger::TGCReadoutIndex::operator==
int operator==(const TGCReadoutIndex &right) const
Definition
TGCReadoutIndex.h:40
LVL1TGCTrigger::TGCReadoutIndex::operator=
TGCReadoutIndex & operator=(const TGCReadoutIndex &right)
Definition
TGCReadoutIndex.h:28
LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex
TGCReadoutIndex()
Definition
TGCReadoutIndex.cxx:12
LVL1TGCTrigger::TGCReadoutIndex::GetModuleNumber
int GetModuleNumber() const
Definition
TGCReadoutIndex.h:56
ir
int ir
counter of the current depth
Definition
fastadd.cxx:49
LVL1TGCTrigger
Definition
LVL1TGCTrigger.cxx:48
LVL1TGCTrigger::TGCZDirection
TGCZDirection
Definition
TGCNumbering.h:43
LVL1TGCTrigger::kZ_FORWARD
@ kZ_FORWARD
Definition
TGCNumbering.h:44
LVL1TGCTrigger::kZ_BACKWARD
@ kZ_BACKWARD
Definition
TGCNumbering.h:45
Generated on
for ATLAS Offline Software by
1.17.0