ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelPPOut.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::ModuleType vmodule,
14 TGCId::RegionType vregion, int vsector,
15 int vid, int vblock, int vchannel)
17 setSideType(vside);
18 setModuleType(vmodule);
19 setRegionType(vregion);
20 setSector(vsector);
21 setId(vid);
22 setBlock(vblock);
23 setChannel(vchannel);
24}
25
26std::unique_ptr<TGCModuleId> TGCChannelPPOut::getModule() const {
27 return std::make_unique<TGCModulePP>(getSideType(), getModuleType(),
29}
30
38 (getOctant() < 8) && (getId() >= 0) && (getBlock() >= 0) &&
39 (getChannel() >= 0)) {
40 return true;
41 }
42 return false;
43}
44
45} // namespace MuonTGC_Cabling
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
virtual bool isValid() const override
TGCChannelPPOut(TGCId::SideType side, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int block, int channel)
virtual std::unique_ptr< TGCModuleId > getModule() const override
void setSideType(SideType side)
Definition TGCId.h:194
int getOctant() const
Definition TGCId.h:153
void setRegionType(RegionType region)
Definition TGCId.h:198
ModuleType getModuleType() const
Definition TGCId.h:137
void setId(int id)
Definition TGCId.h:206
RegionType getRegionType() const
Definition TGCId.h:146
virtual int getSector() const
Definition TGCId.h:156
virtual void setSector(int vsector)
Definition TGCId.cxx:127
SideType getSideType() const
Definition TGCId.h:134
int getId() const
Definition TGCId.h:162
void setModuleType(ModuleType module)
Definition TGCId.cxx:39