ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelId.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONTGC_CABLING_TGCCHANNELID_H
6#define MUONTGC_CABLING_TGCCHANNELID_H
7
8#include <memory>
9
12
13namespace MuonTGC_Cabling {
14
15class TGCModuleId;
16
17class TGCChannelId : public TGCId {
18 public:
29
30 public:
35 virtual ~TGCChannelId() = default;
36
37 virtual std::unique_ptr<TGCModuleId> getModule() const { return nullptr; }
38
39 virtual bool operator==(const TGCChannelId& channelId) const;
40
41 virtual bool isValid() const { return true; }
42
44 int getLayer() const;
45 int getBlock() const;
46 int getChannel() const;
47 virtual int getGasGap() const;
48
50 void setLayer(int layer);
51 virtual void setBlock(int block);
52 virtual void setChannel(int channel);
53
54 bool isBackward() const;
55
56 protected:
58 int m_layer{-1};
59 int m_block{-1};
60 int m_channel{-1};
61};
62
63} // namespace MuonTGC_Cabling
64
65#endif
virtual std::unique_ptr< TGCModuleId > getModule() const
virtual void setChannel(int channel)
void setChannelIdType(ChannelIdType type)
ChannelIdType getChannelIdType() const
virtual bool operator==(const TGCChannelId &channelId) const
virtual bool isValid() const
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual ~TGCChannelId()=default
virtual void setBlock(int block)
virtual int getGasGap() const
TGCId(IdType vtype=IdType::NoIdType)
Definition TGCId.cxx:9