ATLAS Offline Software
TGCModuleSSW.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  int vid)
13  : TGCModuleId(TGCModuleId::SSW)
14 {
15  setSideType(vside);
16  setReadoutSector(vreadoutSector);
17  setId(vid);
18 }
19 
20 bool TGCModuleSSW::isValid(void) const
21 {
24  (getReadoutSector() >=0) &&
25  (getReadoutSector() < N_RODS) &&
26  (getId() >=0) )
27  return true;
28  return false;
29 }
30 
31 } // 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
TGCModuleSSW.h
MuonTGC_Cabling::TGCModuleId::getReadoutSector
int getReadoutSector() const
Definition: TGCModuleId.h:36
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition: TGCId.h:46
MuonTGC_Cabling::TGCModuleSSW::isValid
virtual bool isValid(void) const
Definition: TGCModuleSSW.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
MuonTGC_Cabling::TGCModuleSSW::TGCModuleSSW
TGCModuleSSW(void)
Definition: TGCModuleSSW.h:26
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCId::getId
int getId() const
Definition: TGCId.h:132
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