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