ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelId.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONTGC_CABLING_TGCCHANNELID_H
6#define MUONTGC_CABLING_TGCCHANNELID_H
7
9
10namespace MuonTGC_Cabling {
11
12class TGCModuleId;
13
14class TGCChannelId : public TGCId
15{
16 public:
22
23 public:
28 virtual ~TGCChannelId(void) = default;
29
30 virtual TGCModuleId* getModule(void) const { return 0; }
31
32 virtual bool operator ==(const TGCChannelId& channelId) const;
33
34 virtual bool isValid() const { return true; }
35
37 int getLayer() const;
38 int getBlock() const;
39 int getChannel() const;
40 virtual int getGasGap() const;
41
43 void setLayer(int layer);
44 virtual void setBlock(int block);
45 virtual void setChannel(int channel);
46
47 bool isBackward() const;
48
49 protected:
51 int m_layer{-1};
52 int m_block{-1};
53 int m_channel{-1};
54};
55
56} // end of namespace
57
58#endif
virtual void setChannel(int channel)
void setChannelIdType(ChannelIdType type)
ChannelIdType getChannelIdType() const
virtual bool operator==(const TGCChannelId &channelId) const
virtual bool isValid() const
virtual TGCModuleId * getModule(void) const
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
virtual void setBlock(int block)
virtual int getGasGap() const
virtual ~TGCChannelId(void)=default
TGCId(IdType vtype=IdType::NoIdType)
Definition TGCId.cxx:9