ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelPPIn.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9namespace MuonTGC_Cabling {
10
12 TGCId::ModuleType vmodule, TGCId::RegionType vregion,
13 int vsector, int vid, int vblock, int vchannel)
15 setSideType(vside);
16 setStation(vstation);
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
34 (getOctant() >= 0) && (getOctant() < 8) &&
35 (getId() >= 0) && (getBlock() >= 0) &&
36 (getChannel() >= 0)) {
37 return true;
38 }
39 return false;
40}
41
42} // namespace MuonTGC_Cabling
virtual void setChannel(int channel)
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
virtual std::unique_ptr< TGCModuleId > getModule() const override
virtual bool isValid() const override
TGCChannelPPIn(TGCId::SideType side, TGCId::StationType station, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int block, int channel)
void setSideType(SideType side)
Definition TGCId.h:182
int getOctant() const
Definition TGCId.h:141
void setRegionType(RegionType region)
Definition TGCId.h:186
ModuleType getModuleType() const
Definition TGCId.h:131
void setId(int id)
Definition TGCId.h:194
RegionType getRegionType() const
Definition TGCId.h:137
virtual int getSector() const
Definition TGCId.h:144
void setStation(StationType vstation)
Definition TGCId.cxx:78
virtual void setSector(int vsector)
Definition TGCId.cxx:82
SideType getSideType() const
Definition TGCId.h:125
int getId() const
Definition TGCId.h:150
virtual void setModuleType(ModuleType module)
Definition TGCId.cxx:39