ATLAS Offline Software
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCModuleROD.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/TGCModuleROD.h
"
6
7
namespace
MuonTGC_Cabling
8
{
9
10
// Constructor
11
TGCModuleROD::TGCModuleROD
(
TGCIdBase::SideType
vside,
12
int
vreadoutSector)
13
:
TGCModuleId
(
TGCModuleId
::ROD)
14
{
15
setSideType
(vside);
16
setReadoutSector
(vreadoutSector);
17
int
rodId = vreadoutSector+1;
18
setId
(rodId);
19
}
20
21
bool
TGCModuleROD::isValid
(
void
)
const
22
{
23
if
((
getSideType
() >
TGCIdBase::NoSideType
) &&
24
(
getSideType
() <
TGCIdBase::MaxSideType
) &&
25
(
getReadoutSector
() >=0) &&
26
(
getReadoutSector
() <
NumberOfReadoutSector
) )
27
return
true
;
28
return
false
;
29
}
30
31
}
// end of namespace
MuonTGC_Cabling::TGCId::NumberOfReadoutSector
@ NumberOfReadoutSector
Definition:
TGCId.h:49
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition:
TGCId.cxx:210
TGCModuleROD.h
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition:
TGCId.cxx:47
MuonTGC_Cabling::TGCModuleROD::TGCModuleROD
TGCModuleROD(void)
Definition:
TGCModuleROD.h:25
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
MuonTGC_Cabling::TGCModuleROD::isValid
virtual bool isValid(void) const
Definition:
TGCModuleROD.cxx:21
Generated on Thu Jul 4 2024 21:28:32 for ATLAS Offline Software by
1.8.18