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// Constructor
11 TGCId::SignalType vsignal,
12 TGCId::RegionType vregion, int vsector,
13 int vlayer, int vchamber, int vchannel)
15 setSideType(vside);
16 setSignalType(vsignal);
17 setRegionType(vregion);
18 setLayer(vlayer);
20 setChamber(vchamber);
21 setChannel(vchannel);
22}
23
25 if (isEndcap() && !isInner()) {
27 } else {
29 }
30}
31
33 int sector;
34 if (isEndcap() && !isInner()) {
35 sector = TGCId::getSector() - 1;
36 if (sector <= 0) {
38 }
39 } else {
40 sector = TGCId::getSector();
41 if (sector <= 0) {
43 }
44 }
45
46 return sector;
47}
48
56 (getOctant() < 8) && (getLayer() >= 0) && (getChamber() >= 0) &&
57 (getChannel() >= 0)) {
58 return true;
59 }
60 return false;
61}
62
63} // namespace MuonTGC_Cabling
virtual bool isValid() const override
TGCChannelASDIn(TGCId::SideType side, TGCId::SignalType signal, TGCId::RegionType region, int sector, int layer, int chamber, int channel)
virtual int getSector() const override
virtual void setSector(int sector) override
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
void setSideType(SideType side)
Definition TGCId.h:194
bool isEndcap() const
Definition TGCId.h:190
int getOctant() const
Definition TGCId.h:153
void setRegionType(RegionType region)
Definition TGCId.h:198
static constexpr int NUM_ENDCAP_SECTOR
Definition TGCId.h:41
int getChamber() const
Definition TGCId.h:159
RegionType getRegionType() const
Definition TGCId.h:146
virtual int getSector() const
Definition TGCId.h:156
void setSignalType(SignalType signal)
Definition TGCId.cxx:67
virtual void setSector(int vsector)
Definition TGCId.cxx:127
SideType getSideType() const
Definition TGCId.h:134
bool isInner() const
Definition TGCId.h:184
SignalType getSignalType() const
Definition TGCId.h:140
virtual void setChamber(int chamber)
Definition TGCId.h:202
static constexpr int NUM_FORWARD_SECTOR
Definition TGCId.h:42