ATLAS Offline Software
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCModuleSSW.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonTGC_Cabling/TGCModuleSSW.h
"
6
7
namespace
MuonTGC_Cabling
8
{
9
10
// Constructor
11
TGCModuleSSW::TGCModuleSSW
(
TGCIdBase::SideType
vside,
12
int
vreadoutSector,
13
int
vid)
14
:
TGCModuleId
(
TGCModuleId
::SSW)
15
{
16
setSideType
(vside);
17
setReadoutSector
(vreadoutSector);
18
setId
(vid);
19
}
20
21
bool
TGCModuleSSW::isValid
(
void
)
const
22
{
23
if
((
getSideType
() >
TGCIdBase::NoSideType
) &&
24
(
getSideType
() <
TGCIdBase::MaxSideType
) &&
25
(
getReadoutSector
() >=0) &&
26
(
getReadoutSector
() <
NumberOfReadoutSector
) &&
27
(
getId
() >=0) )
28
return
true
;
29
return
false
;
30
}
31
32
}
// end of namespace
MuonTGC_Cabling::TGCId::NumberOfReadoutSector
@ NumberOfReadoutSector
Definition:
TGCId.h:49
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition:
TGCId.cxx:210
TGCModuleSSW.h
MuonTGC_Cabling::TGCModuleSSW::isValid
virtual bool isValid(void) const
Definition:
TGCModuleSSW.cxx:21
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition:
TGCId.cxx:47
MuonTGC_Cabling::TGCModuleSSW::TGCModuleSSW
TGCModuleSSW(void)
Definition:
TGCModuleSSW.h:26
MuonTGC_Cabling
Definition:
TGCCable.h:13
TGCIdBase::getSideType
SideType getSideType(void) const
Definition:
TGCIdBase.cxx:37
MuonTGC_Cabling::TGCId::setReadoutSector
void setReadoutSector(int sector)
Definition:
TGCId.cxx:111
TGCIdBase::NoSideType
@ NoSideType
Definition:
TGCIdBase.h:31
MuonTGC_Cabling::TGCId::getReadoutSector
int getReadoutSector(void) const
Definition:
TGCId.h:56
TGCIdBase::SideType
SideType
Definition:
TGCIdBase.h:31
MuonTGC_Cabling::TGCModuleId
Definition:
TGCModuleId.h:14
TGCIdBase::MaxSideType
@ MaxSideType
Definition:
TGCIdBase.h:32
TGCIdBase::getId
int getId(void) const
Definition:
TGCIdBase.cxx:48
Generated on Thu Jul 4 2024 21:28:32 for ATLAS Offline Software by
1.8.18