ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTGC_Cabling::TGCModuleHPB Class Reference

#include <TGCModuleHPB.h>

Inheritance diagram for MuonTGC_Cabling::TGCModuleHPB:
Collaboration diagram for MuonTGC_Cabling::TGCModuleHPB:

Public Types

enum  ModuleIdType {
  NoModuleIdType = -1 , PP , SLB , HPB ,
  SL , SSW , ROD , SROD ,
  MaxModuleIdType
}
enum  { NumberOfSReadoutSector = 3 }
enum class  IdType { NoIdType , Channel , Module }
enum  SideType { NoSideType = -1 , Aside , Cside , MaxSideType }
enum class  StationType {
  NoStationType , M1 , M2 , M3 ,
  M4
}
enum  ModuleType {
  NoModuleType = -1 , WD , SD , WT ,
  ST , WI , SI , MaxModuleType
}
enum  SignalType { NoSignalType = -1 , Wire , Strip , MaxSignalType }
enum  MultipletType {
  NoMultipletType = -1 , Doublet , Triplet , Inner ,
  MaxChamberType
}
enum  RegionType { NoRegionType = -1 , Endcap , Forward , MaxRegionType }

Public Member Functions

 TGCModuleHPB (TGCId::SideType side, TGCId::SignalType signal, TGCId::RegionType region, int sector, int id)
virtual ~TGCModuleHPB ()=default
virtual bool isValid () const
ModuleIdType getModuleIdType () const
virtual bool operator== (const TGCModuleId &moduleId) const
int getReadoutSector () const
void setReadoutSector (int sector)
virtual void setSector (int v_sector)
IdType getIdType () const
SideType getSideType () const
StationType getStation () const
ModuleType getModuleType () const
SignalType getSignalType () const
MultipletType getMultipletType () const
RegionType getRegionType () const
int getSectorInReadout () const
virtual int getSectorInOctant () const
virtual int getSectorModule () const
int getOctant () const
virtual int getSector () const
int getChamber () const
int getId () const
int getBlock () const
bool isAside () const
bool isCside () const
bool isStrip () const
bool isWire () const
bool isTriplet () const
bool isDoublet () const
bool isInner () const
bool isForward () const
bool isEndcap () const
void setSideType (SideType side)
virtual void setStation (StationType vstation)
void setModuleType (ModuleType module)
void setSignalType (SignalType signal)
void setMultipletType (MultipletType multiplet)
void setRegionType (RegionType region)
virtual void setOctant (int voctant)
virtual void setChamber (int chamber)
void setId (int id)

Static Public Attributes

static constexpr int NUM_STATIONS = 4
 in ChannelId
static constexpr int NUM_LAYERS
static constexpr int NUM_OCTANT = 8
static constexpr int NUM_ENDCAP_SECTOR = 48
static constexpr int NUM_FORWARD_SECTOR = 24
static constexpr int NUM_INNER_SECTOR = 24
static constexpr int N_RODS = 12

Protected Member Functions

void setIdType (IdType idtype)
void setSectorModule (int sectorModule)

Protected Attributes

SideType m_side {NoSideType}
StationType m_station {StationType::NoStationType}
ModuleType m_module {NoModuleType}
SignalType m_signal {NoSignalType}
MultipletType m_multiplet {NoMultipletType}
RegionType m_region {NoRegionType}
int m_octant {-1}
int m_sector {-1}
int m_chamber {-1}
int m_id {-1}

Private Attributes

ModuleIdType m_type {ModuleIdType::MaxModuleIdType}
int m_sectorRO {-1}
IdType m_idType {IdType::NoIdType}

Detailed Description

Definition at line 12 of file TGCModuleHPB.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NumberOfSReadoutSector 

Definition at line 30 of file TGCModuleId.h.

◆ IdType

enum class MuonTGC_Cabling::TGCId::IdType
stronginherited
Enumerator
NoIdType 
Channel 
Module 

Definition at line 12 of file TGCId.h.

12{ NoIdType, Channel, Module };
Identifier32::value_type Channel

◆ ModuleIdType

◆ ModuleType

Enumerator
NoModuleType 
WD 
SD 
WT 
ST 
WI 
SI 
MaxModuleType 

Definition at line 48 of file TGCId.h.

◆ MultipletType

Enumerator
NoMultipletType 
Doublet 
Triplet 
Inner 
MaxChamberType 

Definition at line 59 of file TGCId.h.

◆ RegionType

Enumerator
NoRegionType 
Endcap 
Forward 
MaxRegionType 

Definition at line 66 of file TGCId.h.

◆ SideType

Enumerator
NoSideType 
Aside 
Cside 
MaxSideType 

Definition at line 46 of file TGCId.h.

◆ SignalType

Enumerator
NoSignalType 
Wire 
Strip 
MaxSignalType 

Definition at line 58 of file TGCId.h.

◆ StationType

enum class MuonTGC_Cabling::TGCId::StationType
stronginherited
Enumerator
NoStationType 
M1 
M2 
M3 
M4 

Definition at line 47 of file TGCId.h.

47{ NoStationType, M1, M2, M3, M4 };

Constructor & Destructor Documentation

◆ TGCModuleHPB()

MuonTGC_Cabling::TGCModuleHPB::TGCModuleHPB ( TGCId::SideType side,
TGCId::SignalType signal,
TGCId::RegionType region,
int sector,
int id )

Definition at line 10 of file TGCModuleHPB.cxx.

13 setSideType(side);
14 setSignalType(signal);
15 setRegionType(region);
16 setSector(sector);
17 setId(id);
18}
void setSideType(SideType side)
Definition TGCId.h:195
void setRegionType(RegionType region)
Definition TGCId.h:199
void setId(int id)
Definition TGCId.h:207
void setSignalType(SignalType signal)
Definition TGCId.cxx:67
virtual void setSector(int v_sector)
TGCModuleId(ModuleIdType type=NoModuleIdType)
Definition TGCModuleId.h:27

◆ ~TGCModuleHPB()

virtual MuonTGC_Cabling::TGCModuleHPB::~TGCModuleHPB ( )
virtualdefault

Member Function Documentation

◆ getBlock()

int MuonTGC_Cabling::TGCId::getBlock ( ) const
inherited

◆ getChamber()

int MuonTGC_Cabling::TGCId::getChamber ( ) const
inlineinherited

Definition at line 160 of file TGCId.h.

160 {
161 return m_chamber;
162}

◆ getId()

int MuonTGC_Cabling::TGCId::getId ( ) const
inlineinherited

Definition at line 163 of file TGCId.h.

163 {
164 return m_id;
165}

◆ getIdType()

TGCId::IdType MuonTGC_Cabling::TGCId::getIdType ( ) const
inlineinherited

Definition at line 132 of file TGCId.h.

132 {
133 return m_idType;
134}

◆ getModuleIdType()

ModuleIdType MuonTGC_Cabling::TGCModuleId::getModuleIdType ( ) const
inlineinherited

Definition at line 32 of file TGCModuleId.h.

32{ return m_type; }

◆ getModuleType()

TGCId::ModuleType MuonTGC_Cabling::TGCId::getModuleType ( ) const
inlineinherited

Definition at line 141 of file TGCId.h.

141 {
142 return m_module;
143}
ModuleType m_module
Definition TGCId.h:118

◆ getMultipletType()

TGCId::MultipletType MuonTGC_Cabling::TGCId::getMultipletType ( ) const
inlineinherited

Definition at line 147 of file TGCId.h.

147 {
148 return m_multiplet;
149}
MultipletType m_multiplet
Definition TGCId.h:120

◆ getOctant()

int MuonTGC_Cabling::TGCId::getOctant ( ) const
inlineinherited

Definition at line 154 of file TGCId.h.

154 {
155 return m_octant;
156}

◆ getReadoutSector()

int MuonTGC_Cabling::TGCModuleId::getReadoutSector ( ) const
inlineinherited

Definition at line 38 of file TGCModuleId.h.

◆ getRegionType()

TGCId::RegionType MuonTGC_Cabling::TGCId::getRegionType ( ) const
inlineinherited

Definition at line 150 of file TGCId.h.

150 {
151 return m_region;
152}
RegionType m_region
Definition TGCId.h:121

◆ getSector()

int MuonTGC_Cabling::TGCId::getSector ( ) const
inlinevirtualinherited

Reimplemented in MuonTGC_Cabling::TGCChannelASDIn.

Definition at line 157 of file TGCId.h.

157 {
158 return m_sector;
159}

◆ getSectorInOctant()

int MuonTGC_Cabling::TGCId::getSectorInOctant ( ) const
virtualinherited

Definition at line 13 of file TGCId.cxx.

13 {
14 if (isInner()) {
16 }
17 if (isEndcap()) {
19 }
20 if (isForward()) {
22 }
23 return -1;
24}
bool isEndcap() const
Definition TGCId.h:191
bool isForward() const
Definition TGCId.h:188
static constexpr int NUM_INNER_SECTOR
Definition TGCId.h:43
static constexpr int NUM_ENDCAP_SECTOR
Definition TGCId.h:41
virtual int getSector() const
Definition TGCId.h:157
bool isInner() const
Definition TGCId.h:185
static constexpr int NUM_OCTANT
Definition TGCId.h:40
static constexpr int NUM_FORWARD_SECTOR
Definition TGCId.h:42

◆ getSectorInReadout()

int MuonTGC_Cabling::TGCId::getSectorInReadout ( ) const
inherited

Definition at line 26 of file TGCId.cxx.

26 {
27 if (isInner()) {
28 return getSector() % (NUM_INNER_SECTOR / N_RODS);
29 }
30 if (isEndcap()) {
31 return getSector() % (NUM_ENDCAP_SECTOR / N_RODS);
32 }
33 if (isForward()) {
34 return getSector() % (NUM_FORWARD_SECTOR / N_RODS);
35 }
36 return -1;
37}
static constexpr int N_RODS
Definition TGCId.h:44

◆ getSectorModule()

int MuonTGC_Cabling::TGCId::getSectorModule ( ) const
virtualinherited

Definition at line 144 of file TGCId.cxx.

144 {
145 if (m_sector == -1) {
146 return -1;
147 }
148
149 static const int moduleEndcap[6] = {0, 1, 3, 4, 6, 7};
150 static const int moduleForward[3] = {2, 5, 8};
151 static const int moduleEI[3] = {9, 10, 11};
152 static const int moduleFI[3] = {12, 13, 14};
153
154 if (isEndcap()) {
155 if (isInner()) {
156 return moduleEI[getSectorInOctant()];
157 }
158 return moduleEndcap[getSectorInOctant()];
159 }
160 if (isForward()) {
161 if (isInner()) {
162 return moduleFI[getSectorInOctant()];
163 }
164 return moduleForward[getSectorInOctant()];
165 }
166 return -1;
167}
virtual int getSectorInOctant() const
Definition TGCId.cxx:13

◆ getSideType()

TGCId::SideType MuonTGC_Cabling::TGCId::getSideType ( ) const
inlineinherited

Definition at line 135 of file TGCId.h.

135 {
136 return m_side;
137}

◆ getSignalType()

TGCId::SignalType MuonTGC_Cabling::TGCId::getSignalType ( ) const
inlineinherited

Definition at line 144 of file TGCId.h.

144 {
145 return m_signal;
146}
SignalType m_signal
Definition TGCId.h:119

◆ getStation()

TGCId::StationType MuonTGC_Cabling::TGCId::getStation ( ) const
inlineinherited

Definition at line 138 of file TGCId.h.

138 {
139 return m_station;
140}
StationType m_station
Definition TGCId.h:117

◆ isAside()

bool MuonTGC_Cabling::TGCId::isAside ( ) const
inlineinherited

Definition at line 167 of file TGCId.h.

167 {
168 return (m_side == Aside);
169}

◆ isCside()

bool MuonTGC_Cabling::TGCId::isCside ( ) const
inlineinherited

Definition at line 170 of file TGCId.h.

170 {
171 return (m_side == Cside);
172}

◆ isDoublet()

bool MuonTGC_Cabling::TGCId::isDoublet ( ) const
inlineinherited

Definition at line 182 of file TGCId.h.

182 {
183 return (m_multiplet == Doublet);
184}

◆ isEndcap()

bool MuonTGC_Cabling::TGCId::isEndcap ( ) const
inlineinherited

Definition at line 191 of file TGCId.h.

191 {
192 return (m_region == Endcap);
193}

◆ isForward()

bool MuonTGC_Cabling::TGCId::isForward ( ) const
inlineinherited

Definition at line 188 of file TGCId.h.

188 {
189 return (m_region == Forward);
190}

◆ isInner()

bool MuonTGC_Cabling::TGCId::isInner ( ) const
inlineinherited

Definition at line 185 of file TGCId.h.

185 {
186 return (m_multiplet == Inner);
187}

◆ isStrip()

bool MuonTGC_Cabling::TGCId::isStrip ( ) const
inlineinherited

Definition at line 173 of file TGCId.h.

173 {
174 return (m_signal == Strip);
175}

◆ isTriplet()

bool MuonTGC_Cabling::TGCId::isTriplet ( ) const
inlineinherited

Definition at line 179 of file TGCId.h.

179 {
180 return (m_multiplet == Triplet);
181}

◆ isValid()

bool MuonTGC_Cabling::TGCModuleHPB::isValid ( ) const
virtual

Reimplemented from MuonTGC_Cabling::TGCModuleId.

Definition at line 20 of file TGCModuleHPB.cxx.

20 {
27 (getOctant() < 8) && (getId() >= 0)) {
28 return true;
29 }
30 return false;
31}
int getOctant() const
Definition TGCId.h:154
RegionType getRegionType() const
Definition TGCId.h:150
SideType getSideType() const
Definition TGCId.h:135
SignalType getSignalType() const
Definition TGCId.h:144
int getId() const
Definition TGCId.h:163

◆ isWire()

bool MuonTGC_Cabling::TGCId::isWire ( ) const
inlineinherited

Definition at line 176 of file TGCId.h.

176 {
177 return (m_signal == Wire);
178}

◆ operator==()

bool MuonTGC_Cabling::TGCModuleId::operator== ( const TGCModuleId & moduleId) const
virtualinherited

Definition at line 9 of file TGCModuleId.cxx.

9 {
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}
ModuleIdType getModuleIdType() const
Definition TGCModuleId.h:32

◆ setChamber()

void MuonTGC_Cabling::TGCId::setChamber ( int chamber)
inlinevirtualinherited

Definition at line 203 of file TGCId.h.

203 {
205}

◆ setId()

void MuonTGC_Cabling::TGCId::setId ( int id)
inlineinherited

Definition at line 207 of file TGCId.h.

◆ setIdType()

void MuonTGC_Cabling::TGCId::setIdType ( IdType idtype)
inlineprotectedinherited

Definition at line 211 of file TGCId.h.

211 {
212 m_idType = idtype;
213}

◆ setModuleType()

void MuonTGC_Cabling::TGCId::setModuleType ( ModuleType module)
inherited

Definition at line 39 of file TGCId.cxx.

39 {
40 m_module = v_module;
41 if (m_module == WI) {
44 }
45 if (m_module == SI) {
48 }
49 if (m_module == WD) {
52 }
53 if (m_module == SD) {
56 }
57 if (m_module == WT) {
60 }
61 if (m_module == ST) {
64 }
65}
void setMultipletType(MultipletType multiplet)
Definition TGCId.cxx:89

◆ setMultipletType()

void MuonTGC_Cabling::TGCId::setMultipletType ( MultipletType multiplet)
inherited

Definition at line 89 of file TGCId.cxx.

89 {
90 this->m_multiplet = v_multiplet;
91 if (m_multiplet == Inner && m_signal == Wire) {
92 m_module = WI;
93 }
94 if (m_multiplet == Inner && m_signal == Strip) {
95 m_module = SI;
96 }
97 if (m_multiplet == Doublet && m_signal == Wire) {
98 m_module = WD;
99 }
100 if (m_multiplet == Doublet && m_signal == Strip) {
101 m_module = SD;
102 }
103 if (m_multiplet == Triplet && m_signal == Wire) {
104 m_module = WT;
105 }
106 if (m_multiplet == Triplet && m_signal == Strip) {
107 m_module = ST;
108 }
109}

◆ setOctant()

void MuonTGC_Cabling::TGCId::setOctant ( int voctant)
virtualinherited

Definition at line 140 of file TGCId.cxx.

140 {
141 m_octant = v_octant;
142}

◆ setReadoutSector()

void MuonTGC_Cabling::TGCModuleId::setReadoutSector ( int sector)
inlineinherited

Definition at line 39 of file TGCModuleId.h.

39{ m_sectorRO = sector; }

◆ setRegionType()

void MuonTGC_Cabling::TGCId::setRegionType ( RegionType region)
inlineinherited

Definition at line 199 of file TGCId.h.

199 {
200 m_region = region;
201}

◆ setSector()

void MuonTGC_Cabling::TGCModuleId::setSector ( int v_sector)
virtualinherited

Reimplemented from MuonTGC_Cabling::TGCId.

Definition at line 23 of file TGCModuleId.cxx.

◆ setSectorModule()

void MuonTGC_Cabling::TGCId::setSectorModule ( int sectorModule)
protectedinherited

Definition at line 170 of file TGCId.cxx.

170 {
171 if (m_octant < 0) {
172 return;
173 }
174
175 const int MaxModuleInOctant = 15;
176 static const int regionId[MaxModuleInOctant] = {0, 0, 1, 0, 0, 1, 0, 0,
177 1, 2, 2, 2, 3, 3, 3};
178 static const int sectorId[MaxModuleInOctant] = {0, 1, 0, 2, 3, 1, 4, 5,
179 2, 0, 1, 2, 0, 1, 2};
180
181 if (sectorModule < 0 || sectorModule >= MaxModuleInOctant) {
182 return;
183 }
184
185 if (regionId[sectorModule] == 0) {
187 setSector(sectorId[sectorModule] +
189
190 } else if (regionId[sectorModule] == 1) {
192 setSector(sectorId[sectorModule] +
194 } else {
196 if (regionId[sectorModule] == 2) {
198 }
199 if (regionId[sectorModule] == 3) {
201 }
202 setSector(sectorId[sectorModule] +
204 }
205}
virtual void setSector(int vsector)
Definition TGCId.cxx:127

◆ setSideType()

void MuonTGC_Cabling::TGCId::setSideType ( SideType side)
inlineinherited

Definition at line 195 of file TGCId.h.

195 {
196 m_side = side;
197}

◆ setSignalType()

void MuonTGC_Cabling::TGCId::setSignalType ( SignalType signal)
inherited

Definition at line 67 of file TGCId.cxx.

67 {
68 m_signal = v_signal;
69 if (m_multiplet == Inner && m_signal == Wire) {
70 m_module = WI;
71 }
72 if (m_multiplet == Inner && m_signal == Strip) {
73 m_module = SI;
74 }
75 if (m_multiplet == Doublet && m_signal == Wire) {
76 m_module = WD;
77 }
78 if (m_multiplet == Doublet && m_signal == Strip) {
79 m_module = SD;
80 }
81 if (m_multiplet == Triplet && m_signal == Wire) {
82 m_module = WT;
83 }
84 if (m_multiplet == Triplet && m_signal == Strip) {
85 m_module = ST;
86 }
87}

◆ setStation()

void MuonTGC_Cabling::TGCId::setStation ( StationType vstation)
virtualinherited

Member Data Documentation

◆ m_chamber

int MuonTGC_Cabling::TGCId::m_chamber {-1}
protectedinherited

Definition at line 125 of file TGCId.h.

125{-1};

◆ m_id

int MuonTGC_Cabling::TGCId::m_id {-1}
protectedinherited

Definition at line 126 of file TGCId.h.

126{-1};

◆ m_idType

IdType MuonTGC_Cabling::TGCId::m_idType {IdType::NoIdType}
privateinherited

Definition at line 129 of file TGCId.h.

◆ m_module

ModuleType MuonTGC_Cabling::TGCId::m_module {NoModuleType}
protectedinherited

Definition at line 118 of file TGCId.h.

◆ m_multiplet

MultipletType MuonTGC_Cabling::TGCId::m_multiplet {NoMultipletType}
protectedinherited

Definition at line 120 of file TGCId.h.

◆ m_octant

int MuonTGC_Cabling::TGCId::m_octant {-1}
protectedinherited

Definition at line 123 of file TGCId.h.

123{-1};

◆ m_region

RegionType MuonTGC_Cabling::TGCId::m_region {NoRegionType}
protectedinherited

Definition at line 121 of file TGCId.h.

◆ m_sector

int MuonTGC_Cabling::TGCId::m_sector {-1}
protectedinherited

Definition at line 124 of file TGCId.h.

124{-1};

◆ m_sectorRO

int MuonTGC_Cabling::TGCModuleId::m_sectorRO {-1}
privateinherited

Definition at line 44 of file TGCModuleId.h.

44{-1};

◆ m_side

SideType MuonTGC_Cabling::TGCId::m_side {NoSideType}
protectedinherited

Definition at line 116 of file TGCId.h.

116{NoSideType};

◆ m_signal

SignalType MuonTGC_Cabling::TGCId::m_signal {NoSignalType}
protectedinherited

Definition at line 119 of file TGCId.h.

◆ m_station

StationType MuonTGC_Cabling::TGCId::m_station {StationType::NoStationType}
protectedinherited

Definition at line 117 of file TGCId.h.

◆ m_type

ModuleIdType MuonTGC_Cabling::TGCModuleId::m_type {ModuleIdType::MaxModuleIdType}
privateinherited

Definition at line 43 of file TGCModuleId.h.

◆ N_RODS

int MuonTGC_Cabling::TGCId::N_RODS = 12
staticconstexprinherited

Definition at line 44 of file TGCId.h.

◆ NUM_ENDCAP_SECTOR

int MuonTGC_Cabling::TGCId::NUM_ENDCAP_SECTOR = 48
staticconstexprinherited

Definition at line 41 of file TGCId.h.

◆ NUM_FORWARD_SECTOR

int MuonTGC_Cabling::TGCId::NUM_FORWARD_SECTOR = 24
staticconstexprinherited

Definition at line 42 of file TGCId.h.

◆ NUM_INNER_SECTOR

int MuonTGC_Cabling::TGCId::NUM_INNER_SECTOR = 24
staticconstexprinherited

Definition at line 43 of file TGCId.h.

◆ NUM_LAYERS

int MuonTGC_Cabling::TGCId::NUM_LAYERS
staticconstexprinherited
Initial value:
=
9

Definition at line 38 of file TGCId.h.

◆ NUM_OCTANT

int MuonTGC_Cabling::TGCId::NUM_OCTANT = 8
staticconstexprinherited

Definition at line 40 of file TGCId.h.

◆ NUM_STATIONS

int MuonTGC_Cabling::TGCId::NUM_STATIONS = 4
staticconstexprinherited

in ChannelId

Definition at line 37 of file TGCId.h.


The documentation for this class was generated from the following files: