ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
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
5
#include "
MuonTGC_Cabling/TGCChannelSLBOut.h
"
6
7
#include "
MuonTGC_Cabling/TGCModuleSLB.h
"
8
9
namespace
MuonTGC_Cabling
{
10
11
// Constructor
12
TGCChannelSLBOut::TGCChannelSLBOut
(
TGCId::SideType
vside,
13
TGCId::ModuleType
vmodule,
14
TGCId::RegionType
vregion,
int
vsector,
15
int
vid,
int
vblock,
int
vchannel)
16
:
TGCChannelId
(
TGCChannelId
::
ChannelIdType
::SLBOut) {
17
setSideType
(vside);
18
setModuleType
(vmodule);
19
setRegionType
(vregion);
20
setSector
(vsector);
21
setId
(vid);
22
setBlock
(vblock);
23
setChannel
(vchannel);
24
}
25
26
std::unique_ptr<TGCModuleId>
TGCChannelSLBOut::getModule
()
const
{
27
return
std::make_unique<TGCModuleSLB>(
28
getSideType
(),
getModuleType
(),
getRegionType
(),
getSector
(),
getId
());
29
}
30
31
bool
TGCChannelSLBOut::isValid
()
const
{
32
if
((
getSideType
() <
TGCId::SideType::MaxSideType
) &&
33
(
getModuleType
() <
TGCId::ModuleType::MaxModuleType
) &&
34
(
getRegionType
() <
TGCId::RegionType::MaxRegionType
) &&
35
(
getOctant
() >= 0) && (
getOctant
() < 8) &&
36
(
getId
() >= 0) && (
getBlock
() >= 0) &&
37
(
getChannel
() >= 0)) {
38
return
true
;
39
}
40
return
false
;
41
}
42
43
const
int
TGCChannelSLBOut::s_numberOfBlockInWD
= 2;
44
const
int
TGCChannelSLBOut::s_numberOfBlockInSD
= 2;
45
const
int
TGCChannelSLBOut::s_numberOfBlockInWT
= 3;
46
const
int
TGCChannelSLBOut::s_numberOfBlockInST
= 8;
47
const
int
TGCChannelSLBOut::s_numberOfLayerInWD
= 2;
48
const
int
TGCChannelSLBOut::s_numberOfLayerInSD
= 2;
49
const
int
TGCChannelSLBOut::s_numberOfLayerInWT
= 3;
50
const
int
TGCChannelSLBOut::s_numberOfLayerInST
= 2;
51
const
int
TGCChannelSLBOut::s_channelInBlockForWD
= 32;
52
const
int
TGCChannelSLBOut::s_channelInBlockForSD
= 32;
53
const
int
TGCChannelSLBOut::s_channelInBlockForWT
= 32;
54
const
int
TGCChannelSLBOut::s_channelInBlockForST
= 16;
55
56
int
TGCChannelSLBOut::getNumberOfBlock
(
TGCId::ModuleType
moduleType) {
57
switch
(moduleType) {
58
case
TGCId::ModuleType::WD
:
59
return
s_numberOfBlockInWD
;
60
case
TGCId::ModuleType::SD
:
61
return
s_numberOfBlockInSD
;
62
case
TGCId::ModuleType::WT
:
63
return
s_numberOfBlockInWT
;
64
case
TGCId::ModuleType::ST
:
65
return
s_numberOfBlockInST
;
66
default
:
67
break
;
68
}
69
return
-1;
70
}
71
72
int
TGCChannelSLBOut::getNumberOfLayer
(
TGCId::ModuleType
moduleType) {
73
switch
(moduleType) {
74
case
TGCId::ModuleType::WD
:
75
return
s_numberOfLayerInWD
;
76
case
TGCId::ModuleType::SD
:
77
return
s_numberOfLayerInSD
;
78
case
TGCId::ModuleType::WT
:
79
return
s_numberOfLayerInWT
;
80
case
TGCId::ModuleType::ST
:
81
return
s_numberOfLayerInST
;
82
default
:
83
break
;
84
}
85
return
-1;
86
}
87
88
int
TGCChannelSLBOut::getChannelInBlock
(
TGCId::ModuleType
moduleType) {
89
switch
(moduleType) {
90
case
TGCId::ModuleType::WD
:
91
return
s_channelInBlockForWD
;
92
case
TGCId::ModuleType::SD
:
93
return
s_channelInBlockForSD
;
94
case
TGCId::ModuleType::WT
:
95
return
s_channelInBlockForWT
;
96
case
TGCId::ModuleType::ST
:
97
return
s_channelInBlockForST
;
98
default
:
99
break
;
100
}
101
return
-1;
102
}
103
104
}
// namespace MuonTGC_Cabling
TGCChannelSLBOut.h
TGCModuleSLB.h
MuonTGC_Cabling::TGCChannelId::ChannelIdType
ChannelIdType
Definition
TGCChannelId.h:19
MuonTGC_Cabling::TGCChannelId::setChannel
virtual void setChannel(int channel)
Definition
TGCChannelId.cxx:81
MuonTGC_Cabling::TGCChannelId::getChannel
int getChannel() const
Definition
TGCChannelId.cxx:35
MuonTGC_Cabling::TGCChannelId::TGCChannelId
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
Definition
TGCChannelId.h:31
MuonTGC_Cabling::TGCChannelId::setBlock
virtual void setBlock(int block)
Definition
TGCChannelId.cxx:77
MuonTGC_Cabling::TGCChannelId::getBlock
int getBlock() const
Definition
TGCChannelId.cxx:32
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInSD
static const int s_numberOfBlockInSD
Definition
TGCChannelSLBOut.h:27
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInWT
static const int s_numberOfLayerInWT
Definition
TGCChannelSLBOut.h:32
MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForWD
static const int s_channelInBlockForWD
Definition
TGCChannelSLBOut.h:34
MuonTGC_Cabling::TGCChannelSLBOut::TGCChannelSLBOut
TGCChannelSLBOut()
Definition
TGCChannelSLBOut.h:45
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInST
static const int s_numberOfLayerInST
Definition
TGCChannelSLBOut.h:33
MuonTGC_Cabling::TGCChannelSLBOut::getNumberOfBlock
static int getNumberOfBlock(TGCId::ModuleType moduleType)
Definition
TGCChannelSLBOut.cxx:56
MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForWT
static const int s_channelInBlockForWT
Definition
TGCChannelSLBOut.h:36
MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForSD
static const int s_channelInBlockForSD
Definition
TGCChannelSLBOut.h:35
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInWD
static const int s_numberOfLayerInWD
Definition
TGCChannelSLBOut.h:30
MuonTGC_Cabling::TGCChannelSLBOut::s_channelInBlockForST
static const int s_channelInBlockForST
Definition
TGCChannelSLBOut.h:37
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInST
static const int s_numberOfBlockInST
Definition
TGCChannelSLBOut.h:29
MuonTGC_Cabling::TGCChannelSLBOut::isValid
virtual bool isValid() const override
Definition
TGCChannelSLBOut.cxx:31
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInWD
static const int s_numberOfBlockInWD
Definition
TGCChannelSLBOut.h:26
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfLayerInSD
static const int s_numberOfLayerInSD
Definition
TGCChannelSLBOut.h:31
MuonTGC_Cabling::TGCChannelSLBOut::s_numberOfBlockInWT
static const int s_numberOfBlockInWT
Definition
TGCChannelSLBOut.h:28
MuonTGC_Cabling::TGCChannelSLBOut::getModule
virtual std::unique_ptr< TGCModuleId > getModule() const override
Definition
TGCChannelSLBOut.cxx:26
MuonTGC_Cabling::TGCChannelSLBOut::getNumberOfLayer
static int getNumberOfLayer(TGCId::ModuleType moduleType)
Definition
TGCChannelSLBOut.cxx:72
MuonTGC_Cabling::TGCChannelSLBOut::getChannelInBlock
static int getChannelInBlock(TGCId::ModuleType moduleType)
Definition
TGCChannelSLBOut.cxx:88
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition
TGCId.h:182
MuonTGC_Cabling::TGCId::getOctant
int getOctant() const
Definition
TGCId.h:141
MuonTGC_Cabling::TGCId::setRegionType
void setRegionType(RegionType region)
Definition
TGCId.h:186
MuonTGC_Cabling::TGCId::getModuleType
ModuleType getModuleType() const
Definition
TGCId.h:131
MuonTGC_Cabling::TGCId::ModuleType
ModuleType
Definition
TGCId.h:51
MuonTGC_Cabling::TGCId::ModuleType::SD
@ SD
Definition
TGCId.h:51
MuonTGC_Cabling::TGCId::ModuleType::WT
@ WT
Definition
TGCId.h:52
MuonTGC_Cabling::TGCId::ModuleType::WD
@ WD
Definition
TGCId.h:51
MuonTGC_Cabling::TGCId::ModuleType::MaxModuleType
@ MaxModuleType
Definition
TGCId.h:54
MuonTGC_Cabling::TGCId::ModuleType::ST
@ ST
Definition
TGCId.h:52
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition
TGCId.h:194
MuonTGC_Cabling::TGCId::getRegionType
RegionType getRegionType() const
Definition
TGCId.h:137
MuonTGC_Cabling::TGCId::getSector
virtual int getSector() const
Definition
TGCId.h:144
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::RegionType::MaxRegionType
@ MaxRegionType
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::setSector
virtual void setSector(int vsector)
Definition
TGCId.cxx:82
MuonTGC_Cabling::TGCId::getSideType
SideType getSideType() const
Definition
TGCId.h:125
MuonTGC_Cabling::TGCId::getId
int getId() const
Definition
TGCId.h:150
MuonTGC_Cabling::TGCId::SideType
SideType
Definition
TGCId.h:48
MuonTGC_Cabling::TGCId::SideType::MaxSideType
@ MaxSideType
Definition
TGCId.h:48
MuonTGC_Cabling::TGCId::setModuleType
virtual void setModuleType(ModuleType module)
Definition
TGCId.cxx:39
MuonTGC_Cabling
Definition
TGCCable.h:12
Generated on
for ATLAS Offline Software by
1.17.0