56 std::ostringstream sDebugInfo;
57 if (debugFormat == 1) {
68 return sDebugInfo.str();
76 unsigned int signLocal = 0;
179 #endif //_STAND_ALONE 218 unsigned int shift = 0;
227 unsigned int value = 0;
228 unsigned int shift = 0;
230 shift += m_signBitsCnt;
232 shift += m_ptBitsCnt;
240 unsigned int shift = 0;
242 shift += m_signBitsCnt;
244 shift += m_ptBitsCnt;
246 shift += m_qualBitsCnt;
248 shift += m_phiBitsCnt;
250 shift += m_etaBitsCnt;
255 unsigned int value = 0;
256 unsigned int shift = 0;
258 shift += m_signBitsCnt;
260 shift += m_ptBitsCnt;
262 shift += m_qualBitsCnt;
264 shift += m_phiBitsCnt;
266 shift += m_etaBitsCnt;
273 unsigned int shift = 0;
275 shift += m_signBitsCnt;
277 shift += m_ptBitsCnt;
279 shift += m_qualBitsCnt;
281 shift += m_phiBitsCnt;
283 shift += m_etaBitsCnt;
288 unsigned int value = 0;
289 unsigned int shift = 0;
291 shift += m_signBitsCnt;
293 shift += m_ptBitsCnt;
295 shift += m_qualBitsCnt;
297 shift += m_phiBitsCnt;
299 shift += m_etaBitsCnt;
306 unsigned int value = 0;
308 unsigned int shift = 0;
310 shift += m_signBitsCnt;
313 shift += m_ptBitsCnt;
315 shift += m_qualBitsCnt;
317 shift += m_phiBitsCnt;
324 unsigned int shift = 0;
326 shift += m_signBitsCnt;
328 shift += m_ptBitsCnt;
330 shift += m_qualBitsCnt;
332 shift += m_phiBitsCnt;
337 unsigned int value = 0;
339 unsigned int shift = 0;
341 unsigned int ptCode = (~(
muon.m_PtCode)) & m_ptBitsMask;
342 unsigned int quality = (~(
muon.m_Quality)) & m_qualBitsMask;
345 shift += m_phiBitsCnt;
347 shift += m_ptBitsCnt;
349 shift += m_qualBitsCnt;
353 shift += m_etaBitsCnt + 1;
360 unsigned int shift = 0;
361 muon.m_PhiAddress =
value & m_phiBitsMask;
362 shift += m_phiBitsCnt;
364 shift += m_ptBitsCnt;
366 shift += m_qualBitsCnt;
370 shift += m_etaBitsCnt + 1;
373 muon.m_PtCode = (~(
muon.m_PtCode)) & m_ptBitsMask;
374 muon.m_Quality = (~(
muon.m_Quality)) & m_qualBitsMask;
static const int m_ptBitsCnt
static void fromBits(RPCTBMuon &muon, unsigned int value)
std::string getGBDataBitStr() const
unsigned int m_PhiAddress
unsigned int m_PtCode
5 bits, 0-31.
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
void setCodeAndEtaAddr(int code, int etaAddr)
static unsigned int toBits(const RPCTBMuon &muon)
static void fromBits(RPCTBMuon &muon, unsigned int value)
void setGBData(unsigned int gbData)
static void fromBits(RPCTBMuon &muon, unsigned int value)
static unsigned int toBits(const RPCTBMuon &muon)
int getCode() const
Combined quality and ptCode, 8 bits [7...6 m_Quality, 5...1 m_PtCode, 0 sign], used in GhoustBusters...
int getLogSegment() const
std::string printDebugInfo(int debugFormat) const
Gives debuging info in human readable format (1) or technicall format (2)
void setGBDataKilledFirst()
void setAddress(int etaAddr, int phiAddr)
static unsigned int toBits(const RPCTBMuon &muon)
void setEtaAddr(int etaAddr)
int getSectorAddr() const
void setCodeAndPhiAddr(int code, int phiAddr)
int getContinSegmAddr() const
int getSegmentAddr() const
static void fromBits(RPCTBMuon &muon, unsigned int value)
unsigned int toBits() const
void setCode(int code)
Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].
bool m_Killed
true means that muon was killed during GB
void fromBits(MuonBitsType muonBitsType, unsigned int value)
MuonBitsType m_muonBitsType
bool gBDataKilledLast() const
std::string toString(int format) const
bool gBDataKilledFirst() const
unsigned int m_EtaAddress
static unsigned int const shift
static unsigned int toBits(const RPCTBMuon &muon)
unsigned int m_Quality
3 bits, 0-7.
void setSectorAddr(int sectorAddr)
void setPhiAddr(int phiAddr)
static void fromBits(RPCTBMuon &muon, unsigned int value)
void setGBDataKilledLast()
static const int m_signBitsCnt
static unsigned int toBits(const RPCTBMuon &muon)