ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelPPOut.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::StationType vstation,
13 TGCId::ModuleType vmodule,
14 TGCId::RegionType vregion, int vsector,
15 int vid, int vblock, int vchannel)
17 setSideType(vside);
18 setStation(vstation);
19 setModuleType(vmodule);
20 setRegionType(vregion);
21 setSector(vsector);
22 setId(vid);
23 setBlock(vblock);
24 setChannel(vchannel);
25}
26
27std::unique_ptr<TGCModuleId> TGCChannelPPOut::getModule() const {
28 return std::make_unique<TGCModulePP>(getSideType(), getModuleType(),
30}
31
36 (getOctant() >= 0) && (getOctant() < 8) && (getId() >= 0) && (getBlock() >= 0) &&
37 (getChannel() >= 0)) {
38 return true;
39 }
40 return false;
41}
42
43} // 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::StationType station, 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: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