ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCChannelPPOut.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/TGCChannelPPOut.h
"
6
7
#include "
MuonTGC_Cabling/TGCModulePP.h
"
8
9
namespace
MuonTGC_Cabling
{
10
11
TGCChannelPPOut::TGCChannelPPOut
(
TGCId::SideType
vside,
12
TGCId::StationType
vstation,
13
TGCId::ModuleType
vmodule,
14
TGCId::RegionType
vregion,
int
vsector,
15
int
vid,
int
vblock,
int
vchannel)
16
:
TGCChannelId
(
TGCChannelId
::
ChannelIdType
::PPOut) {
17
setSideType
(vside);
18
setStation
(vstation);
19
setModuleType
(vmodule);
20
setRegionType
(vregion);
21
setSector
(vsector);
22
setId
(vid);
23
setBlock
(vblock);
24
setChannel
(vchannel);
25
}
26
27
std::unique_ptr<TGCModuleId>
TGCChannelPPOut::getModule
()
const
{
28
return
std::make_unique<TGCModulePP>(
getSideType
(),
getModuleType
(),
29
getRegionType
(),
getSector
(),
getId
());
30
}
31
32
bool
TGCChannelPPOut::isValid
()
const
{
33
if
((
getSideType
() <
TGCId::SideType::MaxSideType
) &&
34
(
getModuleType
() <
TGCId::ModuleType::MaxModuleType
) &&
35
(
getRegionType
() <
TGCId::RegionType::MaxRegionType
) &&
36
(
getOctant
() >= 0) && (
getOctant
() < 8) && (
getId
() >= 0) && (
getBlock
() >= 0) &&
37
(
getChannel
() >= 0)) {
38
return
true
;
39
}
40
return
false
;
41
}
42
43
}
// namespace MuonTGC_Cabling
TGCChannelPPOut.h
TGCModulePP.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::TGCChannelPPOut::isValid
virtual bool isValid() const override
Definition
TGCChannelPPOut.cxx:32
MuonTGC_Cabling::TGCChannelPPOut::TGCChannelPPOut
TGCChannelPPOut(TGCId::SideType side, TGCId::StationType station, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int block, int channel)
Definition
TGCChannelPPOut.cxx:11
MuonTGC_Cabling::TGCChannelPPOut::getModule
virtual std::unique_ptr< TGCModuleId > getModule() const override
Definition
TGCChannelPPOut.cxx:27
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::MaxModuleType
@ MaxModuleType
Definition
TGCId.h:54
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition
TGCId.h:194
MuonTGC_Cabling::TGCId::StationType
StationType
Definition
TGCId.h:49
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::setStation
void setStation(StationType vstation)
Definition
TGCId.cxx:78
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