ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCChannelHPBIn.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/TGCChannelHPBIn.h
"
6
7
#include "
MuonTGC_Cabling/TGCModuleHPB.h
"
8
9
namespace
MuonTGC_Cabling
{
10
11
// Constructor
12
TGCChannelHPBIn::TGCChannelHPBIn
(
TGCId::SideType
vside,
13
TGCId::SignalType
vsignal,
14
TGCId::RegionType
vregion,
int
vsector,
15
int
vid,
int
vblock,
int
vchannel)
16
:
TGCChannelId
(
TGCChannelId
::
ChannelIdType
::HPBIn) {
17
setSideType
(vside);
18
setSignalType
(vsignal);
19
setRegionType
(vregion);
20
setSector
(vsector);
21
setId
(vid);
22
setBlock
(vblock);
23
setChannel
(vchannel);
24
}
25
26
std::unique_ptr<TGCModuleId>
TGCChannelHPBIn::getModule
()
const
{
27
return
std::make_unique<TGCModuleHPB>(
28
getSideType
(),
getSignalType
(),
getRegionType
(),
getSector
(),
getId
());
29
}
30
31
bool
TGCChannelHPBIn::isValid
()
const
{
32
if
((
getSideType
() <
TGCId::SideType::MaxSideType
) &&
33
(
getSignalType
() <
TGCId::SignalType::MaxSignalType
) &&
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
TGCChannelHPBIn::s_numberOfBlock
= 2;
44
const
int
TGCChannelHPBIn::s_channelInBlock
= 12;
45
const
int
TGCChannelHPBIn::s_slbInBlock
= 3;
46
47
int
TGCChannelHPBIn::getNumberOfBlock
() {
48
return
s_numberOfBlock
;
49
}
50
51
int
TGCChannelHPBIn::getChannelInBlock
() {
52
return
s_channelInBlock
;
53
}
54
55
int
TGCChannelHPBIn::getSlbInBlock
() {
56
return
s_slbInBlock
;
57
}
58
59
}
// namespace MuonTGC_Cabling
TGCChannelHPBIn.h
TGCModuleHPB.h
MuonTGC_Cabling::TGCChannelHPBIn::s_slbInBlock
static const int s_slbInBlock
Definition
TGCChannelHPBIn.h:28
MuonTGC_Cabling::TGCChannelHPBIn::TGCChannelHPBIn
TGCChannelHPBIn()
Definition
TGCChannelHPBIn.h:36
MuonTGC_Cabling::TGCChannelHPBIn::getModule
virtual std::unique_ptr< TGCModuleId > getModule() const override
Definition
TGCChannelHPBIn.cxx:26
MuonTGC_Cabling::TGCChannelHPBIn::getChannelInBlock
static int getChannelInBlock()
Definition
TGCChannelHPBIn.cxx:51
MuonTGC_Cabling::TGCChannelHPBIn::s_channelInBlock
static const int s_channelInBlock
Definition
TGCChannelHPBIn.h:27
MuonTGC_Cabling::TGCChannelHPBIn::getSlbInBlock
static int getSlbInBlock()
Definition
TGCChannelHPBIn.cxx:55
MuonTGC_Cabling::TGCChannelHPBIn::isValid
virtual bool isValid() const override
Definition
TGCChannelHPBIn.cxx:31
MuonTGC_Cabling::TGCChannelHPBIn::getNumberOfBlock
static int getNumberOfBlock()
Definition
TGCChannelHPBIn.cxx:47
MuonTGC_Cabling::TGCChannelHPBIn::s_numberOfBlock
static const int s_numberOfBlock
Definition
TGCChannelHPBIn.h:26
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::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::SignalType
SignalType
Definition
TGCId.h:58
MuonTGC_Cabling::TGCId::SignalType::MaxSignalType
@ MaxSignalType
Definition
TGCId.h:58
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::setSignalType
void setSignalType(SignalType signal)
Definition
TGCId.cxx:61
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::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
Definition
TGCCable.h:12
Generated on
for ATLAS Offline Software by
1.17.0