ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
MuonTGC_Cabling
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
8
#include "
MuonTGC_Cabling/TGCChannelId.h
"
9
10
namespace
MuonTGC_Cabling
{
11
12
class
TGCChannelSLBIn
:
public
TGCChannelId
{
13
public
:
14
TGCChannelSLBIn
(
TGCId::SideType
side,
TGCId::ModuleType
module,
15
TGCId::RegionType
region,
int
sector,
int
id
,
int
channel);
16
TGCChannelSLBIn
(
TGCId::SideType
side,
TGCId::StationType
station,
17
TGCId::ModuleType
module,
TGCId::RegionType
region,
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
:
27
enum
CellType
{
28
NoCellType
= -1,
29
CellTrig
= 0,
30
CellA
= 1,
31
CellB
= 2,
32
CellC
= 3,
33
CellD
= 4,
34
MaxCellType
35
};
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
:
59
CellType
m_cellType
;
60
int
m_channelInCell
= 0;
61
int
m_channelInSLB
= 0;
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_lengthWI
[];
70
static
const
int
s_lengthSI
[];
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
() {}
78
};
79
80
}
// namespace MuonTGC_Cabling
81
82
#endif
TGCChannelId.h
MuonTGC_Cabling::TGCChannelId::TGCChannelId
TGCChannelId(ChannelIdType type=ChannelIdType::NoChannelIdType)
Definition
TGCChannelId.h:31
MuonTGC_Cabling::TGCChannelSLBIn::TGCChannelSLBIn
TGCChannelSLBIn(TGCId::SideType side, TGCId::ModuleType module, TGCId::RegionType region, int sector, int id, int channel)
Definition
TGCChannelSLBIn.cxx:26
MuonTGC_Cabling::TGCChannelSLBIn::getChannelInCell
virtual int getChannelInCell() const
Definition
TGCChannelSLBIn.cxx:216
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentCell
static const int s_adjacentCell[]
Definition
TGCChannelSLBIn.h:71
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthWD
static const int s_lengthWD[]
Definition
TGCChannelSLBIn.h:65
MuonTGC_Cabling::TGCChannelSLBIn::getLengthOfCell
static int getLengthOfCell(CellType cellType)
Definition
TGCChannelSLBIn.cxx:87
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentWT
static const int s_adjacentWT[]
Definition
TGCChannelSLBIn.h:74
MuonTGC_Cabling::TGCChannelSLBIn::convertChannelInSLB
static int convertChannelInSLB(TGCId::ModuleType moduleType, CellType cellType, int channel)
Definition
TGCChannelSLBIn.cxx:194
MuonTGC_Cabling::TGCChannelSLBIn::getCellType
virtual CellType getCellType() const
Definition
TGCChannelSLBIn.h:50
MuonTGC_Cabling::TGCChannelSLBIn::convertChannelInCell
static int convertChannelInCell(int channel)
Definition
TGCChannelSLBIn.cxx:146
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthST
static const int s_lengthST[]
Definition
TGCChannelSLBIn.h:68
MuonTGC_Cabling::TGCChannelSLBIn::getOffsetOfCell
static int getOffsetOfCell(CellType cellType)
Definition
TGCChannelSLBIn.cxx:92
MuonTGC_Cabling::TGCChannelSLBIn::s_offsetCell
static const int s_offsetCell[]
Definition
TGCChannelSLBIn.h:64
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentSD
static const int s_adjacentSD[]
Definition
TGCChannelSLBIn.h:73
MuonTGC_Cabling::TGCChannelSLBIn::~TGCChannelSLBIn
virtual ~TGCChannelSLBIn()=default
MuonTGC_Cabling::TGCChannelSLBIn::isValid
virtual bool isValid() const override
Definition
TGCChannelSLBIn.cxx:59
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthCell
static const int s_lengthCell[]
Definition
TGCChannelSLBIn.h:63
MuonTGC_Cabling::TGCChannelSLBIn::convertCellType
static CellType convertCellType(int channel)
Definition
TGCChannelSLBIn.cxx:170
MuonTGC_Cabling::TGCChannelSLBIn::m_channelInSLB
int m_channelInSLB
Definition
TGCChannelSLBIn.h:61
MuonTGC_Cabling::TGCChannelSLBIn::getAdjacentOfSLB
static int getAdjacentOfSLB(TGCId::ModuleType moduleType, CellType cellType)
Definition
TGCChannelSLBIn.cxx:124
MuonTGC_Cabling::TGCChannelSLBIn::getModule
virtual std::unique_ptr< TGCModuleId > getModule() const override
Definition
TGCChannelSLBIn.cxx:54
MuonTGC_Cabling::TGCChannelSLBIn::convertChannel
static int convertChannel(TGCId::ModuleType moduleType, CellType cellType, int channelInSLB)
Definition
TGCChannelSLBIn.cxx:205
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthWI
static const int s_lengthWI[]
Definition
TGCChannelSLBIn.h:69
MuonTGC_Cabling::TGCChannelSLBIn::m_channelInCell
int m_channelInCell
Definition
TGCChannelSLBIn.h:60
MuonTGC_Cabling::TGCChannelSLBIn::getLengthOfSLB
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)
Definition
TGCChannelSLBIn.cxx:97
MuonTGC_Cabling::TGCChannelSLBIn::m_cellType
CellType m_cellType
Definition
TGCChannelSLBIn.h:59
MuonTGC_Cabling::TGCChannelSLBIn::CellType
CellType
Definition
TGCChannelSLBIn.h:27
MuonTGC_Cabling::TGCChannelSLBIn::CellB
@ CellB
Definition
TGCChannelSLBIn.h:31
MuonTGC_Cabling::TGCChannelSLBIn::CellA
@ CellA
Definition
TGCChannelSLBIn.h:30
MuonTGC_Cabling::TGCChannelSLBIn::CellC
@ CellC
Definition
TGCChannelSLBIn.h:32
MuonTGC_Cabling::TGCChannelSLBIn::CellTrig
@ CellTrig
Definition
TGCChannelSLBIn.h:29
MuonTGC_Cabling::TGCChannelSLBIn::CellD
@ CellD
Definition
TGCChannelSLBIn.h:33
MuonTGC_Cabling::TGCChannelSLBIn::NoCellType
@ NoCellType
Definition
TGCChannelSLBIn.h:28
MuonTGC_Cabling::TGCChannelSLBIn::MaxCellType
@ MaxCellType
Definition
TGCChannelSLBIn.h:34
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentWD
static const int s_adjacentWD[]
Definition
TGCChannelSLBIn.h:72
MuonTGC_Cabling::TGCChannelSLBIn::getChannelInSLB
virtual int getChannelInSLB() const
Definition
TGCChannelSLBIn.cxx:220
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthWT
static const int s_lengthWT[]
Definition
TGCChannelSLBIn.h:67
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthSD
static const int s_lengthSD[]
Definition
TGCChannelSLBIn.h:66
MuonTGC_Cabling::TGCChannelSLBIn::TGCChannelSLBIn
TGCChannelSLBIn()
Definition
TGCChannelSLBIn.h:77
MuonTGC_Cabling::TGCChannelSLBIn::s_lengthSI
static const int s_lengthSI[]
Definition
TGCChannelSLBIn.h:70
MuonTGC_Cabling::TGCChannelSLBIn::s_adjacentST
static const int s_adjacentST[]
Definition
TGCChannelSLBIn.h:75
MuonTGC_Cabling::TGCChannelSLBIn::getAdjacentOfCell
static int getAdjacentOfCell(CellType cellType)
Definition
TGCChannelSLBIn.cxx:119
MuonTGC_Cabling::TGCChannelSLBIn::setChannel
virtual void setChannel(int channel) override
Definition
TGCChannelSLBIn.cxx:224
MuonTGC_Cabling::TGCId::ModuleType
ModuleType
Definition
TGCId.h:51
MuonTGC_Cabling::TGCId::StationType
StationType
Definition
TGCId.h:49
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::SideType
SideType
Definition
TGCId.h:48
MuonTGC_Cabling
Definition
TGCCable.h:12
Generated on
for ATLAS Offline Software by
1.17.0