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
35 (getOctant() >= 0) && (getOctant() < 8) &&
36 (getId() >= 0) && (getBlock() >= 0) &&
37 (getChannel() >= 0)) {
38 return true;
39 }
40 return false;
41}
42
55
57 switch (moduleType) {
66 default:
67 break;
68 }
69 return -1;
70}
71
73 switch (moduleType) {
82 default:
83 break;
84 }
85 return -1;
86}
87
89 switch (moduleType) {
98 default:
99 break;
100 }
101 return -1;
102}
103
104} // 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:182
int getOctant() const
Definition TGCId.h:141
void setRegionType(RegionType region)
Definition TGCId.h:186
ModuleType getModuleType() const
Definition TGCId.h:131
void setId(int id)
Definition TGCId.h:194
RegionType getRegionType() const
Definition TGCId.h:137
virtual int getSector() const
Definition TGCId.h:144
virtual void setSector(int vsector)
Definition TGCId.cxx:82
SideType getSideType() const
Definition TGCId.h:125
int getId() const
Definition TGCId.h:150
virtual void setModuleType(ModuleType module)
Definition TGCId.cxx:39