ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonTGC_CnvTools
src
TgcSlbData.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONTGC_CNVTOOLS_TGCSLBDATA_H
6
#define MUONTGC_CNVTOOLS_TGCSLBDATA_H
7
8
#include <inttypes.h>
9
10
namespace
Muon
{
11
19
20
class
TgcSlbData
{
21
public
:
22
enum
{
23
BC_UNDEFINED
= 0,
24
BC_PREVIOUS
,
25
BC_CENTRAL
,
26
BC_NEXT
,
27
N_BC
,
28
BITMAP_SIZE
= 200
29
};
30
31
enum
SlbType
{
32
SLB_HIT
= 0,
33
SLB_LPT_D_W
,
34
SLB_LPT_D_S
,
35
SLB_LPT_T_W
,
36
SLB_LPT_T_S
,
37
SLB_LPT_I_W
,
38
SLB_LPT_I_S
,
39
SLB_SL_F
,
40
SLB_SL_E
,
41
SLB_NONE
42
};
43
45
TgcSlbData
(uint16_t
bcId
, uint32_t l1Id, uint16_t sswId, uint16_t slbId);
46
48
virtual
~TgcSlbData
();
49
51
bool
equal
(uint16_t
bcId
, uint32_t l1Id, uint16_t sswId,
52
uint16_t slbId)
const
;
53
55
const
bool
*
getBitArray
(
const
uint16_t
bcTag
)
const
;
56
58
void
setBitmap
(
const
uint16_t
bcTag
,
const
uint32_t cellAddr,
59
const
uint32_t cellData);
60
62
void
setBit
(
const
uint16_t
bcTag
, uint32_t iBit);
63
65
int
getType
()
const
;
66
68
void
setType
(
int
vType);
69
71
bool
isCoincidence
()
const
;
72
74
bool
isLowPt
()
const
;
75
78
bool
isHighPt
()
const
;
79
81
bool
isSL
()
const
;
82
84
bool
isInner
()
const
;
85
87
void
setBcId
(uint16_t
bcId
);
89
void
setL1Id
(uint32_t l1Id);
91
void
setSswId
(uint16_t sswId);
93
void
setSlbId
(uint16_t slbId);
95
void
setSbLoc
(uint16_t sbLoc);
97
void
setError
(uint16_t
error
);
98
100
uint16_t
getBcId
()
const
;
102
uint32_t
getL1Id
()
const
;
104
uint16_t
getSswId
()
const
;
106
uint16_t
getSlbId
()
const
;
108
uint16_t
getSbLoc
()
const
;
110
uint16_t
getError
()
const
;
111
112
private
:
113
enum
{
CELL_SIZE
= 8,
PADDING_WORD
= 0x1F };
114
116
TgcSlbData
();
117
119
// Non-const version which is used in this class only
120
bool
*
getBitArray
(
const
uint16_t
bcTag
);
121
122
uint16_t
m_bcId
;
123
uint32_t
m_l1Id
;
124
uint16_t
m_sswId
;
125
uint16_t
m_slbId
;
126
uint16_t
m_sbLoc
;
127
uint16_t
m_error
;
128
130
bool
m_bitArray_C
[
BITMAP_SIZE
];
132
bool
m_bitArray_P
[
BITMAP_SIZE
];
134
bool
m_bitArray_N
[
BITMAP_SIZE
];
135
137
int
m_type
;
138
};
139
}
// namespace Muon
140
141
#endif
// MUONTGC_CNVTOOLS_TGCSLBDATA_H
bcId
uint16_t bcId(uint32_t data)
Definition
TgcByteStreamData.h:326
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition
TgcByteStreamData.h:357
Muon::TgcSlbData::SlbType
SlbType
Definition
TgcSlbData.h:31
Muon::TgcSlbData::SLB_LPT_T_S
@ SLB_LPT_T_S
Definition
TgcSlbData.h:36
Muon::TgcSlbData::SLB_SL_F
@ SLB_SL_F
Definition
TgcSlbData.h:39
Muon::TgcSlbData::SLB_SL_E
@ SLB_SL_E
Definition
TgcSlbData.h:40
Muon::TgcSlbData::SLB_HIT
@ SLB_HIT
Definition
TgcSlbData.h:32
Muon::TgcSlbData::SLB_NONE
@ SLB_NONE
Definition
TgcSlbData.h:41
Muon::TgcSlbData::SLB_LPT_I_S
@ SLB_LPT_I_S
Definition
TgcSlbData.h:38
Muon::TgcSlbData::SLB_LPT_I_W
@ SLB_LPT_I_W
Definition
TgcSlbData.h:37
Muon::TgcSlbData::SLB_LPT_T_W
@ SLB_LPT_T_W
Definition
TgcSlbData.h:35
Muon::TgcSlbData::SLB_LPT_D_W
@ SLB_LPT_D_W
Definition
TgcSlbData.h:33
Muon::TgcSlbData::SLB_LPT_D_S
@ SLB_LPT_D_S
Definition
TgcSlbData.h:34
Muon::TgcSlbData::getL1Id
uint32_t getL1Id() const
Get l1Id.
Definition
TgcSlbData.cxx:190
Muon::TgcSlbData::m_type
int m_type
SLB type.
Definition
TgcSlbData.h:137
Muon::TgcSlbData::m_sswId
uint16_t m_sswId
Definition
TgcSlbData.h:124
Muon::TgcSlbData::m_slbId
uint16_t m_slbId
Definition
TgcSlbData.h:125
Muon::TgcSlbData::setSlbId
void setSlbId(uint16_t slbId)
Set slbId.
Definition
TgcSlbData.cxx:174
Muon::TgcSlbData::m_l1Id
uint32_t m_l1Id
Definition
TgcSlbData.h:123
Muon::TgcSlbData::setBit
void setBit(const uint16_t bcTag, uint32_t iBit)
Set a bit.
Definition
TgcSlbData.cxx:122
Muon::TgcSlbData::getBcId
uint16_t getBcId() const
Get bcId.
Definition
TgcSlbData.cxx:186
Muon::TgcSlbData::getSswId
uint16_t getSswId() const
Get sswId.
Definition
TgcSlbData.cxx:194
Muon::TgcSlbData::isLowPt
bool isLowPt() const
Check if the SLB type is LowPt.
Definition
TgcSlbData.cxx:146
Muon::TgcSlbData::setBitmap
void setBitmap(const uint16_t bcTag, const uint32_t cellAddr, const uint32_t cellData)
Store bitmap.
Definition
TgcSlbData.cxx:93
Muon::TgcSlbData::setType
void setType(int vType)
Set SLB type.
Definition
TgcSlbData.cxx:138
Muon::TgcSlbData::isHighPt
bool isHighPt() const
Check if the SLB type is HighPt.
Definition
TgcSlbData.cxx:150
Muon::TgcSlbData::equal
bool equal(uint16_t bcId, uint32_t l1Id, uint16_t sswId, uint16_t slbId) const
Check input IDs and held IDs are equal or not.
Definition
TgcSlbData.cxx:42
Muon::TgcSlbData::setL1Id
void setL1Id(uint32_t l1Id)
Set l1Id.
Definition
TgcSlbData.cxx:166
Muon::TgcSlbData::m_error
uint16_t m_error
Definition
TgcSlbData.h:127
Muon::TgcSlbData::isCoincidence
bool isCoincidence() const
Check if the SLB type is coincidence.
Definition
TgcSlbData.cxx:142
Muon::TgcSlbData::setError
void setError(uint16_t error)
Set Error.
Definition
TgcSlbData.cxx:182
Muon::TgcSlbData::m_bitArray_N
bool m_bitArray_N[BITMAP_SIZE]
Bit array at next bunch.
Definition
TgcSlbData.h:134
Muon::TgcSlbData::m_bitArray_C
bool m_bitArray_C[BITMAP_SIZE]
Bit array at central bunch.
Definition
TgcSlbData.h:130
Muon::TgcSlbData::m_bitArray_P
bool m_bitArray_P[BITMAP_SIZE]
Bit array at previous bunch.
Definition
TgcSlbData.h:132
Muon::TgcSlbData::getType
int getType() const
Get SLB type.
Definition
TgcSlbData.cxx:134
Muon::TgcSlbData::getSbLoc
uint16_t getSbLoc() const
Get sbLoc.
Definition
TgcSlbData.cxx:202
Muon::TgcSlbData::PADDING_WORD
@ PADDING_WORD
Definition
TgcSlbData.h:113
Muon::TgcSlbData::CELL_SIZE
@ CELL_SIZE
Definition
TgcSlbData.h:113
Muon::TgcSlbData::TgcSlbData
TgcSlbData()
Costructor.
Definition
TgcSlbData.cxx:7
Muon::TgcSlbData::BC_NEXT
@ BC_NEXT
Definition
TgcSlbData.h:26
Muon::TgcSlbData::BC_CENTRAL
@ BC_CENTRAL
Definition
TgcSlbData.h:25
Muon::TgcSlbData::BC_PREVIOUS
@ BC_PREVIOUS
Definition
TgcSlbData.h:24
Muon::TgcSlbData::BITMAP_SIZE
@ BITMAP_SIZE
Definition
TgcSlbData.h:28
Muon::TgcSlbData::BC_UNDEFINED
@ BC_UNDEFINED
Definition
TgcSlbData.h:23
Muon::TgcSlbData::N_BC
@ N_BC
Definition
TgcSlbData.h:27
Muon::TgcSlbData::setBcId
void setBcId(uint16_t bcId)
Set bcId.
Definition
TgcSlbData.cxx:162
Muon::TgcSlbData::~TgcSlbData
virtual ~TgcSlbData()
Destructor.
Muon::TgcSlbData::m_sbLoc
uint16_t m_sbLoc
Definition
TgcSlbData.h:126
Muon::TgcSlbData::TgcSlbData
TgcSlbData(uint16_t bcId, uint32_t l1Id, uint16_t sswId, uint16_t slbId)
Costructor.
Definition
TgcSlbData.cxx:23
Muon::TgcSlbData::setSswId
void setSswId(uint16_t sswId)
Set sswId.
Definition
TgcSlbData.cxx:170
Muon::TgcSlbData::isInner
bool isInner() const
Check if the SLB type is inner LowPt.
Definition
TgcSlbData.cxx:158
Muon::TgcSlbData::setSbLoc
void setSbLoc(uint16_t sbLoc)
Set sbLoc.
Definition
TgcSlbData.cxx:178
Muon::TgcSlbData::isSL
bool isSL() const
Check if the SLB type is SL.
Definition
TgcSlbData.cxx:154
Muon::TgcSlbData::m_bcId
uint16_t m_bcId
Definition
TgcSlbData.h:122
Muon::TgcSlbData::getBitArray
const bool * getBitArray(const uint16_t bcTag) const
Get bitArray for a BC tag.
Definition
TgcSlbData.cxx:47
Muon::TgcSlbData::getSlbId
uint16_t getSlbId() const
Get slbId.
Definition
TgcSlbData.cxx:198
Muon::TgcSlbData::getError
uint16_t getError() const
Get error.
Definition
TgcSlbData.cxx:206
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
error
Definition
IImpactPoint3dEstimator.h:72
Generated on
for ATLAS Offline Software by
1.17.0