ATLAS Offline Software
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCModuleSSW.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/TGCModuleSSW.h
"
6
7
namespace
MuonTGC_Cabling
{
8
9
// Constructor
10
TGCModuleSSW::TGCModuleSSW
(
TGCId::SideType
vside,
11
int
vreadoutSector,
12
int
vid)
13
:
TGCModuleId
(
TGCModuleId
::SSW)
14
{
15
setSideType
(vside);
16
setReadoutSector
(vreadoutSector);
17
setId
(vid);
18
}
19
20
bool
TGCModuleSSW::isValid
(
void
)
const
21
{
22
if
((
getSideType
() >
TGCId::NoSideType
) &&
23
(
getSideType
() <
TGCId::MaxSideType
) &&
24
(
getReadoutSector
() >=0) &&
25
(
getReadoutSector
() <
N_RODS
) &&
26
(
getId
() >=0) )
27
return
true
;
28
return
false
;
29
}
30
31
}
// end of namespace
MuonTGC_Cabling::TGCId::getSideType
SideType getSideType(void) const
Definition:
TGCId.h:122
MuonTGC_Cabling::TGCId::N_RODS
static constexpr int N_RODS
Definition:
TGCId.h:43
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition:
TGCId.h:156
TGCModuleSSW.h
MuonTGC_Cabling::TGCModuleId::getReadoutSector
int getReadoutSector() const
Definition:
TGCModuleId.h:36
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition:
TGCId.h:46
MuonTGC_Cabling::TGCModuleSSW::isValid
virtual bool isValid(void) const
Definition:
TGCModuleSSW.cxx:20
MuonTGC_Cabling::TGCModuleId::setReadoutSector
void setReadoutSector(int sector)
Definition:
TGCModuleId.h:37
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition:
TGCId.h:144
MuonTGC_Cabling::TGCModuleSSW::TGCModuleSSW
TGCModuleSSW(void)
Definition:
TGCModuleSSW.h:26
MuonTGC_Cabling
Definition:
TGCCable.h:13
MuonTGC_Cabling::TGCId::getId
int getId() const
Definition:
TGCId.h:132
MuonTGC_Cabling::TGCId::NoSideType
@ NoSideType
Definition:
TGCId.h:45
MuonTGC_Cabling::TGCModuleId
Definition:
TGCModuleId.h:13
MuonTGC_Cabling::TGCId::SideType
SideType
Definition:
TGCId.h:45
Generated on Sun Dec 22 2024 21:19:25 for ATLAS Offline Software by
1.8.18