ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCChannelASDOut.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/TGCChannelASDOut.h
"
6
7
namespace
MuonTGC_Cabling
{
8
9
// Constructor
10
TGCChannelASDOut::TGCChannelASDOut
(
TGCId::SideType
vside,
11
TGCId::SignalType
vsignal,
12
TGCId::RegionType
vregion,
int
vsector,
13
int
vlayer,
int
vchamber,
int
vchannel)
14
:
TGCChannelId
(
TGCChannelId
::
ChannelIdType
::ASDOut) {
15
setSideType
(vside);
16
setRegionType
(vregion);
17
setSector
(vsector);
18
setSignalAndLayer
(vsignal, vlayer);
19
setChamber
(vchamber);
20
setChannel
(vchannel);
21
}
22
23
TGCChannelASDOut::TGCChannelASDOut
(
TGCId::SideType
vside,
24
TGCId::SignalType
vsignal,
int
voctant,
25
int
vsectorModule,
int
vlayer,
int
vchamber,
26
int
vchannel)
27
:
TGCChannelId
(
TGCChannelId
::
ChannelIdType
::ASDOut) {
28
setSideType
(vside);
29
setSignalAndLayer
(vsignal, vlayer);
// SignalType as well as Layer (to define station,Module)
30
setOctant
(voctant);
31
setSectorModule
(vsectorModule);
// after setOctant() method
32
setChamber
(vchamber);
33
setChannel
(vchannel);
34
}
35
36
bool
TGCChannelASDOut::isValid
()
const
{
37
if
((
getSideType
() <
TGCId::SideType::MaxSideType
) &&
38
(
getSignalType
() <
TGCId::SignalType::MaxSignalType
) &&
39
(
getRegionType
() <
TGCId::RegionType::MaxRegionType
) &&
40
(
getOctant
() >= 0) && (
getOctant
() < 8) &&
41
(
getLayer
() >= 0) && (
getChamber
() >= 0) &&
42
(
getChannel
() >= 0)) {
43
return
true
;
44
}
45
return
false
;
46
}
47
48
}
// namespace MuonTGC_Cabling
TGCChannelASDOut.h
MuonTGC_Cabling::TGCChannelASDOut::isValid
virtual bool isValid() const override
Definition
TGCChannelASDOut.cxx:36
MuonTGC_Cabling::TGCChannelASDOut::TGCChannelASDOut
TGCChannelASDOut()=delete
MuonTGC_Cabling::TGCChannelId::setSignalAndLayer
void setSignalAndLayer(TGCId::SignalType signal, int layer)
Definition
TGCChannelId.cxx:85
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::getLayer
int getLayer() const
Definition
TGCChannelId.cxx:29
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::setSectorModule
void setSectorModule(int sectorModule)
Definition
TGCId.cxx:125
MuonTGC_Cabling::TGCId::setOctant
virtual void setOctant(int voctant)
Definition
TGCId.cxx:95
MuonTGC_Cabling::TGCId::getChamber
int getChamber() const
Definition
TGCId.h:147
MuonTGC_Cabling::TGCId::SignalType
SignalType
Definition
TGCId.h:58
MuonTGC_Cabling::TGCId::SignalType::MaxSignalType
@ MaxSignalType
Definition
TGCId.h:58
MuonTGC_Cabling::TGCId::getRegionType
RegionType getRegionType() const
Definition
TGCId.h:137
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::getSignalType
SignalType getSignalType() const
Definition
TGCId.h:134
MuonTGC_Cabling::TGCId::SideType
SideType
Definition
TGCId.h:48
MuonTGC_Cabling::TGCId::SideType::MaxSideType
@ MaxSideType
Definition
TGCId.h:48
MuonTGC_Cabling::TGCId::setChamber
virtual void setChamber(int chamber)
Definition
TGCId.h:190
MuonTGC_Cabling
Definition
TGCCable.h:12
Generated on
for ATLAS Offline Software by
1.17.0