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{
12
20
22 {
23 public:
24 enum
25 {
32 };
33
46
48 TgcSlbData(uint16_t bcId, uint32_t l1Id,
49 uint16_t sswId, uint16_t slbId);
50
52 virtual ~TgcSlbData(void) ;
53
55 bool equal(uint16_t bcId,
56 uint32_t l1Id,
57 uint16_t sswId,
58 uint16_t slbId) const;
59
61 const bool * getBitArray(const uint16_t bcTag) const;
62
64 void setBitmap (const uint16_t bcTag,
65 const uint32_t cellAddr, const uint32_t cellData);
66
68 void setBit (const uint16_t bcTag,
69 uint32_t iBit);
70
72 int getType() const;
73
75 void setType(int vType) ;
76
78 bool isCoincidence(void) const;
79
81 bool isLowPt(void) const;
82
84 bool isHighPt(void) const;
85
87 bool isSL(void) const;
88
90 bool isInner(void) const;
91
93 void setBcId(uint16_t bcId);
95 void setL1Id(uint32_t l1Id);
97 void setSswId(uint16_t sswId);
99 void setSlbId(uint16_t slbId);
101 void setSbLoc(uint16_t sbLoc);
103 void setError(uint16_t error);
104
106 uint16_t getBcId() const;
108 uint32_t getL1Id() const;
110 uint16_t getSswId() const;
112 uint16_t getSlbId() const;
114 uint16_t getSbLoc() const;
116 uint16_t getError() const;
117
118 private:
119 enum {
122 };
123
125 TgcSlbData(void);
126
128 // Non-const version which is used in this class only
129 bool * getBitArray(const uint16_t bcTag);
130
131 uint16_t m_bcId;
132 uint32_t m_l1Id;
133 uint16_t m_sswId;
134 uint16_t m_slbId;
135 uint16_t m_sbLoc;
136 uint16_t m_error;
137
144
147
148 };
149} // end of namespace
150
151#endif // MUONTGC_CNVTOOLS_TGCSLBDATA_H
uint16_t bcId(uint32_t data)
unsigned bcTag(unsigned bcBitMap)
TgcSlbData(void)
Costructor.
Definition TgcSlbData.cxx:7
uint32_t getL1Id() const
Get l1Id.
int m_type
SLB type.
Definition TgcSlbData.h:146
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.
void setBitmap(const uint16_t bcTag, const uint32_t cellAddr, const uint32_t cellData)
Store bitmap.
void setType(int vType)
Set SLB type.
virtual ~TgcSlbData(void)
Destructor.
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.
void setError(uint16_t error)
Set Error.
bool m_bitArray_N[BITMAP_SIZE]
Bit array at next bunch.
Definition TgcSlbData.h:143
bool isLowPt(void) const
Check if the SLB type is LowPt.
bool isSL(void) const
Check if the SLB type is SL.
bool m_bitArray_C[BITMAP_SIZE]
Bit array at central bunch.
Definition TgcSlbData.h:139
bool m_bitArray_P[BITMAP_SIZE]
Bit array at previous bunch.
Definition TgcSlbData.h:141
bool isHighPt(void) const
Check if the SLB type is HighPt.
int getType() const
Get SLB type.
uint16_t getSbLoc() const
Get sbLoc.
void setBcId(uint16_t bcId)
Set bcId.
TgcSlbData(uint16_t bcId, uint32_t l1Id, uint16_t sswId, uint16_t slbId)
Costructor.
void setSswId(uint16_t sswId)
Set sswId.
void setSbLoc(uint16_t sbLoc)
Set sbLoc.
const bool * getBitArray(const uint16_t bcTag) const
Get bitArray for a BC tag.
bool isCoincidence(void) const
Check if the SLB type is coincidence.
uint16_t getSlbId() const
Get slbId.
uint16_t getError() const
Get error.
bool isInner(void) const
Check if the SLB type is inner LowPt.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.