ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelSLBOut.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9namespace MuonTGC_Cabling
10{
11
12// Constructor
14 TGCId::ModuleType vmodule,
15 TGCId::RegionType vregion,
16 int vsector,
17 int vid,
18 int vblock,
19 int vchannel)
21{
22 setSideType(vside);
23 setModuleType(vmodule);
24 setRegionType(vregion);
25 setSector(vsector);
26 setId(vid);
27 setBlock(vblock);
28 setChannel(vchannel);
29}
30
32{
33 return (new TGCModuleSLB(getSideType(),
36 getSector(),
37 getId()));
38}
39
40
42{
49 (getOctant() >=0) &&
50 (getOctant() <8) &&
51 (getId() >=0) &&
52 (getBlock() >=0) &&
53 (getChannel() >=0) )
54 return true;
55 return false;
56}
57
58
71
73 switch(moduleType){
74 case TGCId::WD:
76 case TGCId::SD:
78 case TGCId::WT:
80 case TGCId::ST:
82 default:
83 break;
84 }
85 return -1;
86}
87
89 switch(moduleType){
90 case TGCId::WD:
92 case TGCId::SD:
94 case TGCId::WT:
96 case TGCId::ST:
98 default:
99 break;
100 }
101 return -1;
102}
103
105 switch(moduleType){
106 case TGCId::WD:
108 case TGCId::SD:
110 case TGCId::WT:
112 case TGCId::ST:
114 default:
115 break;
116 }
117 return -1;
118}
119
120} // end of namespace
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
static int getNumberOfBlock(TGCId::ModuleType moduleType)
static int getNumberOfLayer(TGCId::ModuleType moduleType)
static int getChannelInBlock(TGCId::ModuleType moduleType)
virtual TGCModuleId * getModule(void) const
void setSideType(SideType side)
Definition TGCId.h:143
int getOctant() const
Definition TGCId.h:128
void setRegionType(RegionType region)
Definition TGCId.h:147
ModuleType getModuleType(void) const
Definition TGCId.h:122
RegionType getRegionType(void) const
Definition TGCId.h:125
void setId(int id)
Definition TGCId.h:155
virtual int getSector() const
Definition TGCId.h:129
virtual void setSector(int vsector)
Definition TGCId.cxx:95
SideType getSideType(void) const
Definition TGCId.h:121
int getId() const
Definition TGCId.h:131
void setModuleType(ModuleType module)
Definition TGCId.cxx:39