|
|
Go to the documentation of this file.
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;
void fromBits(MuonBitsType muonBitsType, unsigned int value)
unsigned int m_Quality
3 bits, 0-7.
bool gBDataKilledLast() const
bool m_Killed
true means that muon was killed during GB
int getCode() const
Combined quality and ptCode, 8 bits [7...6 m_Quality, 5...1 m_PtCode, 0 sign], used in GhoustBusters.
std::string printDebugInfo(int debugFormat) const
Gives debuging info in human readable format (1) or technicall format (2)
static void fromBits(RPCTBMuon &muon, unsigned int value)
static void fromBits(RPCTBMuon &muon, unsigned int value)
static unsigned int toBits(const RPCTBMuon &muon)
static void fromBits(RPCTBMuon &muon, unsigned int value)
static unsigned int toBits(const RPCTBMuon &muon)
void setGBDataKilledLast()
static void fromBits(RPCTBMuon &muon, unsigned int value)
static const int m_signBitsCnt
void setAddress(int etaAddr, int phiAddr)
int getSectorAddr() const
void setEtaAddr(int etaAddr)
void setCode(int code)
Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].
int getContinSegmAddr() const
static const int m_ptBitsCnt
int getSegmentAddr() const
static unsigned int toBits(const RPCTBMuon &muon)
std::string getGBDataBitStr() const
bool gBDataKilledFirst() const
static unsigned int toBits(const RPCTBMuon &muon)
void setCodeAndEtaAddr(int code, int etaAddr)
static const int m_qualBitsCnt
void setGBData(unsigned int gbData)
static void fromBits(RPCTBMuon &muon, unsigned int value)
std::string toString(int format) const
void setPhiAddr(int phiAddr)
unsigned int m_EtaAddress
void setSectorAddr(int sectorAddr)
static unsigned const int shift
void setCodeAndPhiAddr(int code, int phiAddr)
void setGBDataKilledFirst()
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
unsigned int m_PtCode
5 bits, 0-31.
unsigned int m_PhiAddress
int getLogSegment() const
static unsigned int toBits(const RPCTBMuon &muon)
unsigned int toBits() const
MuonBitsType m_muonBitsType