ATLAS Offline Software
TGCChannelASDOut.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 #include <iostream>
7 namespace MuonTGC_Cabling
8 {
9 
10 // Constructor
12  TGCId::SignalType vsignal,
13  TGCId::RegionType vregion,
14  int vsector,
15  int vlayer,
16  int vchamber,
17  int vchannel)
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  TGCId::SignalType vsignal,
31  int voctant,
32  int vsectorModule,
33  int vlayer,
34  int vchamber,
35  int vchannel)
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::getChamber
int getChamber() const
Definition: TGCId.h:131
MuonTGC_Cabling::TGCId::setRegionType
void setRegionType(RegionType region)
Definition: TGCId.h:148
MuonTGC_Cabling::TGCChannelId::setLayer
void setLayer(int layer)
Definition: TGCChannelId.cxx:45
TGCChannelASDOut.h
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::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::setSector
virtual void setSector(int vsector)
Definition: TGCId.cxx:122
MuonTGC_Cabling::TGCId::SignalType
SignalType
Definition: TGCId.h:49
MuonTGC_Cabling::TGCId::setSectorModule
void setSectorModule(int sectorModule)
Definition: TGCId.cxx:159
MuonTGC_Cabling::TGCId::setChamber
virtual void setChamber(int chamber)
Definition: TGCId.h:152
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition: TGCId.h:46
MuonTGC_Cabling::TGCId::setSideType
void setSideType(SideType side)
Definition: TGCId.h:144
MuonTGC_Cabling::TGCChannelASDOut::isValid
virtual bool isValid(void) const
Definition: TGCChannelASDOut.cxx:47
MuonTGC_Cabling::TGCId::getOctant
int getOctant() const
Definition: TGCId.h:129
MuonTGC_Cabling
Definition: TGCCable.h:13
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::MaxSignalType
@ MaxSignalType
Definition: TGCId.h:50
MuonTGC_Cabling::TGCId::NoSideType
@ NoSideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCChannelId
Definition: TGCChannelId.h:15
MuonTGC_Cabling::TGCChannelId::getLayer
int getLayer() const
Definition: TGCChannelId.cxx:27
MuonTGC_Cabling::TGCChannelId::setChannel
virtual void setChannel(int channel)
Definition: TGCChannelId.cxx:71
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition: TGCId.h:53
MuonTGC_Cabling::TGCId::NoSignalType
@ NoSignalType
Definition: TGCId.h:49
MuonTGC_Cabling::TGCId::SideType
SideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCId::setOctant
virtual void setOctant(int voctant)
Definition: TGCId.cxx:135
MuonTGC_Cabling::TGCChannelASDOut::TGCChannelASDOut
TGCChannelASDOut()=delete
MuonTGC_Cabling::TGCChannelId::getChannel
int getChannel() const
Definition: TGCChannelId.cxx:29