ATLAS Offline Software
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCChannelId.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonTGC_Cabling/TGCChannelId.h
"
6
7
namespace
MuonTGC_Cabling
{
8
9
bool
TGCChannelId::operator ==
(
const
TGCChannelId
&
channelId
)
const
10
{
11
if
((this->
getChannelIdType
()==channelId.
getChannelIdType
())&&
12
(this->getSideType() ==
channelId
.getSideType()) &&
13
(this->getRegionType() ==
channelId
.getRegionType()) &&
14
(this->getSignalType() ==
channelId
.getSignalType()) &&
15
(this->getModuleType() ==
channelId
.getModuleType()) &&
16
(this->getSector() ==
channelId
.getSector()) &&
17
(this->getLayer() ==
channelId
.getLayer()) &&
18
(this->getChamber() ==
channelId
.getChamber()) &&
19
(this->getId() ==
channelId
.getId()) &&
20
(this->getBlock() ==
channelId
.getBlock()) &&
21
(this->getChannel() ==
channelId
.getChannel()) )
22
return
true
;
23
return
false
;
24
}
25
26
TGCChannelId::ChannelIdType
TGCChannelId::getChannelIdType
()
const
{
return
m_channelType
; }
27
int
TGCChannelId::getLayer
()
const
{
return
m_layer
; }
28
int
TGCChannelId::getBlock
()
const
{
return
m_block
; }
29
int
TGCChannelId::getChannel
()
const
{
return
m_channel
; }
30
31
int
TGCChannelId::getGasGap
()
const
{
32
if
(
getLayer
()==0||
getLayer
()==3||
getLayer
()==5||
getLayer
()==7)
33
return
1;
34
if
(
getLayer
()==1||
getLayer
()==4||
getLayer
()==6||
getLayer
()==8)
35
return
2;
36
if
(
getLayer
()==2)
37
return
3;
38
return
-1;
39
}
40
41
void
TGCChannelId::setChannelIdType
(
ChannelIdType
idtype) {
42
m_channelType
= idtype;
43
}
44
45
void
TGCChannelId::setLayer
(
int
v_layer
) {
46
m_layer
=
v_layer
;
47
if
(
m_layer
>=0&&
m_layer
<=2){
48
setMultipletType
(
Triplet
);
49
setStation
(0);
50
}
51
if
(
m_layer
>=3&&
m_layer
<=4){
52
setMultipletType
(
Doublet
);
53
setStation
(1);
54
}
55
if
(
m_layer
>=5&&
m_layer
<=6){
56
setMultipletType
(
Doublet
);
57
setStation
(2);
58
}
59
if
(
m_layer
>=7&&
m_layer
<=8){
60
setMultipletType
(
Inner
);
61
setStation
(3);
62
if
(
m_sector
!=-1)
63
m_octant
=
m_sector
/3;
64
}
65
}
66
67
void
TGCChannelId::setBlock
(
int
block) {
68
m_block
= block;
69
}
70
71
void
TGCChannelId::setChannel
(
int
channel
) {
72
m_channel
=
channel
;
73
}
74
75
76
}
//end of namespace
MuonTGC_Cabling::TGCChannelId::setLayer
void setLayer(int layer)
Definition:
TGCChannelId.cxx:45
plotting.yearwise_efficiency.channel
channel
Definition:
yearwise_efficiency.py:24
MuonTGC_Cabling::TGCChannelId::m_channelType
ChannelIdType m_channelType
Definition:
TGCChannelId.h:48
MuonTGC_Cabling::TGCChannelId::getGasGap
virtual int getGasGap() const
Definition:
TGCChannelId.cxx:31
MuonTGC_Cabling::TGCId::setMultipletType
void setMultipletType(MultipletType multiplet)
Definition:
TGCId.cxx:104
MuonTGC_Cabling::TGCChannelId::m_block
int m_block
Definition:
TGCChannelId.h:50
MuonTGC_Cabling::TGCChannelId::getChannelIdType
ChannelIdType getChannelIdType() const
Definition:
TGCChannelId.cxx:26
MuonTGC_Cabling::TGCChannelId::m_channel
int m_channel
Definition:
TGCChannelId.h:51
MuonTGC_Cabling::TGCChannelId::getBlock
int getBlock() const
Definition:
TGCChannelId.cxx:28
TGCChannelId.h
MuonTGC_Cabling::TGCChannelId::operator==
virtual bool operator==(const TGCChannelId &channelId) const
Definition:
TGCChannelId.cxx:9
MuonTGC_Cabling::TGCId::Doublet
@ Doublet
Definition:
TGCId.h:51
MuonTGC_Cabling::TGCId::m_sector
int m_sector
Definition:
TGCId.h:113
MuonTGC_Cabling
Definition:
TGCCable.h:13
MuonTGC_Cabling::TGCId::setStation
virtual void setStation(int vstation)
Definition:
TGCId.cxx:114
MuonTGC_Cabling::TGCChannelId::setChannelIdType
void setChannelIdType(ChannelIdType type)
Definition:
TGCChannelId.cxx:41
MuonTGC_Cabling::TGCId::Inner
@ Inner
Definition:
TGCId.h:51
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:122
MuonTGC_Cabling::TGCChannelId::ChannelIdType
ChannelIdType
Definition:
TGCChannelId.h:17
MuonTGC_Cabling::TGCChannelId::setBlock
virtual void setBlock(int block)
Definition:
TGCChannelId.cxx:67
MuonTGC_Cabling::TGCChannelId
Definition:
TGCChannelId.h:15
MuonTGC_Cabling::TGCChannelId::getLayer
int getLayer() const
Definition:
TGCChannelId.cxx:27
MuonTGC_Cabling::TGCId::Triplet
@ Triplet
Definition:
TGCId.h:51
MuonTGC_Cabling::TGCChannelId::setChannel
virtual void setChannel(int channel)
Definition:
TGCChannelId.cxx:71
MuonTGC_Cabling::TGCId::m_octant
int m_octant
Definition:
TGCId.h:112
MuonTGC_Cabling::TGCChannelId::getChannel
int getChannel() const
Definition:
TGCChannelId.cxx:29
MuonTGC_Cabling::TGCChannelId::m_layer
int m_layer
Definition:
TGCChannelId.h:49
v_layer
std::vector< short > v_layer
Definition:
LArNoiseBursts.cxx:70
Generated on Sun Dec 22 2024 21:19:20 for ATLAS Offline Software by
1.8.18