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;
228 unsigned int value = 0;
229 unsigned int shift = 0;
231 shift += m_signBitsCnt;
233 shift += m_ptBitsCnt;
235 shift += m_qualBitsCnt;
242 unsigned int shift = 0;
244 shift += m_signBitsCnt;
246 shift += m_ptBitsCnt;
248 shift += m_qualBitsCnt;
250 shift += m_phiBitsCnt;
252 shift += m_etaBitsCnt;
254 shift += m_gbDataBitsCnt;
258 unsigned int value = 0;
259 unsigned int shift = 0;
261 shift += m_signBitsCnt;
263 shift += m_ptBitsCnt;
265 shift += m_qualBitsCnt;
267 shift += m_phiBitsCnt;
269 shift += m_etaBitsCnt;
271 shift += m_gbDataBitsCnt;
277 unsigned int shift = 0;
279 shift += m_signBitsCnt;
281 shift += m_ptBitsCnt;
283 shift += m_qualBitsCnt;
285 shift += m_phiBitsCnt;
287 shift += m_etaBitsCnt;
289 shift += m_gbDataBitsCnt;
293 unsigned int value = 0;
294 unsigned int shift = 0;
296 shift += m_signBitsCnt;
298 shift += m_ptBitsCnt;
300 shift += m_qualBitsCnt;
302 shift += m_phiBitsCnt;
304 shift += m_etaBitsCnt;
306 shift += m_gbDataBitsCnt;
312 unsigned int value = 0;
314 unsigned int shift = 0;
316 shift += m_signBitsCnt;
319 shift += m_ptBitsCnt;
321 shift += m_qualBitsCnt;
323 shift += m_phiBitsCnt;
325 shift += m_etaBitsCnt;
331 unsigned int shift = 0;
333 shift += m_signBitsCnt;
335 shift += m_ptBitsCnt;
337 shift += m_qualBitsCnt;
339 shift += m_phiBitsCnt;
341 shift += m_etaBitsCnt;
345 unsigned int value = 0;
347 unsigned int shift = 0;
349 unsigned int ptCode = (~(
muon.m_PtCode)) & m_ptBitsMask;
350 unsigned int quality = (~(
muon.m_Quality)) & m_qualBitsMask;
353 shift += m_phiBitsCnt;
355 shift += m_ptBitsCnt;
357 shift += m_qualBitsCnt;
361 shift += m_etaBitsCnt + 1;
363 shift += m_signBitsCnt;
369 unsigned int shift = 0;
370 muon.m_PhiAddress =
value & m_phiBitsMask;
371 shift += m_phiBitsCnt;
373 shift += m_ptBitsCnt;
375 shift += m_qualBitsCnt;
379 shift += m_etaBitsCnt + 1;
381 shift += m_signBitsCnt;
383 muon.m_PtCode = (~(
muon.m_PtCode)) & m_ptBitsMask;
384 muon.m_Quality = (~(
muon.m_Quality)) & m_qualBitsMask;
static const int m_ptBitsCnt
static const int m_qualBitsCnt
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)