ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCModuleId.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonTGC_Cabling/TGCModuleId.h
"
6
7
namespace
MuonTGC_Cabling
{
8
9
bool
TGCModuleId::operator==
(
const
TGCModuleId
& moduleId)
const
{
10
if
((this->
getModuleIdType
() == moduleId.
getModuleIdType
()) &&
11
(this->getSideType() == moduleId.
getSideType
()) &&
12
(this->getRegionType() == moduleId.
getRegionType
()) &&
13
(this->getSignalType() == moduleId.
getSignalType
()) &&
14
(this->getModuleType() == moduleId.
getModuleType
()) &&
15
(this->getSector() == moduleId.
getSector
()) &&
16
(this->getOctant() == moduleId.
getOctant
()) &&
17
(this->getId() == moduleId.
getId
())) {
18
return
true
;
19
}
20
return
false
;
21
}
22
23
void
TGCModuleId::setSector
(
int
v_sector) {
24
m_sector
= v_sector;
25
if
(
m_region
==
RegionType::Endcap
) {
26
if
(
m_module
==
ModuleType::WI
||
m_module
==
ModuleType::SI
) {
27
m_octant
=
m_sector
/ (
NUM_INNER_SECTOR
/
NUM_OCTANT
);
28
m_sectorRO
=
m_sector
/ (
NUM_INNER_SECTOR
/
N_RODS
);
29
}
else
{
30
m_octant
=
m_sector
/ (
NUM_ENDCAP_SECTOR
/
NUM_OCTANT
);
31
m_sectorRO
=
m_sector
/ (
NUM_ENDCAP_SECTOR
/
N_RODS
);
32
}
33
}
else
if
(
m_region
==
RegionType::Forward
) {
34
m_octant
=
m_sector
/ (
NUM_FORWARD_SECTOR
/
NUM_OCTANT
);
35
m_sectorRO
=
m_sector
/ (
NUM_FORWARD_SECTOR
/
N_RODS
);
36
}
37
}
38
39
}
// namespace MuonTGC_Cabling
TGCModuleId.h
MuonTGC_Cabling::TGCId::getOctant
int getOctant() const
Definition
TGCId.h:141
MuonTGC_Cabling::TGCId::m_module
ModuleType m_module
Definition
TGCId.h:109
MuonTGC_Cabling::TGCId::m_region
RegionType m_region
Definition
TGCId.h:111
MuonTGC_Cabling::TGCId::NUM_INNER_SECTOR
static constexpr int NUM_INNER_SECTOR
Definition
TGCId.h:45
MuonTGC_Cabling::TGCId::getModuleType
ModuleType getModuleType() const
Definition
TGCId.h:131
MuonTGC_Cabling::TGCId::ModuleType::WI
@ WI
Definition
TGCId.h:53
MuonTGC_Cabling::TGCId::ModuleType::SI
@ SI
Definition
TGCId.h:53
MuonTGC_Cabling::TGCId::NUM_ENDCAP_SECTOR
static constexpr int NUM_ENDCAP_SECTOR
Definition
TGCId.h:43
MuonTGC_Cabling::TGCId::m_sector
int m_sector
Definition
TGCId.h:114
MuonTGC_Cabling::TGCId::getRegionType
RegionType getRegionType() const
Definition
TGCId.h:137
MuonTGC_Cabling::TGCId::m_octant
int m_octant
Definition
TGCId.h:113
MuonTGC_Cabling::TGCId::N_RODS
static constexpr int N_RODS
Definition
TGCId.h:46
MuonTGC_Cabling::TGCId::getSector
virtual int getSector() const
Definition
TGCId.h:144
MuonTGC_Cabling::TGCId::RegionType::Forward
@ Forward
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::RegionType::Endcap
@ Endcap
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::getSideType
SideType getSideType() const
Definition
TGCId.h:125
MuonTGC_Cabling::TGCId::NUM_OCTANT
static constexpr int NUM_OCTANT
Definition
TGCId.h:42
MuonTGC_Cabling::TGCId::getSignalType
SignalType getSignalType() const
Definition
TGCId.h:134
MuonTGC_Cabling::TGCId::getId
int getId() const
Definition
TGCId.h:150
MuonTGC_Cabling::TGCId::NUM_FORWARD_SECTOR
static constexpr int NUM_FORWARD_SECTOR
Definition
TGCId.h:44
MuonTGC_Cabling::TGCModuleId::getModuleIdType
ModuleIdType getModuleIdType() const
Definition
TGCModuleId.h:32
MuonTGC_Cabling::TGCModuleId::setSector
virtual void setSector(int v_sector)
Definition
TGCModuleId.cxx:23
MuonTGC_Cabling::TGCModuleId::m_sectorRO
int m_sectorRO
Definition
TGCModuleId.h:44
MuonTGC_Cabling::TGCModuleId::TGCModuleId
TGCModuleId(ModuleIdType type=NoModuleIdType)
Definition
TGCModuleId.h:27
MuonTGC_Cabling::TGCModuleId::operator==
virtual bool operator==(const TGCModuleId &moduleId) const
Definition
TGCModuleId.cxx:9
MuonTGC_Cabling
Definition
TGCCable.h:12
Generated on
for ATLAS Offline Software by
1.17.0