ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelPPIn.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::RegionType vregion, int vsector, int vid,
14 int vblock, int vchannel)
16 setSideType(vside);
17 setModuleType(vmodule);
18 setRegionType(vregion);
19 setSector(vsector);
20 setId(vid);
21 setBlock(vblock);
22 setChannel(vchannel);
23}
24
25std::unique_ptr<TGCModuleId> TGCChannelPPIn::getModule() const {
26 return std::make_unique<TGCModulePP>(getSideType(), getModuleType(),
28}
29
37 (getOctant() < 8) && (getId() >= 0) && (getBlock() >= 0) &&
38 (getChannel() >= 0)) {
39 return true;
40 }
41 return false;
42}
43
44} // namespace MuonTGC_Cabling
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
TGCChannelPPIn(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
virtual bool isValid() 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