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

#include <TGCChannelSLBOut.h>

Inheritance diagram for MuonTGC_Cabling::TGCChannelSLBOut:
Collaboration diagram for MuonTGC_Cabling::TGCChannelSLBOut:

Public Types

enum class  ChannelIdType {
  NoChannelIdType , ASDIn , ASDOut , PPIn ,
  PPOut , SLBIn , SLBOut , HPBIn
}
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

 TGCChannelSLBOut (TGCId::SideType side, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int block, int channel)
virtual ~TGCChannelSLBOut ()=default
virtual std::unique_ptr< TGCModuleIdgetModule () const override
virtual bool isValid () const override
virtual bool operator== (const TGCChannelId &channelId) const
ChannelIdType getChannelIdType () const
int getLayer () const
int getBlock () const
int getChannel () const
virtual int getGasGap () const
void setChannelIdType (ChannelIdType type)
void setLayer (int layer)
virtual void setBlock (int block)
virtual void setChannel (int channel)
bool isBackward () const
IdType getIdType () const
SideType getSideType () 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 getStation () const
int getOctant () const
virtual int getSector () const
int getChamber () const
int getId () 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 setSector (int vsector)
virtual void setChamber (int chamber)
void setId (int id)

Static Public Member Functions

static int getNumberOfBlock (TGCId::ModuleType moduleType)
static int getNumberOfLayer (TGCId::ModuleType moduleType)
static int getChannelInBlock (TGCId::ModuleType moduleType)

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 setReadoutSector (int sector)
void setSectorModule (int sectorModule)

Protected Attributes

ChannelIdType m_channelType {ChannelIdType::NoChannelIdType}
int m_layer {-1}
int m_block {-1}
int m_channel {-1}
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

 TGCChannelSLBOut ()

Private Attributes

IdType m_idType {IdType::NoIdType}

Static Private Attributes

static const int s_numberOfBlockInWD = 2
static const int s_numberOfBlockInSD = 2
static const int s_numberOfBlockInWT = 3
static const int s_numberOfBlockInST = 8
static const int s_numberOfLayerInWD = 2
static const int s_numberOfLayerInSD = 2
static const int s_numberOfLayerInWT = 3
static const int s_numberOfLayerInST = 2
static const int s_channelInBlockForWD = 32
static const int s_channelInBlockForSD = 32
static const int s_channelInBlockForWT = 32
static const int s_channelInBlockForST = 16

Detailed Description

Definition at line 12 of file TGCChannelSLBOut.h.

Member Enumeration Documentation

◆ ChannelIdType

Enumerator
NoChannelIdType 
ASDIn 
ASDOut 
PPIn 
PPOut 
SLBIn 
SLBOut 
HPBIn 

Definition at line 19 of file TGCChannelId.h.

19 {
20 NoChannelIdType,
21 ASDIn,
22 ASDOut,
23 PPIn,
24 PPOut,
25 SLBIn,
26 SLBOut,
27 HPBIn
28 };

◆ 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

◆ 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

◆ TGCChannelSLBOut() [1/2]

MuonTGC_Cabling::TGCChannelSLBOut::TGCChannelSLBOut ( TGCId::SideType side,
TGCId::ModuleType module,
TGCId::RegionType region,
int sector,
int id,
int block,
int channel )

Definition at line 12 of file TGCChannelSLBOut.cxx.

17 setSideType(vside);
18 setModuleType(vmodule);
19 setRegionType(vregion);
20 setSector(vsector);
21 setId(vid);
22 setBlock(vblock);
23 setChannel(vchannel);
24}
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
void setSideType(SideType side)
Definition TGCId.h:194
void setRegionType(RegionType region)
Definition TGCId.h:198
void setId(int id)
Definition TGCId.h:206
virtual void setSector(int vsector)
Definition TGCId.cxx:127
void setModuleType(ModuleType module)
Definition TGCId.cxx:39

◆ ~TGCChannelSLBOut()

virtual MuonTGC_Cabling::TGCChannelSLBOut::~TGCChannelSLBOut ( )
virtualdefault

◆ TGCChannelSLBOut() [2/2]

MuonTGC_Cabling::TGCChannelSLBOut::TGCChannelSLBOut ( )
inlineprivate

Definition at line 45 of file TGCChannelSLBOut.h.

45{}

Member Function Documentation

◆ getBlock()

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

Definition at line 32 of file TGCChannelId.cxx.

32 {
33 return m_block;
34}

◆ getChamber()

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

Definition at line 159 of file TGCId.h.

159 {
160 return m_chamber;
161}

◆ getChannel()

int MuonTGC_Cabling::TGCChannelId::getChannel ( ) const
inherited

Definition at line 35 of file TGCChannelId.cxx.

35 {
36 return m_channel;
37}

◆ getChannelIdType()

TGCChannelId::ChannelIdType MuonTGC_Cabling::TGCChannelId::getChannelIdType ( ) const
inherited

Definition at line 26 of file TGCChannelId.cxx.

26 {
27 return m_channelType;
28}

◆ getChannelInBlock()

int MuonTGC_Cabling::TGCChannelSLBOut::getChannelInBlock ( TGCId::ModuleType moduleType)
static

Definition at line 90 of file TGCChannelSLBOut.cxx.

90 {
91 switch (moduleType) {
92 case TGCId::WD:
94 case TGCId::SD:
96 case TGCId::WT:
98 case TGCId::ST:
100 default:
101 break;
102 }
103 return -1;
104}

◆ getGasGap()

int MuonTGC_Cabling::TGCChannelId::getGasGap ( ) const
virtualinherited

Definition at line 39 of file TGCChannelId.cxx.

39 {
40 if (getLayer() == 0 || getLayer() == 3 || getLayer() == 5 ||
41 getLayer() == 7) {
42 return 1;
43 }
44 if (getLayer() == 1 || getLayer() == 4 || getLayer() == 6 ||
45 getLayer() == 8) {
46 return 2;
47 }
48 if (getLayer() == 2) {
49 return 3;
50 }
51 return -1;
52}

◆ 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 ( ) const
inlineinherited

Definition at line 131 of file TGCId.h.

131 {
132 return m_idType;
133}

◆ getLayer()

int MuonTGC_Cabling::TGCChannelId::getLayer ( ) const
inherited

Definition at line 29 of file TGCChannelId.cxx.

29 {
30 return m_layer;
31}

◆ getModule()

std::unique_ptr< TGCModuleId > MuonTGC_Cabling::TGCChannelSLBOut::getModule ( ) const
overridevirtual

Reimplemented from MuonTGC_Cabling::TGCChannelId.

Definition at line 26 of file TGCChannelSLBOut.cxx.

26 {
27 return std::make_unique<TGCModuleSLB>(
29}
ModuleType getModuleType() const
Definition TGCId.h:137
RegionType getRegionType() const
Definition TGCId.h:146
virtual int getSector() const
Definition TGCId.h:156
SideType getSideType() const
Definition TGCId.h:134
int getId() const
Definition TGCId.h:162

◆ getModuleType()

TGCId::ModuleType MuonTGC_Cabling::TGCId::getModuleType ( ) 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 ( ) const
inlineinherited

Definition at line 143 of file TGCId.h.

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

◆ getNumberOfBlock()

int MuonTGC_Cabling::TGCChannelSLBOut::getNumberOfBlock ( TGCId::ModuleType moduleType)
static

Definition at line 58 of file TGCChannelSLBOut.cxx.

58 {
59 switch (moduleType) {
60 case TGCId::WD:
62 case TGCId::SD:
64 case TGCId::WT:
66 case TGCId::ST:
68 default:
69 break;
70 }
71 return -1;
72}

◆ getNumberOfLayer()

int MuonTGC_Cabling::TGCChannelSLBOut::getNumberOfLayer ( TGCId::ModuleType moduleType)
static

Definition at line 74 of file TGCChannelSLBOut.cxx.

74 {
75 switch (moduleType) {
76 case TGCId::WD:
78 case TGCId::SD:
80 case TGCId::WT:
82 case TGCId::ST:
84 default:
85 break;
86 }
87 return -1;
88}

◆ getOctant()

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

Definition at line 153 of file TGCId.h.

153 {
154 return m_octant;
155}

◆ getRegionType()

TGCId::RegionType MuonTGC_Cabling::TGCId::getRegionType ( ) 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 ( ) 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
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 ( ) 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 134 of file TGCId.h.

134 {
135 return m_side;
136}

◆ getSignalType()

TGCId::SignalType MuonTGC_Cabling::TGCId::getSignalType ( ) 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}

◆ isBackward()

bool MuonTGC_Cabling::TGCChannelId::isBackward ( ) const
inherited

Definition at line 89 of file TGCChannelId.cxx.

89 {
90 if (isEndcap()) {
91 if (!isInner()) {
92 if (isAside()) {
93 return (m_sector % 2 == 1);
94 } else {
95 return (m_sector % 2 == 0);
96 }
97 } else {
98 // EI
99 // Special case of EI11
100 if (m_sector == 15) {
101 if (isAside()) {
102 return false;
103 } else {
104 return true;
105 }
106 } else if (m_sector == 16) {
107 if (isAside()) {
108 return true;
109 } else {
110 return false;
111 }
112 } else {
113 // A-m_side phi0 F: phi1 F: phi2 B
114 // C-m_side phi0 B: phi1 B: phi2 F
115 if (isAside()) {
116 return (m_sector % 3 == 2);
117 } else {
118 return (m_sector % 3 != 2);
119 }
120 }
121 }
122 } else {
123 if (isAside()) {
124 return true; // all Backward
125 } else {
126 return false; // all Forward
127 }
128 }
129}
bool isAside() const
Definition TGCId.h:166

◆ 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::TGCChannelSLBOut::isValid ( ) const
overridevirtual

Reimplemented from MuonTGC_Cabling::TGCChannelId.

Definition at line 31 of file TGCChannelSLBOut.cxx.

31 {
38 (getOctant() < 8) && (getId() >= 0) && (getBlock() >= 0) &&
39 (getChannel() >= 0)) {
40 return true;
41 }
42 return false;
43}
int getOctant() const
Definition TGCId.h:153

◆ 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::TGCChannelId::operator== ( const TGCChannelId & channelId) const
virtualinherited

Definition at line 9 of file TGCChannelId.cxx.

9 {
10 if ((this->getChannelIdType() == channelId.getChannelIdType()) &&
11 (this->getSideType() == channelId.getSideType()) &&
12 (this->getRegionType() == channelId.getRegionType()) &&
13 (this->getSignalType() == channelId.getSignalType()) &&
14 (this->getModuleType() == channelId.getModuleType()) &&
15 (this->getSector() == channelId.getSector()) &&
16 (this->getLayer() == channelId.getLayer()) &&
17 (this->getChamber() == channelId.getChamber()) &&
18 (this->getId() == channelId.getId()) &&
19 (this->getBlock() == channelId.getBlock()) &&
20 (this->getChannel() == channelId.getChannel())) {
21 return true;
22 }
23 return false;
24}
ChannelIdType getChannelIdType() const

◆ setBlock()

void MuonTGC_Cabling::TGCChannelId::setBlock ( int block)
virtualinherited

Definition at line 81 of file TGCChannelId.cxx.

81 {
82 m_block = block;
83}

◆ setChamber()

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

Definition at line 202 of file TGCId.h.

202 {
204}

◆ setChannel()

void MuonTGC_Cabling::TGCChannelId::setChannel ( int channel)
virtualinherited

Reimplemented in MuonTGC_Cabling::TGCChannelSLBIn.

Definition at line 85 of file TGCChannelId.cxx.

◆ setChannelIdType()

void MuonTGC_Cabling::TGCChannelId::setChannelIdType ( ChannelIdType type)
inherited

Definition at line 54 of file TGCChannelId.cxx.

54 {
55 m_channelType = idtype;
56}

◆ 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}

◆ setLayer()

void MuonTGC_Cabling::TGCChannelId::setLayer ( int layer)
inherited

Definition at line 58 of file TGCChannelId.cxx.

58 {
60 if (m_layer >= 0 && m_layer <= 2) {
62 setStation(0);
63 }
64 if (m_layer >= 3 && m_layer <= 4) {
66 setStation(1);
67 }
68 if (m_layer >= 5 && m_layer <= 6) {
70 setStation(2);
71 }
72 if (m_layer >= 7 && m_layer <= 8) {
74 setStation(3);
75 if (m_sector != -1) {
76 m_octant = m_sector / 3;
77 }
78 }
79}
std::vector< short > v_layer
virtual void setStation(int vstation)
Definition TGCId.cxx:111
void setMultipletType(MultipletType multiplet)
Definition TGCId.cxx:89

◆ 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

◆ 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::TGCId::setReadoutSector ( int sector)
protectedinherited

◆ 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::TGCId::setSector ( int vsector)
virtualinherited

Reimplemented in MuonTGC_Cabling::TGCChannelASDIn, and MuonTGC_Cabling::TGCModuleId.

Definition at line 127 of file TGCId.cxx.

127 {
128 m_sector = v_sector;
129 if (m_region == Endcap) {
130 if (m_multiplet == Inner) {
132 } else {
134 }
135 } else if (m_region == Forward) {
137 }
138}

◆ 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}

◆ 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_block

int MuonTGC_Cabling::TGCChannelId::m_block {-1}
protectedinherited

Definition at line 59 of file TGCChannelId.h.

59{-1};

◆ m_chamber

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

Definition at line 124 of file TGCId.h.

124{-1};

◆ m_channel

int MuonTGC_Cabling::TGCChannelId::m_channel {-1}
protectedinherited

Definition at line 60 of file TGCChannelId.h.

60{-1};

◆ m_channelType

ChannelIdType MuonTGC_Cabling::TGCChannelId::m_channelType {ChannelIdType::NoChannelIdType}
protectedinherited

◆ 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_layer

int MuonTGC_Cabling::TGCChannelId::m_layer {-1}
protectedinherited

Definition at line 58 of file TGCChannelId.h.

58{-1};

◆ 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_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};

◆ 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.

◆ s_channelInBlockForSD

const int MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForSD = 32
staticprivate

Definition at line 35 of file TGCChannelSLBOut.h.

◆ s_channelInBlockForST

const int MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForST = 16
staticprivate

Definition at line 37 of file TGCChannelSLBOut.h.

◆ s_channelInBlockForWD

const int MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForWD = 32
staticprivate

Definition at line 34 of file TGCChannelSLBOut.h.

◆ s_channelInBlockForWT

const int MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForWT = 32
staticprivate

Definition at line 36 of file TGCChannelSLBOut.h.

◆ s_numberOfBlockInSD

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInSD = 2
staticprivate

Definition at line 27 of file TGCChannelSLBOut.h.

◆ s_numberOfBlockInST

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInST = 8
staticprivate

Definition at line 29 of file TGCChannelSLBOut.h.

◆ s_numberOfBlockInWD

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInWD = 2
staticprivate

Definition at line 26 of file TGCChannelSLBOut.h.

◆ s_numberOfBlockInWT

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInWT = 3
staticprivate

Definition at line 28 of file TGCChannelSLBOut.h.

◆ s_numberOfLayerInSD

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInSD = 2
staticprivate

Definition at line 31 of file TGCChannelSLBOut.h.

◆ s_numberOfLayerInST

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInST = 2
staticprivate

Definition at line 33 of file TGCChannelSLBOut.h.

◆ s_numberOfLayerInWD

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInWD = 2
staticprivate

Definition at line 30 of file TGCChannelSLBOut.h.

◆ s_numberOfLayerInWT

const int MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInWT = 3
staticprivate

Definition at line 32 of file TGCChannelSLBOut.h.


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