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
10// Constructor
12 TGCId::ModuleType vmodule,
13 TGCId::RegionType vregion,
14 int vsector,
15 int vid,
16 int vsbLoc,
17 int vslbAddr)
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
29bool 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
void setSideType(SideType side)
Definition TGCId.h:143
int getOctant() const
Definition TGCId.h:128
void setRegionType(RegionType region)
Definition TGCId.h:147
ModuleType getModuleType(void) const
Definition TGCId.h:122
RegionType getRegionType(void) const
Definition TGCId.h:125
void setId(int id)
Definition TGCId.h:155
SideType getSideType(void) const
Definition TGCId.h:121
int getId() const
Definition TGCId.h:131
void setModuleType(ModuleType module)
Definition TGCId.cxx:39
virtual void setSector(int v_sector)
TGCModuleId(ModuleIdType type=NoModuleIdType)
Definition TGCModuleId.h:20
virtual bool isValid(void) const