#include <RPCTBMuon.h>
Static Public Member Functions | |
static void | fromBits (RPCTBMuon &muon, unsigned int value) |
static const int | getMuonBitsCnt () |
static unsigned int | toBits (const RPCTBMuon &muon) |
Static Private Attributes | |
static const int | m_ptBitsCnt = 5 |
static const unsigned int | m_ptBitsMask = 0x1f |
static const int | m_qualBitsCnt = 3 |
static const unsigned int | m_qualBitsMask = 0x7 |
static const int | m_signBitsCnt = 1 |
static const unsigned int | m_signBitsMask = 0x1 |
Definition at line 133 of file RPCTBMuon.h.
void RPCTBMuon::PACOut::fromBits | ( | RPCTBMuon & | muon, |
unsigned int | value | ||
) | [static] |
Definition at line 245 of file RPCTBMuon.cc.
References m_ptBitsCnt, RPCMuon::m_PtCode, m_qualBitsCnt, RPCMuon::m_Quality, RPCMuon::m_Sign, m_signBitsCnt, and edm::shift.
Referenced by RPCTBMuon::fromBits().
{ unsigned int shift = 0; muon.m_Sign = (value & (m_signBitsMask<<shift)) >> shift; shift += m_signBitsCnt; muon.m_PtCode = (value & (m_ptBitsMask<<shift)) >> shift; shift += m_ptBitsCnt; muon.m_Quality = (value & (m_qualBitsMask<<shift)) >> shift; shift += m_qualBitsCnt; }
static const int RPCTBMuon::PACOut::getMuonBitsCnt | ( | ) | [inline, static] |
Definition at line 142 of file RPCTBMuon.h.
References m_ptBitsCnt, m_qualBitsCnt, and m_signBitsCnt.
{ return m_qualBitsCnt + m_ptBitsCnt + m_signBitsCnt; }
unsigned int RPCTBMuon::PACOut::toBits | ( | const RPCTBMuon & | muon | ) | [static] |
Definition at line 252 of file RPCTBMuon.cc.
References RPCMuon::m_PtCode, RPCMuon::m_Quality, RPCMuon::m_Sign, edm::shift, and relativeConstraints::value.
Referenced by RPCTBMuon::toBits().
{ unsigned int value = 0; unsigned int shift = 0; value = (muon.m_Sign<<shift); shift += m_signBitsCnt; value = value | (muon.m_PtCode<<shift); shift += m_ptBitsCnt; value = value | (muon.m_Quality<<shift); shift += m_qualBitsCnt; return value; }
const int RPCTBMuon::PACOut::m_ptBitsCnt = 5 [static, private] |
Definition at line 136 of file RPCTBMuon.h.
Referenced by fromBits(), and getMuonBitsCnt().
const unsigned int RPCTBMuon::PACOut::m_ptBitsMask = 0x1f [static, private] |
Definition at line 136 of file RPCTBMuon.h.
const int RPCTBMuon::PACOut::m_qualBitsCnt = 3 [static, private] |
Definition at line 135 of file RPCTBMuon.h.
Referenced by fromBits(), and getMuonBitsCnt().
const unsigned int RPCTBMuon::PACOut::m_qualBitsMask = 0x7 [static, private] |
Definition at line 135 of file RPCTBMuon.h.
const int RPCTBMuon::PACOut::m_signBitsCnt = 1 [static, private] |
Definition at line 137 of file RPCTBMuon.h.
Referenced by fromBits(), and getMuonBitsCnt().
const unsigned int RPCTBMuon::PACOut::m_signBitsMask = 0x1 [static, private] |
Definition at line 137 of file RPCTBMuon.h.