ATLAS Offline Software
TGCChannelPPOut.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 
8 
9 namespace MuonTGC_Cabling
10 {
11 
12 // Constructor
14  TGCId::ModuleType vmodule,
15  TGCId::RegionType vregion,
16  int vsector,
17  int vid,
18  int vblock,
19  int vchannel)
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 TGCChannelPPOut::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 } // end of namespace
MuonTGC_Cabling::TGCModulePP
Definition: TGCModulePP.h:14
MuonTGC_Cabling::TGCId::MaxModuleType
@ MaxModuleType
Definition: TGCId.h:48
MuonTGC_Cabling::TGCId::setRegionType
void setRegionType(RegionType region)
Definition: TGCId.h:148
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::setSector
virtual void setSector(int vsector)
Definition: TGCId.cxx:122
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
TGCChannelPPOut.h
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.h:144
TGCModulePP.h
MuonTGC_Cabling::TGCChannelId::getBlock
int getBlock() const
Definition: TGCChannelId.cxx:28
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::TGCChannelPPOut::isValid
virtual bool isValid(void) const
Definition: TGCChannelPPOut.cxx:40
MuonTGC_Cabling::TGCChannelId::ChannelIdType
ChannelIdType
Definition: TGCChannelId.h:17
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::TGCChannelId::setBlock
virtual void setBlock(int block)
Definition: TGCChannelId.cxx:67
MuonTGC_Cabling::TGCId::getSector
virtual int getSector() const
Definition: TGCId.h:130
MuonTGC_Cabling::TGCId::NoSideType
@ NoSideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCChannelId
Definition: TGCChannelId.h:15
MuonTGC_Cabling::TGCChannelPPOut::getModule
virtual TGCModuleId * getModule(void) const
Definition: TGCChannelPPOut.cxx:31
MuonTGC_Cabling::TGCChannelId::setChannel
virtual void setChannel(int channel)
Definition: TGCChannelId.cxx:71
MuonTGC_Cabling::TGCChannelPPOut::TGCChannelPPOut
TGCChannelPPOut(void)
Definition: TGCChannelPPOut.h:32
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
MuonTGC_Cabling::TGCChannelId::getChannel
int getChannel() const
Definition: TGCChannelId.cxx:29