56 std::ostringstream sDebugInfo;
57 if (debugFormat == 1) {
68 return sDebugInfo.str();
76 unsigned int signLocal = 0;
178 #endif //_STAND_ALONE 217 unsigned int shift = 0;
227 unsigned int value = 0;
228 unsigned int shift = 0;
230 shift += m_signBitsCnt;
232 shift += m_ptBitsCnt;
234 shift += m_qualBitsCnt;
241 unsigned int shift = 0;
243 shift += m_signBitsCnt;
245 shift += m_ptBitsCnt;
247 shift += m_qualBitsCnt;
249 shift += m_phiBitsCnt;
251 shift += m_etaBitsCnt;
253 shift += m_gbDataBitsCnt;
257 unsigned int value = 0;
258 unsigned int shift = 0;
260 shift += m_signBitsCnt;
262 shift += m_ptBitsCnt;
264 shift += m_qualBitsCnt;
266 shift += m_phiBitsCnt;
268 shift += m_etaBitsCnt;
270 shift += m_gbDataBitsCnt;
276 unsigned int shift = 0;
278 shift += m_signBitsCnt;
280 shift += m_ptBitsCnt;
282 shift += m_qualBitsCnt;
284 shift += m_phiBitsCnt;
286 shift += m_etaBitsCnt;
288 shift += m_gbDataBitsCnt;
292 unsigned int value = 0;
293 unsigned int shift = 0;
295 shift += m_signBitsCnt;
297 shift += m_ptBitsCnt;
299 shift += m_qualBitsCnt;
301 shift += m_phiBitsCnt;
303 shift += m_etaBitsCnt;
305 shift += m_gbDataBitsCnt;
311 unsigned int value = 0;
313 unsigned int shift = 0;
315 shift += m_signBitsCnt;
318 shift += m_ptBitsCnt;
320 shift += m_qualBitsCnt;
322 shift += m_phiBitsCnt;
324 shift += m_etaBitsCnt;
330 unsigned int shift = 0;
332 shift += m_signBitsCnt;
334 shift += m_ptBitsCnt;
336 shift += m_qualBitsCnt;
338 shift += m_phiBitsCnt;
340 shift += m_etaBitsCnt;
344 unsigned int value = 0;
346 unsigned int shift = 0;
348 unsigned int ptCode = (~(
muon.m_PtCode)) & m_ptBitsMask;
349 unsigned int quality = (~(
muon.m_Quality)) & m_qualBitsMask;
352 shift += m_phiBitsCnt;
354 shift += m_ptBitsCnt;
356 shift += m_qualBitsCnt;
360 shift += m_etaBitsCnt + 1;
362 shift += m_signBitsCnt;
368 unsigned int shift = 0;
369 muon.m_PhiAddress =
value & m_phiBitsMask;
370 shift += m_phiBitsCnt;
372 shift += m_ptBitsCnt;
374 shift += m_qualBitsCnt;
378 shift += m_etaBitsCnt + 1;
380 shift += m_signBitsCnt;
382 muon.m_PtCode = (~(
muon.m_PtCode)) & m_ptBitsMask;
383 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)