ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelHPBIn.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
8
9namespace MuonTGC_Cabling {
10
11// Constructor
13 TGCId::SignalType vsignal,
14 TGCId::RegionType vregion, int vsector,
15 int vid, int vblock, int vchannel)
17 setSideType(vside);
18 setSignalType(vsignal);
19 setRegionType(vregion);
20 setSector(vsector);
21 setId(vid);
22 setBlock(vblock);
23 setChannel(vchannel);
24}
25
26std::unique_ptr<TGCModuleId> TGCChannelHPBIn::getModule() const {
27 return std::make_unique<TGCModuleHPB>(
29}
30
38 (getOctant() < 8) && (getId() >= 0) && (getBlock() >= 0) &&
39 (getChannel() >= 0)) {
40 return true;
41 }
42 return false;
43}
44
48
52
56
60
61} // namespace MuonTGC_Cabling
virtual std::unique_ptr< TGCModuleId > getModule() const override
virtual bool isValid() const override
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
void setSideType(SideType side)
Definition TGCId.h:194
int getOctant() const
Definition TGCId.h:153
void setRegionType(RegionType region)
Definition TGCId.h:198
void setId(int id)
Definition TGCId.h:206
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
SignalType getSignalType() const
Definition TGCId.h:140
int getId() const
Definition TGCId.h:162