26 :
RPCMuon(ptCode, quality, sign, patternNum, firedPlanes) {
38 :
RPCMuon(ptCode, quality, sign, 0, 0) {
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;
218 muon.
m_Sign = (value & (m_signBitsMask << shift)) >>
shift;
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;
242 muon.
m_Sign = (value & (m_signBitsMask << shift)) >>
shift;
243 shift += m_signBitsCnt;
245 shift += m_ptBitsCnt;
247 shift += m_qualBitsCnt;
249 shift += m_phiBitsCnt;
251 shift += m_etaBitsCnt;
252 muon.
m_GBData = (value & (m_gbDataBitsMask << shift)) >>
shift;
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;
277 muon.
m_Sign = (value & (m_signBitsMask << shift)) >>
shift;
278 shift += m_signBitsCnt;
280 shift += m_ptBitsCnt;
282 shift += m_qualBitsCnt;
284 shift += m_phiBitsCnt;
286 shift += m_etaBitsCnt;
287 muon.
m_GBData = (value & (m_gbDataBitsMask << shift)) >>
shift;
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;
331 muon.
m_Sign = (value & (m_signBitsMask << shift)) >>
shift;
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;
352 shift += m_phiBitsCnt;
353 value = value | (ptCode <<
shift);
354 shift += m_ptBitsCnt;
355 value = value | (quality <<
shift);
356 shift += m_qualBitsCnt;
360 shift += m_etaBitsCnt + 1;
362 shift += m_signBitsCnt;
368 unsigned int shift = 0;
370 shift += m_phiBitsCnt;
372 shift += m_ptBitsCnt;
374 shift += m_qualBitsCnt;
378 shift += m_etaBitsCnt + 1;
379 muon.
m_Sign = (value & (m_signBitsMask << shift)) >>
shift;
380 shift += m_signBitsCnt;
391 }
else if (format == 1) {
394 }
else if (format == 2) {
bool gBDataKilledLast() const
static const int m_ptBitsCnt
static const int m_qualBitsCnt
static void fromBits(RPCTBMuon &muon, unsigned int value)
uint32_t const *__restrict__ Quality * quality
std::string getGBDataBitStr() const
std::string toString(int format) const
int getSegmentAddr() const
unsigned int m_PhiAddress
unsigned int toBits() const
int getCode() const
Combined quality and ptCode, 8 bits [7...6 m_Quality, 5...1 m_PtCode, 0 sign], used in GhoustBusters...
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 getSectorAddr() const
int getLogSegment() const
void setGBDataKilledFirst()
void setAddress(int etaAddr, int phiAddr)
static unsigned int toBits(const RPCTBMuon &muon)
void setEtaAddr(int etaAddr)
void setCodeAndPhiAddr(int code, int phiAddr)
int getContinSegmAddr() const
static void fromBits(RPCTBMuon &muon, unsigned int value)
std::string printDebugInfo(int debugFormat) const
Gives debuging info in human readable format (1) or technicall format (2)
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 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)