ATLAS Offline Software
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
src
TGCModuleSROD.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/TGCModuleSROD.h
"
6
7
namespace
MuonTGC_Cabling
{
8
9
// Constructor
10
TGCModuleSROD::TGCModuleSROD
(
TGCId::SideType
vside,
11
int
vreadoutSector)
12
:
TGCModuleId
(
TGCModuleId
::SROD)
13
{
14
setSideType
(vside);
15
setReadoutSector
(vreadoutSector);
16
int
srodId = vreadoutSector+1;
17
setId
(srodId);
18
}
19
20
bool
TGCModuleSROD::isValid
(
void
)
const
21
{
22
return
(
getSideType
() >
TGCId::NoSideType
) &&
23
(
getSideType
() <
TGCId::MaxSideType
) &&
24
(
getReadoutSector
() >=0) &&
25
(
getReadoutSector
() <
N_RODS
);
26
}
27
28
}
// 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
MuonTGC_Cabling::TGCModuleId::getReadoutSector
int getReadoutSector() const
Definition:
TGCModuleId.h:36
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition:
TGCId.h:46
MuonTGC_Cabling::TGCModuleSROD::isValid
virtual bool isValid() const
Definition:
TGCModuleSROD.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
TGCModuleSROD.h
MuonTGC_Cabling
Definition:
TGCCable.h:13
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
MuonTGC_Cabling::TGCModuleSROD::TGCModuleSROD
TGCModuleSROD(TGCId::SideType side, int readoutSector)
Definition:
TGCModuleSROD.cxx:10
Generated on Sun Dec 22 2024 21:19:25 for ATLAS Offline Software by
1.8.18