ATLAS Offline Software
Loading...
Searching...
No Matches
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
7#include <iostream>
8namespace MuonTGC_Cabling {
9
10// Constructor
12 TGCId::SignalType vsignal,
13 TGCId::RegionType vregion, int vsector,
14 int vlayer, int vchamber, int vchannel)
16 setSideType(vside);
17 setSignalType(vsignal);
18 setRegionType(vregion);
19 setSector(vsector);
20 setLayer(vlayer);
21 setChamber(vchamber);
22 setChannel(vchannel);
23}
24
26 TGCId::SignalType vsignal, int voctant,
27 int vsectorModule, int vlayer, int vchamber,
28 int vchannel)
30 setSideType(vside);
31 setSignalType(vsignal);
32 setOctant(voctant);
33 setSectorModule(vsectorModule); // after setOctant() method
34 setLayer(vlayer);
35 setChamber(vchamber);
36 setChannel(vchannel);
37}
38
46 (getOctant() < 8) && (getLayer() >= 0) && (getChamber() >= 0) &&
47 (getChannel() >= 0)) {
48 return true;
49 }
50 return false;
51}
52
53} // namespace MuonTGC_Cabling
virtual bool isValid() const override
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
void setSideType(SideType side)
Definition TGCId.h:194
int getOctant() const
Definition TGCId.h:153
void setRegionType(RegionType region)
Definition TGCId.h:198
void setSectorModule(int sectorModule)
Definition TGCId.cxx:170
virtual void setOctant(int voctant)
Definition TGCId.cxx:140
int getChamber() const
Definition TGCId.h:159
RegionType getRegionType() const
Definition TGCId.h:146
void setSignalType(SignalType signal)
Definition TGCId.cxx:67
virtual void setSector(int vsector)
Definition TGCId.cxx:127
SideType getSideType() const
Definition TGCId.h:134
SignalType getSignalType() const
Definition TGCId.h:140
virtual void setChamber(int chamber)
Definition TGCId.h:202