ATLAS Offline Software
TGCChannelHPBIn.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::SignalType vsignal,
15  TGCId::RegionType vregion,
16  int vsector,
17  int vid,
18  int vblock,
19  int vchannel)
21 {
22  setSideType(vside);
23  setSignalType(vsignal);
24  setRegionType(vregion);
25  setSector(vsector);
26  setId(vid);
27  setBlock(vblock);
28  setChannel(vchannel);
29 }
30 
32 {
33  return (new TGCModuleHPB(getSideType(),
34  getSignalType(),
35  getRegionType(),
36  getSector(),
37  getId()));
38 }
39 
40 
41 bool TGCChannelHPBIn::isValid(void) const
42 {
49  (getOctant() >=0) &&
50  (getOctant() <8) &&
51  (getId() >=0) &&
52  (getBlock() >=0) &&
53  (getChannel() >=0) )
54  return true;
55  return false;
56 }
57 
60 const int TGCChannelHPBIn::s_slbInBlock = 3;
61 
63  return s_numberOfBlock;
64 }
65 
67  return s_channelInBlock;
68 }
69 
71  return s_slbInBlock;
72 }
73 
74 
75 } // end of namespace
TGCChannelHPBIn.h
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::getSignalType
SignalType getSignalType(void) const
Definition: TGCId.h:124
MuonTGC_Cabling::TGCChannelHPBIn::getModule
virtual TGCModuleId * getModule(void) const
Definition: TGCChannelHPBIn.cxx:31
MuonTGC_Cabling::TGCId::getRegionType
RegionType getRegionType(void) const
Definition: TGCId.h:126
MuonTGC_Cabling::TGCId::setSignalType
void setSignalType(SignalType signal)
Definition: TGCId.cxx:94
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition: TGCId.h:156
MuonTGC_Cabling::TGCChannelHPBIn::getChannelInBlock
static int getChannelInBlock(void)
Definition: TGCChannelHPBIn.cxx:66
MuonTGC_Cabling::TGCId::setSector
virtual void setSector(int vsector)
Definition: TGCId.cxx:122
MuonTGC_Cabling::TGCId::SignalType
SignalType
Definition: TGCId.h:49
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition: TGCId.h:46
MuonTGC_Cabling::TGCChannelHPBIn::TGCChannelHPBIn
TGCChannelHPBIn(void)
Definition: TGCChannelHPBIn.h:42
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.h:144
MuonTGC_Cabling::TGCChannelHPBIn::s_numberOfBlock
static const int s_numberOfBlock
Definition: TGCChannelHPBIn.h:32
MuonTGC_Cabling::TGCChannelId::getBlock
int getBlock() const
Definition: TGCChannelId.cxx:28
MuonTGC_Cabling::TGCChannelHPBIn::s_slbInBlock
static const int s_slbInBlock
Definition: TGCChannelHPBIn.h:34
MuonTGC_Cabling::TGCChannelHPBIn::s_channelInBlock
static const int s_channelInBlock
Definition: TGCChannelHPBIn.h:33
MuonTGC_Cabling::TGCModuleHPB
Definition: TGCModuleHPB.h:14
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::TGCChannelHPBIn::getNumberOfBlock
static int getNumberOfBlock(void)
Definition: TGCChannelHPBIn.cxx:62
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::TGCChannelHPBIn::getSlbInBlock
static int getSlbInBlock(void)
Definition: TGCChannelHPBIn.cxx:70
MuonTGC_Cabling::TGCId::MaxSignalType
@ MaxSignalType
Definition: TGCId.h:50
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::TGCChannelHPBIn::isValid
virtual bool isValid(void) const
Definition: TGCChannelHPBIn.cxx:41
MuonTGC_Cabling::TGCId::NoSideType
@ NoSideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCChannelId
Definition: TGCChannelId.h:15
MuonTGC_Cabling::TGCChannelId::setChannel
virtual void setChannel(int channel)
Definition: TGCChannelId.cxx:71
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition: TGCId.h:53
MuonTGC_Cabling::TGCModuleId
Definition: TGCModuleId.h:13
MuonTGC_Cabling::TGCId::NoSignalType
@ NoSignalType
Definition: TGCId.h:49
MuonTGC_Cabling::TGCId::SideType
SideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCChannelId::getChannel
int getChannel() const
Definition: TGCChannelId.cxx:29
TGCModuleHPB.h