ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelASDIn.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
7namespace 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 setLayer(vlayer);
25 setChamber(vchamber);
26 setChannel(vchannel);
27}
28
30{
31 if(isEndcap()&&!isInner()){
33 } else {
35 }
36}
37
39{
40 int sector;
41 if(isEndcap()&&!isInner()){
42 sector = TGCId::getSector()-1;
43 if(sector<=0) sector += TGCId::NUM_ENDCAP_SECTOR;
44 } else {
45 sector = TGCId::getSector();
46 if(sector<=0) sector += TGCId::NUM_FORWARD_SECTOR;
47 }
48
49 return sector;
50}
51
53{
60 (getOctant() >=0) &&
61 (getOctant() <8) &&
62 (getLayer() >=0) &&
63 (getChamber() >=0) &&
64 (getChannel() >=0) )
65 return true;
66 return false;
67}
68
69} // end of namespace
virtual void setSector(int sector)
virtual int getSector(void) const
virtual bool isValid(void) const
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
void setSideType(SideType side)
Definition TGCId.h:143
bool isEndcap() const
Definition TGCId.h:141
int getOctant() const
Definition TGCId.h:128
void setRegionType(RegionType region)
Definition TGCId.h:147
static constexpr int NUM_ENDCAP_SECTOR
Definition TGCId.h:40
int getChamber() const
Definition TGCId.h:130
RegionType getRegionType(void) const
Definition TGCId.h:125
SignalType getSignalType(void) const
Definition TGCId.h:123
virtual int getSector() const
Definition TGCId.h:129
void setSignalType(SignalType signal)
Definition TGCId.cxx:67
virtual void setSector(int vsector)
Definition TGCId.cxx:95
bool isInner() const
Definition TGCId.h:139
SideType getSideType(void) const
Definition TGCId.h:121
virtual void setChamber(int chamber)
Definition TGCId.h:151
static constexpr int NUM_FORWARD_SECTOR
Definition TGCId.h:41