ATLAS Offline Software
TGCChannelASDOut.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 
7 namespace MuonTGC_Cabling
8 {
9 
10 // Constructor
12  TGCIdBase::SignalType vsignal,
13  TGCIdBase::RegionType vregion,
14  int vsector,
15  int vlayer,
16  int vchamber,
17  int vchannel)
18  : TGCChannelId(TGCIdBase::ASDOut)
19 {
20  setSideType(vside);
21  setSignalType(vsignal);
22  setRegionType(vregion);
23  setSector(vsector);
24  setLayer(vlayer);
25  setChamber(vchamber);
26  setChannel(vchannel);
27 }
28 
30  TGCIdBase::SignalType vsignal,
31  int voctant,
32  int vsectorModule,
33  int vlayer,
34  int vchamber,
35  int vchannel)
36  : TGCChannelId(TGCIdBase::ASDOut)
37 {
38  setSideType(vside);
39  setSignalType(vsignal);
40  setOctant(voctant);
41  setSectorModule(vsectorModule);// after setOctant() method
42  setLayer(vlayer);
43  setChamber(vchamber);
44  setChannel(vchannel);
45 }
46 
47 bool TGCChannelASDOut::isValid(void) const
48 {
55  (getOctant() >=0) &&
56  (getOctant() <8) &&
57  (getLayer() >=0) &&
58  (getChamber() >=0) &&
59  (getChannel() >=0) )
60  return true;
61  return false;
62 }
63 
64 } // end of namespace
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
TGCChannelASDOut.h
MuonTGC_Cabling::TGCId::setSignalType
void setSignalType(SignalType signal)
Definition: TGCId.cxx:79
TGCIdBase::MaxRegionType
@ MaxRegionType
Definition: TGCIdBase.h:40
MuonTGC_Cabling::TGCId::setSectorModule
void setSectorModule(int sectorModule)
Definition: TGCId.cxx:155
MuonTGC_Cabling::TGCId::setChamber
void setChamber(int chamber)
Definition: TGCId.cxx:206
TGCIdBase::getChamber
int getChamber(void) const
Definition: TGCIdBase.cxx:47
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.cxx:47
MuonTGC_Cabling::TGCChannelASDOut::TGCChannelASDOut
TGCChannelASDOut(void)
Definition: TGCChannelASDOut.h:38
MuonTGC_Cabling::TGCId::setSector
virtual void setSector(int sector)
Definition: TGCId.cxx:115
TGCIdBase::getLayer
int getLayer(void) const
Definition: TGCIdBase.cxx:46
MuonTGC_Cabling::TGCChannelASDOut::isValid
virtual bool isValid(void) const
Definition: TGCChannelASDOut.cxx:47
MuonTGC_Cabling
Definition: TGCCable.h:13
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
TGCIdBase::NoSignalType
@ NoSignalType
Definition: TGCIdBase.h:35
MuonTGC_Cabling::TGCId::setOctant
void setOctant(int octant)
Definition: TGCId.cxx:131
TGCIdBase::MaxSignalType
@ MaxSignalType
Definition: TGCIdBase.h:36
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
TGCIdBase::MaxSideType
@ MaxSideType
Definition: TGCIdBase.h:32
MuonTGC_Cabling::TGCId::setChannel
virtual void setChannel(int channel)
Definition: TGCId.cxx:218
MuonTGC_Cabling::TGCId::setLayer
void setLayer(int layer)
Definition: TGCId.cxx:184