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