ATLAS Offline Software
TGCChannelPPIn.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 
8 
9 namespace MuonTGC_Cabling
10 {
11 
12 // Constructor
14  TGCIdBase::ModuleType vmodule,
15  TGCIdBase::RegionType vregion,
16  int vsector,
17  int vid,
18  int vblock,
19  int vchannel)
20  : TGCChannelId(TGCIdBase::PPIn)
21 {
22  setSideType(vside);
23  setModuleType(vmodule);
24  setRegionType(vregion);
25  setSector(vsector);
26  setId(vid);
27  setBlock(vblock);
28  setChannel(vchannel);
29 }
30 
32 {
33  return (new TGCModulePP(getSideType(),
34  getModuleType(),
35  getRegionType(),
36  getSector(),
37  getId()));
38 }
39 
40 bool TGCChannelPPIn::isValid(void) const
41 {
48  (getOctant() >=0) &&
49  (getOctant() <8) &&
50  (getId() >=0) &&
51  (getBlock() >=0) &&
52  (getChannel() >=0) )
53  return true;
54  return false;
55 }
56 
57 
58 } // end of namespace
MuonTGC_Cabling::TGCModulePP
Definition: TGCModulePP.h:14
MuonTGC_Cabling::TGCId::setRegionType
void setRegionType(RegionType region)
Definition: TGCId.cxx:99
TGCIdBase::getRegionType
RegionType getRegionType(void) const
Definition: TGCIdBase.cxx:41
TGCIdBase::NoRegionType
@ NoRegionType
Definition: TGCIdBase.h:39
TGCIdBase::getChannel
virtual int getChannel(void) const
Definition: TGCIdBase.cxx:50
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition: TGCId.cxx:210
TGCIdBase::MaxRegionType
@ MaxRegionType
Definition: TGCIdBase.h:40
TGCIdBase::getBlock
int getBlock(void) const
Definition: TGCIdBase.cxx:49
TGCIdBase::MaxModuleType
@ MaxModuleType
Definition: TGCIdBase.h:34
MuonTGC_Cabling::TGCId::setModuleType
void setModuleType(ModuleType module)
Definition: TGCId.cxx:51
MuonTGC_Cabling::TGCChannelPPIn::TGCChannelPPIn
TGCChannelPPIn(void)
Definition: TGCChannelPPIn.h:32
MuonTGC_Cabling::TGCId::setBlock
void setBlock(int block)
Definition: TGCId.cxx:214
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.cxx:47
MuonTGC_Cabling::TGCId::setSector
virtual void setSector(int sector)
Definition: TGCId.cxx:115
TGCModulePP.h
TGCIdBase::getModuleType
ModuleType getModuleType(void) const
Definition: TGCIdBase.cxx:38
TGCIdBase::getSector
virtual int getSector(void) const
Definition: TGCIdBase.cxx:45
TGCIdBase::NoModuleType
@ NoModuleType
Definition: TGCIdBase.h:33
TGCIdBase::ModuleType
ModuleType
Definition: TGCIdBase.h:33
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCChannelPPIn::getModule
virtual TGCModuleId * getModule(void) const
Definition: TGCChannelPPIn.cxx:31
TGCIdBase::getSideType
SideType getSideType(void) const
Definition: TGCIdBase.cxx:37
TGCIdBase::RegionType
RegionType
Definition: TGCIdBase.h:39
TGCIdBase
Definition: TGCIdBase.h:18
MuonTGC_Cabling::TGCChannelId
Definition: TGCChannelId.h:15
TGCIdBase::NoSideType
@ NoSideType
Definition: TGCIdBase.h:31
TGCIdBase::getOctant
int getOctant(void) const
Definition: TGCIdBase.cxx:44
TGCIdBase::SideType
SideType
Definition: TGCIdBase.h:31
TGCChannelPPIn.h
MuonTGC_Cabling::TGCModuleId
Definition: TGCModuleId.h:14
TGCIdBase::MaxSideType
@ MaxSideType
Definition: TGCIdBase.h:32
TGCIdBase::getId
int getId(void) const
Definition: TGCIdBase.cxx:48
MuonTGC_Cabling::TGCId::setChannel
virtual void setChannel(int channel)
Definition: TGCId.cxx:218
MuonTGC_Cabling::TGCChannelPPIn::isValid
virtual bool isValid(void) const
Definition: TGCChannelPPIn.cxx:40