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#include <iostream>
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 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
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
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
void setSideType(SideType side)
Definition TGCId.h:143
int getOctant() const
Definition TGCId.h:128
void setRegionType(RegionType region)
Definition TGCId.h:147
void setSectorModule(int sectorModule)
Definition TGCId.cxx:132
virtual void setOctant(int voctant)
Definition TGCId.cxx:108
int getChamber() const
Definition TGCId.h:130
RegionType getRegionType(void) const
Definition TGCId.h:125
SignalType getSignalType(void) const
Definition TGCId.h:123
void setSignalType(SignalType signal)
Definition TGCId.cxx:67
virtual void setSector(int vsector)
Definition TGCId.cxx:95
SideType getSideType(void) const
Definition TGCId.h:121
virtual void setChamber(int chamber)
Definition TGCId.h:151