ATLAS Offline Software
Loading...
Searching...
No Matches
TGCChannelSLBIn.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_TGCCHANNELSLBIN_HH
6#define MUONTGC_CABLING_TGCCHANNELSLBIN_HH
7
9
10namespace MuonTGC_Cabling {
11
13 public:
15 TGCId::RegionType region, int sector, int id, int channel);
18 int sector, int id, int channel);
19 virtual ~TGCChannelSLBIn() = default;
20
21 virtual std::unique_ptr<TGCModuleId> getModule() const override;
22
23 virtual bool isValid() const override;
24
25 // internal structure in 200 channel of SLBIn
26 public:
36
37 static int convertChannelInCell(int channel);
38 static CellType convertCellType(int channel);
39 static int convertChannelInSLB(TGCId::ModuleType moduleType,
40 CellType cellType, int channel);
41 static int convertChannel(TGCId::ModuleType moduleType, CellType cellType,
42 int channelInSLB);
43 static int getLengthOfCell(CellType cellType);
44 static int getOffsetOfCell(CellType cellType);
45 static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType);
46 static int getAdjacentOfCell(CellType cellType);
47 static int getAdjacentOfSLB(TGCId::ModuleType moduleType,
48 CellType cellType);
49
50 virtual CellType getCellType() const { return m_cellType; }
51
52 virtual int getChannelInCell() const;
53
54 virtual int getChannelInSLB() const;
55
56 virtual void setChannel(int channel) override;
57
58 private:
62
63 static const int s_lengthCell[];
64 static const int s_offsetCell[];
65 static const int s_lengthWD[];
66 static const int s_lengthSD[];
67 static const int s_lengthWT[];
68 static const int s_lengthST[];
69 static const int s_adjacentCell[];
70 static const int s_adjacentWD[];
71 static const int s_adjacentSD[];
72 static const int s_adjacentWT[];
73 static const int s_adjacentST[];
74
76};
77
78} // namespace MuonTGC_Cabling
79
80#endif
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
TGCChannelSLBIn(TGCId::SideType side, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int channel)
static int getLengthOfCell(CellType cellType)
static int convertChannelInSLB(TGCId::ModuleType moduleType, CellType cellType, int channel)
virtual CellType getCellType() const
static int convertChannelInCell(int channel)
static int getOffsetOfCell(CellType cellType)
virtual ~TGCChannelSLBIn()=default
virtual bool isValid() const override
static CellType convertCellType(int channel)
static int getAdjacentOfSLB(TGCId::ModuleType moduleType, CellType cellType)
virtual std::unique_ptr< TGCModuleId > getModule() const override
static int convertChannel(TGCId::ModuleType moduleType, CellType cellType, int channelInSLB)
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)
static int getAdjacentOfCell(CellType cellType)
virtual void setChannel(int channel) override