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:
14 // Constructor & Destructor
16 TGCId::RegionType region, int sector, int id, int channel);
17
18 virtual ~TGCChannelSLBIn() = default;
19
20 virtual std::unique_ptr<TGCModuleId> getModule() const override;
21
22 virtual bool isValid() const override;
23
24 // internal structure in 200 channel of SLBIn
25 public:
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, CellType cellType,
41 int channelInSLB);
42 static int getLengthOfCell(CellType cellType);
43 static int getOffsetOfCell(CellType cellType);
44 static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType);
45 static int getAdjacentOfCell(CellType cellType);
46 static int getAdjacentOfSLB(TGCId::ModuleType moduleType,
47 CellType cellType);
48
49 virtual CellType getCellType() const { return m_cellType; }
50
51 virtual int getChannelInCell() const;
52
53 virtual int getChannelInSLB() const;
54
55 virtual void setChannel(int channel) override;
56
57 private:
61
62 static const int s_lengthCell[];
63 static const int s_offsetCell[];
64 static const int s_lengthWD[];
65 static const int s_lengthSD[];
66 static const int s_lengthWT[];
67 static const int s_lengthST[];
68 static const int s_adjacentCell[];
69 static const int s_adjacentWD[];
70 static const int s_adjacentSD[];
71 static const int s_adjacentWT[];
72 static const int s_adjacentST[];
73
75};
76
77} // namespace MuonTGC_Cabling
78
79#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