ATLAS Offline Software
TGCChannelSLBIn.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONTGC_CABLING_TGCCHANNELSLBIN_HH
6 #define MUONTGC_CABLING_TGCCHANNELSLBIN_HH
7 
9 
10 namespace MuonTGC_Cabling
11 {
12 
14 {
15 public:
16  // Constructor & Destructor
19  TGCId::RegionType region,
20  int sector,
21  int id,
22  int channel);
23 
24  virtual ~TGCChannelSLBIn(void) {}
25 
26  virtual TGCModuleId* getModule(void) const;
27 
28  virtual bool isValid(void) const;
29 
30 // internal structure in 200 channel of SLBIn
31 public:
32  enum CellType {NoCellType=-1,
35 
36  static int convertChannelInCell(int channel);
37  static CellType convertCellType(int channel);
38  static int convertChannelInSLB(TGCId::ModuleType moduleType,
39  CellType cellType, int channel);
40  static int convertChannel(TGCId::ModuleType moduleType,
41  CellType cellType, int channelInSLB);
42  static int getLengthOfCell(CellType cellType);
43  static int getOffsetOfCell(CellType cellType);
44  static int getLengthOfSLB(TGCId::ModuleType moduleType,
45  CellType cellType);
46  static int getAdjacentOfCell(CellType cellType);
47  static int getAdjacentOfSLB(TGCId::ModuleType moduleType,
48  CellType cellType);
49 
50  virtual CellType getCellType(void) const {
51  return m_cellType;
52  }
53 
54  virtual int getChannelInCell(void) const;
55 
56  virtual int getChannelInSLB(void) const;
57 
58  virtual void setChannel(int channel);
59 
60 private:
62  int m_channelInCell = 0;
63  int m_channelInSLB = 0;
64 
65  static const int s_lengthCell[];
66  static const int s_offsetCell[];
67  static const int s_lengthWD[];
68  static const int s_lengthSD[];
69  static const int s_lengthWT[];
70  static const int s_lengthST[];
71  static const int s_adjacentCell[];
72  static const int s_adjacentWD[];
73  static const int s_adjacentSD[];
74  static const int s_adjacentWT[];
75  static const int s_adjacentST[];
76 
77  TGCChannelSLBIn(void) {}
78 
79 };
80 
81 } // end of namespace
82 
83 #endif
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentST
static const int s_adjacentST[]
Definition: TGCChannelSLBIn.h:75
MuonTGC_Cabling::TGCChannelSLBIn::setChannel
virtual void setChannel(int channel)
Definition: TGCChannelSLBIn.cxx:196
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthWD
static const int s_lengthWD[]
Definition: TGCChannelSLBIn.h:67
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
MuonTGC_Cabling::TGCChannelSLBIn::CellB
@ CellB
Definition: TGCChannelSLBIn.h:33
MuonTGC_Cabling::TGCChannelSLBIn::getAdjacentOfCell
static int getAdjacentOfCell(CellType cellType)
Definition: TGCChannelSLBIn.cxx:100
MuonTGC_Cabling::TGCChannelSLBIn::convertChannelInSLB
static int convertChannelInSLB(TGCId::ModuleType moduleType, CellType cellType, int channel)
Definition: TGCChannelSLBIn.cxx:174
MuonTGC_Cabling::TGCChannelSLBIn::CellC
@ CellC
Definition: TGCChannelSLBIn.h:33
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentCell
static const int s_adjacentCell[]
Definition: TGCChannelSLBIn.h:71
MuonTGC_Cabling::TGCChannelSLBIn::getChannelInCell
virtual int getChannelInCell(void) const
Definition: TGCChannelSLBIn.cxx:188
MuonTGC_Cabling::TGCId::ModuleType
ModuleType
Definition: TGCId.h:47
MuonTGC_Cabling::TGCChannelSLBIn::getLengthOfCell
static int getLengthOfCell(CellType cellType)
Definition: TGCChannelSLBIn.cxx:71
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentSD
static const int s_adjacentSD[]
Definition: TGCChannelSLBIn.h:73
TRT::Hit::side
@ side
Definition: HitInfo.h:83
python.PyAthena.module
module
Definition: PyAthena.py:134
TGCChannelId.h
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthCell
static const int s_lengthCell[]
Definition: TGCChannelSLBIn.h:65
MuonTGC_Cabling::TGCChannelSLBIn::isValid
virtual bool isValid(void) const
Definition: TGCChannelSLBIn.cxx:38
MuonTGC_Cabling::TGCChannelSLBIn::m_cellType
CellType m_cellType
Definition: TGCChannelSLBIn.h:61
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthST
static const int s_lengthST[]
Definition: TGCChannelSLBIn.h:70
MuonTGC_Cabling::TGCChannelSLBIn::m_channelInCell
int m_channelInCell
Definition: TGCChannelSLBIn.h:62
MuonTGC_Cabling::TGCChannelSLBIn::convertChannelInCell
static int convertChannelInCell(int channel)
Definition: TGCChannelSLBIn.cxx:126
MuonTGC_Cabling
Definition: TGCCable.h:13
MuonTGC_Cabling::TGCChannelSLBIn::m_channelInSLB
int m_channelInSLB
Definition: TGCChannelSLBIn.h:63
MuonTGC_Cabling::TGCChannelSLBIn::NoCellType
@ NoCellType
Definition: TGCChannelSLBIn.h:32
MuonTGC_Cabling::TGCChannelSLBIn::convertChannel
static int convertChannel(TGCId::ModuleType moduleType, CellType cellType, int channelInSLB)
Definition: TGCChannelSLBIn.cxx:181
MuonTGC_Cabling::TGCChannelSLBIn::getModule
virtual TGCModuleId * getModule(void) const
Definition: TGCChannelSLBIn.cxx:29
MuonTGC_Cabling::TGCChannelSLBIn::CellA
@ CellA
Definition: TGCChannelSLBIn.h:33
MuonTGC_Cabling::TGCChannelSLBIn::convertCellType
static CellType convertCellType(int channel)
Definition: TGCChannelSLBIn.cxx:150
MuonTGC_Cabling::TGCChannelSLBIn::s_offsetCell
static const int s_offsetCell[]
Definition: TGCChannelSLBIn.h:66
MuonTGC_Cabling::TGCChannelSLBIn
Definition: TGCChannelSLBIn.h:14
MuonTGC_Cabling::TGCChannelSLBIn::getAdjacentOfSLB
static int getAdjacentOfSLB(TGCId::ModuleType moduleType, CellType cellType)
Definition: TGCChannelSLBIn.cxx:104
MuonTGC_Cabling::TGCChannelId
Definition: TGCChannelId.h:15
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthWT
static const int s_lengthWT[]
Definition: TGCChannelSLBIn.h:69
MuonTGC_Cabling::TGCChannelSLBIn::CellType
CellType
Definition: TGCChannelSLBIn.h:32
MuonTGC_Cabling::TGCChannelSLBIn::TGCChannelSLBIn
TGCChannelSLBIn(void)
Definition: TGCChannelSLBIn.h:77
MuonTGC_Cabling::TGCChannelSLBIn::CellD
@ CellD
Definition: TGCChannelSLBIn.h:33
MuonTGC_Cabling::TGCChannelSLBIn::getOffsetOfCell
static int getOffsetOfCell(CellType cellType)
Definition: TGCChannelSLBIn.cxx:75
MuonTGC_Cabling::TGCChannelSLBIn::getCellType
virtual CellType getCellType(void) const
Definition: TGCChannelSLBIn.h:50
MuonTGC_Cabling::TGCChannelSLBIn::getLengthOfSLB
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)
Definition: TGCChannelSLBIn.cxx:79
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition: TGCId.h:53
MuonTGC_Cabling::TGCChannelSLBIn::getChannelInSLB
virtual int getChannelInSLB(void) const
Definition: TGCChannelSLBIn.cxx:192
MuonTGC_Cabling::TGCModuleId
Definition: TGCModuleId.h:13
MuonTGC_Cabling::TGCId::SideType
SideType
Definition: TGCId.h:45
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentWD
static const int s_adjacentWD[]
Definition: TGCChannelSLBIn.h:72
MuonTGC_Cabling::TGCChannelSLBIn::MaxCellType
@ MaxCellType
Definition: TGCChannelSLBIn.h:34
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentWT
static const int s_adjacentWT[]
Definition: TGCChannelSLBIn.h:74
MuonTGC_Cabling::TGCChannelSLBIn::CellTrig
@ CellTrig
Definition: TGCChannelSLBIn.h:33
MuonTGC_Cabling::TGCChannelSLBIn::~TGCChannelSLBIn
virtual ~TGCChannelSLBIn(void)
Definition: TGCChannelSLBIn.h:24
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthSD
static const int s_lengthSD[]
Definition: TGCChannelSLBIn.h:68