ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace Muon {
11
19
21 public:
22 enum {
29 };
30
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
135
138};
139} // namespace Muon
140
141#endif // MUONTGC_CNVTOOLS_TGCSLBDATA_H
uint16_t bcId(uint32_t data)
unsigned bcTag(unsigned bcBitMap)
uint32_t getL1Id() const
Get l1Id.
int m_type
SLB type.
Definition TgcSlbData.h:137
void setSlbId(uint16_t slbId)
Set slbId.
void setBit(const uint16_t bcTag, uint32_t iBit)
Set a bit.
uint16_t getBcId() const
Get bcId.
uint16_t getSswId() const
Get sswId.
bool isLowPt() const
Check if the SLB type is LowPt.
void setBitmap(const uint16_t bcTag, const uint32_t cellAddr, const uint32_t cellData)
Store bitmap.
void setType(int vType)
Set SLB type.
bool isHighPt() const
Check if the SLB type is HighPt.
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.
void setL1Id(uint32_t l1Id)
Set l1Id.
bool isCoincidence() const
Check if the SLB type is coincidence.
void setError(uint16_t error)
Set Error.
bool m_bitArray_N[BITMAP_SIZE]
Bit array at next bunch.
Definition TgcSlbData.h:134
bool m_bitArray_C[BITMAP_SIZE]
Bit array at central bunch.
Definition TgcSlbData.h:130
bool m_bitArray_P[BITMAP_SIZE]
Bit array at previous bunch.
Definition TgcSlbData.h:132
int getType() const
Get SLB type.
uint16_t getSbLoc() const
Get sbLoc.
TgcSlbData()
Costructor.
Definition TgcSlbData.cxx:7
void setBcId(uint16_t bcId)
Set bcId.
virtual ~TgcSlbData()
Destructor.
TgcSlbData(uint16_t bcId, uint32_t l1Id, uint16_t sswId, uint16_t slbId)
Costructor.
void setSswId(uint16_t sswId)
Set sswId.
bool isInner() const
Check if the SLB type is inner LowPt.
void setSbLoc(uint16_t sbLoc)
Set sbLoc.
bool isSL() const
Check if the SLB type is SL.
const bool * getBitArray(const uint16_t bcTag) const
Get bitArray for a BC tag.
uint16_t getSlbId() const
Get slbId.
uint16_t getError() const
Get error.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.