ATLAS Offline Software
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 
10 namespace MuonTGC_Cabling {
11 
12 class TGCModuleId;
13 
14 class TGCChannelId : public TGCId
15 {
16  public:
17  enum class ChannelIdType {
19  ASDIn, ASDOut,
21  };
22 
23  public:
25  : TGCId(IdType::Channel) {
27  }
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  protected:
49  int m_layer{-1};
50  int m_block{-1};
51  int m_channel{-1};
52 };
53 
54 } // end of namespace
55 
56 #endif
MuonTGC_Cabling::TGCChannelId::ChannelIdType::NoChannelIdType
@ NoChannelIdType
MuonTGC_Cabling::TGCChannelId::isValid
virtual bool isValid() const
Definition: TGCChannelId.h:34
MuonTGC_Cabling::TGCChannelId::setLayer
void setLayer(int layer)
Definition: TGCChannelId.cxx:45
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
MuonTGC_Cabling::TGCChannelId::m_channelType
ChannelIdType m_channelType
Definition: TGCChannelId.h:48
MuonTGC_Cabling::TGCChannelId::getGasGap
virtual int getGasGap() const
Definition: TGCChannelId.cxx:31
MuonTGC_Cabling::TGCChannelId::ChannelIdType::ASDOut
@ ASDOut
MuonTGC_Cabling::TGCChannelId::m_block
int m_block
Definition: TGCChannelId.h:50
MuonTGC_Cabling::TGCChannelId::getChannelIdType
ChannelIdType getChannelIdType() const
Definition: TGCChannelId.cxx:26
MuonTGC_Cabling::TGCChannelId::ChannelIdType::HPBIn
@ HPBIn
MuonTGC_Cabling::TGCChannelId::ChannelIdType::ASDIn
@ ASDIn
MuonTGC_Cabling::TGCChannelId::getModule
virtual TGCModuleId * getModule(void) const
Definition: TGCChannelId.h:30
MuonTGC_Cabling::TGCChannelId::m_channel
int m_channel
Definition: TGCChannelId.h:51
MuonTGC_Cabling::TGCId
Definition: TGCId.h:10
TGCId.h
MuonTGC_Cabling::TGCChannelId::getBlock
int getBlock() const
Definition: TGCChannelId.cxx:28
MuonTGC_Cabling::TGCChannelId::ChannelIdType::SLBIn
@ SLBIn
MuonTGC_Cabling::TGCChannelId::operator==
virtual bool operator==(const TGCChannelId &channelId) const
Definition: TGCChannelId.cxx:9
MuonTGC_Cabling
Definition: TGCCable.h:13
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
MuonTGC_Cabling::TGCChannelId::~TGCChannelId
virtual ~TGCChannelId(void)=default
MuonTGC_Cabling::TGCChannelId::setChannelIdType
void setChannelIdType(ChannelIdType type)
Definition: TGCChannelId.cxx:41
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
MuonTGC_Cabling::TGCChannelId::ChannelIdType
ChannelIdType
Definition: TGCChannelId.h:17
MuonTGC_Cabling::TGCChannelId::TGCChannelId
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
Definition: TGCChannelId.h:24
MuonTGC_Cabling::TGCChannelId::setBlock
virtual void setBlock(int block)
Definition: TGCChannelId.cxx:67
MuonTGC_Cabling::TGCChannelId::ChannelIdType::PPOut
@ PPOut
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonTGC_Cabling::TGCChannelId
Definition: TGCChannelId.h:15
MuonTGC_Cabling::TGCChannelId::ChannelIdType::PPIn
@ PPIn
MuonTGC_Cabling::TGCChannelId::getLayer
int getLayer() const
Definition: TGCChannelId.cxx:27
MuonTGC_Cabling::TGCChannelId::setChannel
virtual void setChannel(int channel)
Definition: TGCChannelId.cxx:71
MuonTGC_Cabling::TGCModuleId
Definition: TGCModuleId.h:13
MuonTGC_Cabling::TGCChannelId::ChannelIdType::SLBOut
@ SLBOut
MuonTGC_Cabling::TGCChannelId::getChannel
int getChannel() const
Definition: TGCChannelId.cxx:29
MuonTGC_Cabling::TGCChannelId::m_layer
int m_layer
Definition: TGCChannelId.h:49
MuonTGC_Cabling::TGCId::IdType
IdType
Definition: TGCId.h:12