ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelASDIn.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 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); // SideType
16 setRegionType(vregion); // RegionType
17 setSignalAndLayer(vsignal, vlayer); // SignalType as well as Layer (to define station,Module)
19 setChamber(vchamber);
20 setChannel(vchannel);
21}
22
24 if (isEndcap() && !isInner()) {
26 } else {
28 }
29}
30
32 int sector;
33 if (isEndcap() && !isInner()) {
34 sector = TGCId::getSector() - 1;
35 if (sector <= 0) {
37 }
38 } else {
39 sector = TGCId::getSector();
40 if (sector <= 0) {
42 }
43 }
44
45 return sector;
46}
47
52 (getOctant() >= 0) && (getOctant() < 8) &&
53 (getLayer() >= 0) && (getChamber() >= 0) &&
54 (getChannel() >= 0)) {
55 return true;
56 }
57 return false;
58}
59
60} // 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
void setSignalAndLayer(TGCId::SignalType signal, int layer)
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
void setSideType(SideType side)
Definition TGCId.h:182
bool isEndcap() const
Definition TGCId.h:178
int getOctant() const
Definition TGCId.h:141
void setRegionType(RegionType region)
Definition TGCId.h:186
static constexpr int NUM_ENDCAP_SECTOR
Definition TGCId.h:43
int getChamber() const
Definition TGCId.h:147
RegionType getRegionType() const
Definition TGCId.h:137
virtual int getSector() const
Definition TGCId.h:144
virtual void setSector(int vsector)
Definition TGCId.cxx:82
SideType getSideType() const
Definition TGCId.h:125
bool isInner() const
Definition TGCId.h:172
SignalType getSignalType() const
Definition TGCId.h:134
virtual void setChamber(int chamber)
Definition TGCId.h:190
static constexpr int NUM_FORWARD_SECTOR
Definition TGCId.h:44