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

#include <TGCModuleROD.h>

Inheritance diagram for MuonTGC_Cabling::TGCModuleROD:
Collaboration diagram for MuonTGC_Cabling::TGCModuleROD:

Public Types

enum  ModuleIdType {
  NoModuleIdType = -1 , PP , SLB , HPB ,
  SL , SSW , ROD , SROD ,
  MaxModuleIdType
}
enum  { NumberOfSReadoutSector = 3 }
enum class  IdType { NoIdType , Channel , Module , MaxIdType }
enum  SideType { NoSideType = -1 , Aside , Cside , MaxSideType }
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

 TGCModuleROD (TGCId::SideType side, int readoutSector)
virtual ~TGCModuleROD (void)
virtual bool isValid (void) const
ModuleIdType getModuleIdType (void) const
virtual bool operator== (const TGCModuleId &moduleId) const
int getReadoutSector () const
void setReadoutSector (int sector)
virtual void setSector (int v_sector)
IdType getIdType (void) const
SideType getSideType (void) const
ModuleType getModuleType (void) const
SignalType getSignalType (void) const
MultipletType getMultipletType (void) const
RegionType getRegionType (void) const
int getSectorInReadout (void) const
virtual int getSectorInOctant () const
virtual int getSectorModule () const
int getStation () 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)
void setModuleType (ModuleType module)
void setSignalType (SignalType signal)
void setMultipletType (MultipletType multiplet)
void setRegionType (RegionType region)
virtual void setStation (int vstation)
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}
ModuleType m_module {NoModuleType}
SignalType m_signal {NoSignalType}
MultipletType m_multiplet {NoMultipletType}
RegionType m_region {NoRegionType}
int m_station {-1}
int m_octant {-1}
int m_sector {-1}
int m_chamber {-1}
int m_id {-1}

Private Member Functions

 TGCModuleROD (void)

Private Attributes

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

Detailed Description

Definition at line 12 of file TGCModuleROD.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NumberOfSReadoutSector 

Definition at line 32 of file TGCModuleId.h.

◆ IdType

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

Definition at line 12 of file TGCId.h.

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

◆ ModuleIdType

◆ ModuleType

Enumerator
NoModuleType 
WD 
SD 
WT 
ST 
WI 
SI 
MaxModuleType 

Definition at line 47 of file TGCId.h.

◆ MultipletType

Enumerator
NoMultipletType 
Doublet 
Triplet 
Inner 
MaxChamberType 

Definition at line 58 of file TGCId.h.

◆ RegionType

Enumerator
NoRegionType 
Endcap 
Forward 
MaxRegionType 

Definition at line 65 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 57 of file TGCId.h.

Constructor & Destructor Documentation

◆ TGCModuleROD() [1/2]

MuonTGC_Cabling::TGCModuleROD::TGCModuleROD ( TGCId::SideType side,
int readoutSector )

Definition at line 10 of file TGCModuleROD.cxx.

12 setSideType(vside);
13 setReadoutSector(vreadoutSector);
14 int rodId = vreadoutSector + 1;
15 setId(rodId);
16}
void setSideType(SideType side)
Definition TGCId.h:194
void setId(int id)
Definition TGCId.h:206
void setReadoutSector(int sector)
Definition TGCModuleId.h:41
TGCModuleId(ModuleIdType type=NoModuleIdType)
Definition TGCModuleId.h:27

◆ ~TGCModuleROD()

virtual MuonTGC_Cabling::TGCModuleROD::~TGCModuleROD ( void )
inlinevirtual

Definition at line 17 of file TGCModuleROD.h.

17{}

◆ TGCModuleROD() [2/2]

MuonTGC_Cabling::TGCModuleROD::TGCModuleROD ( void )
inlineprivate

Definition at line 22 of file TGCModuleROD.h.

22{}

Member Function Documentation

◆ getBlock()

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

◆ getChamber()

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

Definition at line 159 of file TGCId.h.

159 {
160 return m_chamber;
161}

◆ getId()

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

Definition at line 162 of file TGCId.h.

162 {
163 return m_id;
164}

◆ getIdType()

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

Definition at line 131 of file TGCId.h.

131 {
132 return m_idType;
133}

◆ getModuleIdType()

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

Definition at line 34 of file TGCModuleId.h.

34{ return m_type; }

◆ getModuleType()

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

Definition at line 137 of file TGCId.h.

137 {
138 return m_module;
139}
ModuleType m_module
Definition TGCId.h:116

◆ getMultipletType()

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

Definition at line 143 of file TGCId.h.

143 {
144 return m_multiplet;
145}
MultipletType m_multiplet
Definition TGCId.h:118

◆ getOctant()

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

Definition at line 153 of file TGCId.h.

153 {
154 return m_octant;
155}

◆ getReadoutSector()

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

Definition at line 40 of file TGCModuleId.h.

◆ getRegionType()

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

Definition at line 146 of file TGCId.h.

146 {
147 return m_region;
148}
RegionType m_region
Definition TGCId.h:119

◆ getSector()

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

Reimplemented in MuonTGC_Cabling::TGCChannelASDIn.

Definition at line 156 of file TGCId.h.

156 {
157 return m_sector;
158}

◆ 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:190
bool isForward() const
Definition TGCId.h:187
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:156
bool isInner() const
Definition TGCId.h:184
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 ( void ) 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 ( void ) 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 ( void ) const
inlineinherited

Definition at line 134 of file TGCId.h.

134 {
135 return m_side;
136}

◆ getSignalType()

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

Definition at line 140 of file TGCId.h.

140 {
141 return m_signal;
142}
SignalType m_signal
Definition TGCId.h:117

◆ getStation()

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

Definition at line 150 of file TGCId.h.

150 {
151 return m_station;
152}

◆ isAside()

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

Definition at line 166 of file TGCId.h.

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

◆ isCside()

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

Definition at line 169 of file TGCId.h.

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

◆ isDoublet()

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

Definition at line 181 of file TGCId.h.

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

◆ isEndcap()

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

Definition at line 190 of file TGCId.h.

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

◆ isForward()

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

Definition at line 187 of file TGCId.h.

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

◆ isInner()

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

Definition at line 184 of file TGCId.h.

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

◆ isStrip()

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

Definition at line 172 of file TGCId.h.

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

◆ isTriplet()

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

Definition at line 178 of file TGCId.h.

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

◆ isValid()

bool MuonTGC_Cabling::TGCModuleROD::isValid ( void ) const
virtual

Reimplemented from MuonTGC_Cabling::TGCModuleId.

Definition at line 18 of file TGCModuleROD.cxx.

18 {
22 return true;
23 }
24 return false;
25}
SideType getSideType(void) const
Definition TGCId.h:134

◆ isWire()

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

Definition at line 175 of file TGCId.h.

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

◆ 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(void) const
Definition TGCModuleId.h:34

◆ setChamber()

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

Definition at line 202 of file TGCId.h.

202 {
204}

◆ setId()

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

Definition at line 206 of file TGCId.h.

◆ setIdType()

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

Definition at line 210 of file TGCId.h.

210 {
211 m_idType = idtype;
212}

◆ 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 setSignalType(SignalType signal)
Definition TGCId.cxx:67
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 41 of file TGCModuleId.h.

41{ m_sectorRO = sector; }

◆ setRegionType()

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

Definition at line 198 of file TGCId.h.

198 {
199 m_region = region;
200}

◆ 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}
void setRegionType(RegionType region)
Definition TGCId.h:198
virtual void setSector(int vsector)
Definition TGCId.cxx:127

◆ setSideType()

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

Definition at line 194 of file TGCId.h.

194 {
195 m_side = side;
196}

◆ 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 ( int vstation)
virtualinherited

Definition at line 111 of file TGCId.cxx.

111 {
112 m_station = v_station;
113 if (m_station == 0) {
115 }
116 if (m_station == 1) {
118 }
119 if (m_station == 2) {
121 }
122 if (m_station == 3) {
124 }
125}

Member Data Documentation

◆ m_chamber

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

Definition at line 124 of file TGCId.h.

124{-1};

◆ m_id

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

Definition at line 125 of file TGCId.h.

125{-1};

◆ m_idType

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

Definition at line 128 of file TGCId.h.

◆ m_module

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

Definition at line 116 of file TGCId.h.

◆ m_multiplet

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

Definition at line 118 of file TGCId.h.

◆ m_octant

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

Definition at line 122 of file TGCId.h.

122{-1};

◆ m_region

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

Definition at line 119 of file TGCId.h.

◆ m_sector

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

Definition at line 123 of file TGCId.h.

123{-1};

◆ m_sectorRO

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

Definition at line 46 of file TGCModuleId.h.

46{-1};

◆ m_side

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

Definition at line 115 of file TGCId.h.

115{NoSideType};

◆ m_signal

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

Definition at line 117 of file TGCId.h.

◆ m_station

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

Definition at line 121 of file TGCId.h.

121{-1};

◆ m_type

ModuleIdType MuonTGC_Cabling::TGCModuleId::m_type
privateinherited

Definition at line 45 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: