ATLAS Offline Software
TGCModuleSLB.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace MuonTGC_Cabling
8 {
9 
10 // Constructor
12  TGCId::ModuleType vmodule,
13  TGCId::RegionType vregion,
14  int vsector,
15  int vid,
16  int vsbLoc,
17  int vslbAddr)
18  : TGCModuleId(TGCModuleId::SLB)
19 {
20  setSideType(vside);
21  setModuleType(vmodule);
22  setRegionType(vregion);
23  setSector(vsector);
24  setId(vid);
25  m_sbLoc = vsbLoc;
26  m_slbAddr = vslbAddr;
27 }
28 
29 bool TGCModuleSLB::isValid(void) const
30 {
34  (getModuleType()<TGCId::MaxModuleType + 1 ) && // add SLB SL
37  (getOctant() >=0) &&
38  (getOctant() <8) &&
39  (getId() >=0) )
40  return true;
41  return false;
42 }
43 
44 } // end of namespace
MuonTGC_Cabling::TGCId::MaxModuleType
@ MaxModuleType
Definition: TGCId.h:48
MuonTGC_Cabling::TGCId::setRegionType
void setRegionType(RegionType region)
Definition: TGCId.h:148
MuonTGC_Cabling::TGCModuleSLB::m_slbAddr
int m_slbAddr
Definition: TGCModuleSLB.h:38
MuonTGC_Cabling::TGCId::getSideType
SideType getSideType(void) const
Definition: TGCId.h:122
MuonTGC_Cabling::TGCId::getRegionType
RegionType getRegionType(void) const
Definition: TGCId.h:126
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition: TGCId.h:156
MuonTGC_Cabling::TGCId::setModuleType
void setModuleType(ModuleType module)
Definition: TGCId.cxx:66
MuonTGC_Cabling::TGCId::ModuleType
ModuleType
Definition: TGCId.h:47
MuonTGC_Cabling::TGCId::getModuleType
ModuleType getModuleType(void) const
Definition: TGCId.h:123
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition: TGCId.h:46
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.h:144
MuonTGC_Cabling::TGCId::getOctant
int getOctant() const
Definition: TGCId.h:129
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCId::getId
int getId() const
Definition: TGCId.h:132
MuonTGC_Cabling::TGCId::MaxRegionType
@ MaxRegionType
Definition: TGCId.h:54
MuonTGC_Cabling::TGCId::NoRegionType
@ NoRegionType
Definition: TGCId.h:53
MuonTGC_Cabling::TGCId::NoModuleType
@ NoModuleType
Definition: TGCId.h:47
MuonTGC_Cabling::TGCModuleId::setSector
virtual void setSector(int v_sector)
Definition: TGCModuleId.cxx:23
MuonTGC_Cabling::TGCId::NoSideType
@ NoSideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCModuleSLB::TGCModuleSLB
TGCModuleSLB(void)
Definition: TGCModuleSLB.h:34
MuonTGC_Cabling::TGCModuleSLB::isValid
virtual bool isValid(void) const
Definition: TGCModuleSLB.cxx:29
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition: TGCId.h:53
MuonTGC_Cabling::TGCModuleId
Definition: TGCModuleId.h:13
MuonTGC_Cabling::TGCId::SideType
SideType
Definition: TGCId.h:45
TGCModuleSLB.h
MuonTGC_Cabling::TGCModuleSLB::m_sbLoc
int m_sbLoc
Definition: TGCModuleSLB.h:37