ATLAS Offline Software
TGCChannelHPBIn.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
9 namespace MuonTGC_Cabling
10 {
11 
12 // Constructor
14  TGCIdBase::SignalType vsignal,
15  TGCIdBase::RegionType vregion,
16  int vsector,
17  int vid,
18  int vblock,
19  int vchannel)
20  : TGCChannelId(TGCIdBase::HPBIn)
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.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::TGCChannelHPBIn::getModule
virtual TGCModuleId * getModule(void) const
Definition: TGCChannelHPBIn.cxx:31
MuonTGC_Cabling::TGCId::setSignalType
void setSignalType(SignalType signal)
Definition: TGCId.cxx:79
MuonTGC_Cabling::TGCId::setId
void setId(int id)
Definition: TGCId.cxx:210
TGCIdBase::MaxRegionType
@ MaxRegionType
Definition: TGCIdBase.h:40
MuonTGC_Cabling::TGCChannelHPBIn::getChannelInBlock
static int getChannelInBlock(void)
Definition: TGCChannelHPBIn.cxx:66
TGCIdBase::getBlock
int getBlock(void) const
Definition: TGCIdBase.cxx:49
MuonTGC_Cabling::TGCId::setBlock
void setBlock(int block)
Definition: TGCId.cxx:214
MuonTGC_Cabling::TGCChannelHPBIn::TGCChannelHPBIn
TGCChannelHPBIn(void)
Definition: TGCChannelHPBIn.h:42
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.cxx:47
MuonTGC_Cabling::TGCChannelHPBIn::s_numberOfBlock
static const int s_numberOfBlock
Definition: TGCChannelHPBIn.h:32
MuonTGC_Cabling::TGCId::setSector
virtual void setSector(int sector)
Definition: TGCId.cxx:115
MuonTGC_Cabling::TGCChannelHPBIn::s_slbInBlock
static const int s_slbInBlock
Definition: TGCChannelHPBIn.h:34
TGCIdBase::getSector
virtual int getSector(void) const
Definition: TGCIdBase.cxx:45
MuonTGC_Cabling::TGCChannelHPBIn::s_channelInBlock
static const int s_channelInBlock
Definition: TGCChannelHPBIn.h:33
MuonTGC_Cabling::TGCModuleHPB
Definition: TGCModuleHPB.h:14
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCChannelHPBIn::getNumberOfBlock
static int getNumberOfBlock(void)
Definition: TGCChannelHPBIn.cxx:62
TGCIdBase::getSideType
SideType getSideType(void) const
Definition: TGCIdBase.cxx:37
TGCIdBase::getSignalType
SignalType getSignalType(void) const
Definition: TGCIdBase.cxx:39
TGCIdBase::RegionType
RegionType
Definition: TGCIdBase.h:39
TGCIdBase
Definition: TGCIdBase.h:18
MuonTGC_Cabling::TGCChannelHPBIn::getSlbInBlock
static int getSlbInBlock(void)
Definition: TGCChannelHPBIn.cxx:70
TGCIdBase::NoSignalType
@ NoSignalType
Definition: TGCIdBase.h:35
TGCIdBase::MaxSignalType
@ MaxSignalType
Definition: TGCIdBase.h:36
MuonTGC_Cabling::TGCChannelHPBIn::isValid
virtual bool isValid(void) const
Definition: TGCChannelHPBIn.cxx:41
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
TGCIdBase::SignalType
SignalType
Definition: TGCIdBase.h:35
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
TGCModuleHPB.h