ATLAS Offline Software
Loading...
Searching...
No Matches
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
7namespace MuonTGC_Cabling {
8
9// Constructor
11 TGCId::RegionType vregion, int vsector, int vid,
12 int vsbLoc, int vslbAddr)
14 setSideType(vside);
15 setModuleType(vmodule);
16 setRegionType(vregion);
17 setSector(vsector);
18 setId(vid);
19 m_sbLoc = vsbLoc;
20 m_slbAddr = vslbAddr;
21}
22
27 (getModuleType() < TGCId::MaxModuleType + 1) && // add SLB SL
30 (getOctant() < 8) && (getId() >= 0)) {
31 return true;
32 }
33 return false;
34}
35
36} // namespace MuonTGC_Cabling
void setSideType(SideType side)
Definition TGCId.h:194
int getOctant() const
Definition TGCId.h:153
void setRegionType(RegionType region)
Definition TGCId.h:198
ModuleType getModuleType() const
Definition TGCId.h:137
void setId(int id)
Definition TGCId.h:206
RegionType getRegionType() const
Definition TGCId.h:146
SideType getSideType() const
Definition TGCId.h:134
int getId() const
Definition TGCId.h:162
void setModuleType(ModuleType module)
Definition TGCId.cxx:39
virtual void setSector(int v_sector)
TGCModuleId(ModuleIdType type=NoModuleIdType)
Definition TGCModuleId.h:27
TGCModuleSLB(TGCId::SideType side, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int sbLoc=-1, int slbAddr=-1)
virtual bool isValid() const