ATLAS Offline Software
TGCModuleId.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace MuonTGC_Cabling {
8 
9 bool TGCModuleId::operator ==(const TGCModuleId& moduleId) const
10 {
11  if((this->getModuleIdType()==moduleId.getModuleIdType())&&
12  (this->getSideType() ==moduleId.getSideType()) &&
13  (this->getRegionType() ==moduleId.getRegionType()) &&
14  (this->getSignalType() ==moduleId.getSignalType()) &&
15  (this->getModuleType() ==moduleId.getModuleType()) &&
16  (this->getSector() ==moduleId.getSector()) &&
17  (this->getOctant() ==moduleId.getOctant()) &&
18  (this->getId() ==moduleId.getId()) )
19  return true;
20  return false;
21 }
22 
23 void TGCModuleId::setSector(int v_sector) {
24  m_sector = v_sector;
25  if(m_region==Endcap) {
26  if(m_multiplet==Inner) {
29  } else {
32  }
33  } else if(m_region==Forward) {
36  }
37 }
38 
39 } //end of namespace
MuonTGC_Cabling::TGCModuleId::getModuleIdType
ModuleIdType getModuleIdType(void) const
Definition: TGCModuleId.h:30
MuonTGC_Cabling::TGCId::getSideType
SideType getSideType(void) const
Definition: TGCId.h:122
MuonTGC_Cabling::TGCId::getSignalType
SignalType getSignalType(void) const
Definition: TGCId.h:124
MuonTGC_Cabling::TGCId::getRegionType
RegionType getRegionType(void) const
Definition: TGCId.h:126
MuonTGC_Cabling::TGCId::N_RODS
static constexpr int N_RODS
Definition: TGCId.h:43
MuonTGC_Cabling::TGCId::getModuleType
ModuleType getModuleType(void) const
Definition: TGCId.h:123
MuonTGC_Cabling::TGCId::NUM_INNER_SECTOR
static constexpr int NUM_INNER_SECTOR
Definition: TGCId.h:42
TGCModuleId.h
MuonTGC_Cabling::TGCId::NUM_FORWARD_SECTOR
static constexpr int NUM_FORWARD_SECTOR
Definition: TGCId.h:41
MuonTGC_Cabling::TGCModuleId::operator==
virtual bool operator==(const TGCModuleId &moduleId) const
Definition: TGCModuleId.cxx:9
MuonTGC_Cabling::TGCId::NUM_OCTANT
static constexpr int NUM_OCTANT
Definition: TGCId.h:39
MuonTGC_Cabling::TGCId::m_region
RegionType m_region
Definition: TGCId.h:109
MuonTGC_Cabling::TGCId::m_sector
int m_sector
Definition: TGCId.h:113
MuonTGC_Cabling::TGCId::getOctant
int getOctant() const
Definition: TGCId.h:129
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCId::getId
int getId() const
Definition: TGCId.h:132
MuonTGC_Cabling::TGCId::Inner
@ Inner
Definition: TGCId.h:51
MuonTGC_Cabling::TGCId::Endcap
@ Endcap
Definition: TGCId.h:53
MuonTGC_Cabling::TGCId::m_multiplet
MultipletType m_multiplet
Definition: TGCId.h:108
MuonTGC_Cabling::TGCModuleId::setSector
virtual void setSector(int v_sector)
Definition: TGCModuleId.cxx:23
MuonTGC_Cabling::TGCId::getSector
virtual int getSector() const
Definition: TGCId.h:130
MuonTGC_Cabling::TGCModuleId::m_sectorRO
int m_sectorRO
Definition: TGCModuleId.h:42
MuonTGC_Cabling::TGCId::NUM_ENDCAP_SECTOR
static constexpr int NUM_ENDCAP_SECTOR
Definition: TGCId.h:40
MuonTGC_Cabling::TGCModuleId
Definition: TGCModuleId.h:13
MuonTGC_Cabling::TGCId::m_octant
int m_octant
Definition: TGCId.h:112
MuonTGC_Cabling::TGCId::Forward
@ Forward
Definition: TGCId.h:53