ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelSLBOut.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9namespace MuonTGC_Cabling {
10
11// Constructor
13 TGCId::ModuleType vmodule,
14 TGCId::RegionType vregion, int vsector,
15 int vid, int vblock, int vchannel)
17 setSideType(vside);
18 setModuleType(vmodule);
19 setRegionType(vregion);
20 setSector(vsector);
21 setId(vid);
22 setBlock(vblock);
23 setChannel(vchannel);
24}
25
26std::unique_ptr<TGCModuleId> TGCChannelSLBOut::getModule() const {
27 return std::make_unique<TGCModuleSLB>(
29}
30
38 (getOctant() < 8) && (getId() >= 0) && (getBlock() >= 0) &&
39 (getChannel() >= 0)) {
40 return true;
41 }
42 return false;
43}
44
57
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}
73
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}
89
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}
105
106} // namespace MuonTGC_Cabling
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
static int getNumberOfBlock(TGCId::ModuleType moduleType)
virtual bool isValid() const override
virtual std::unique_ptr< TGCModuleId > getModule() const override
static int getNumberOfLayer(TGCId::ModuleType moduleType)
static int getChannelInBlock(TGCId::ModuleType moduleType)
void setSideType(SideType side)
Definition TGCId.h:194
int getOctant() const
Definition TGCId.h:153
void setRegionType(RegionType region)
Definition TGCId.h:198
ModuleType getModuleType() const
Definition TGCId.h:137
void setId(int id)
Definition TGCId.h:206
RegionType getRegionType() const
Definition TGCId.h:146
virtual int getSector() const
Definition TGCId.h:156
virtual void setSector(int vsector)
Definition TGCId.cxx:127
SideType getSideType() const
Definition TGCId.h:134
int getId() const
Definition TGCId.h:162
void setModuleType(ModuleType module)
Definition TGCId.cxx:39