ATLAS Offline Software
TGCModuleROD.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace MuonTGC_Cabling {
8 
9 // Constructor
11  int vreadoutSector)
12  : TGCModuleId(TGCModuleId::ROD)
13 {
14  setSideType(vside);
15  setReadoutSector(vreadoutSector);
16  int rodId = vreadoutSector+1;
17  setId(rodId);
18 }
19 
20 bool TGCModuleROD::isValid(void) const
21 {
24  (getReadoutSector() >=0) &&
25  (getReadoutSector() < N_RODS) )
26  return true;
27  return false;
28 }
29 
30 } // 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
TGCModuleROD.h
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition: TGCId.h:46
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::TGCModuleROD::TGCModuleROD
TGCModuleROD(void)
Definition: TGCModuleROD.h:25
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::TGCModuleROD::isValid
virtual bool isValid(void) const
Definition: TGCModuleROD.cxx:20