ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace MuonTGC_Cabling
11{
12
14{
15public:
16 // Constructor & Destructor
18 TGCId::ModuleType module,
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
31public:
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
60private:
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
78
79};
80
81} // end of namespace
82
83#endif
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
TGCChannelSLBIn(TGCId::SideType side, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int channel)
virtual bool isValid(void) const
static int getLengthOfCell(CellType cellType)
static int convertChannelInSLB(TGCId::ModuleType moduleType, CellType cellType, int channel)
static int convertChannelInCell(int channel)
virtual int getChannelInCell(void) const
static int getOffsetOfCell(CellType cellType)
virtual int getChannelInSLB(void) const
virtual CellType getCellType(void) const
static CellType convertCellType(int channel)
static int getAdjacentOfSLB(TGCId::ModuleType moduleType, CellType cellType)
static int convertChannel(TGCId::ModuleType moduleType, CellType cellType, int channelInSLB)
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)
virtual TGCModuleId * getModule(void) const
static int getAdjacentOfCell(CellType cellType)
virtual void setChannel(int channel)