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 void setSignalAndLayer(TGCId::SignalType signal, int layer);
55
56 bool isBackward() const;
57
58 protected:
60 int m_layer{-1};
61 int m_block{-1};
62 int m_channel{-1};
63};
64
65} // namespace MuonTGC_Cabling
66
67#endif
void setSignalAndLayer(TGCId::SignalType signal, int layer)
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