#include <RPCTBMuon.h>
Static Public Member Functions | |
static void | fromBits (RPCTBMuon &muon, unsigned int value) |
static unsigned int | toBits (const RPCTBMuon &muon) |
Static Private Attributes | |
static const int | m_etaBitsCnt = 6 |
static const unsigned int | m_etaBitsMask = 0x3f |
static const int | m_gbDataBitsCnt = 2 |
static const unsigned int | m_gbDataBitsMask = 0x3 |
static const int | m_phiBitsCnt = 4 |
static const unsigned int | m_phiBitsMask = 0xf |
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 163 of file RPCTBMuon.h.
void RPCTBMuon::TCOut::fromBits | ( | RPCTBMuon & | muon, |
unsigned int | value | ||
) | [static] |
Definition at line 286 of file RPCTBMuon.cc.
References RPCTBMuon::m_EtaAddress, RPCTBMuon::m_GBData, RPCTBMuon::m_PhiAddress, RPCMuon::m_PtCode, RPCMuon::m_Quality, RPCMuon::m_Sign, 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; muon.m_PhiAddress = (value & (m_phiBitsMask<<shift)) >> shift; shift += m_phiBitsCnt; muon.m_EtaAddress = (value & (m_etaBitsMask<<shift)) >> shift; shift += m_etaBitsCnt; muon.m_GBData = (value & (m_gbDataBitsMask<<shift))>> shift; shift += m_gbDataBitsCnt; }
unsigned int RPCTBMuon::TCOut::toBits | ( | const RPCTBMuon & | muon | ) | [static] |
Definition at line 296 of file RPCTBMuon.cc.
References RPCTBMuon::m_EtaAddress, RPCTBMuon::m_GBData, RPCTBMuon::m_PhiAddress, 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; value = value | (muon.m_PhiAddress<<shift); shift += m_phiBitsCnt; value = value | (muon.m_EtaAddress<<shift); shift += m_etaBitsCnt; value = value | (muon.m_GBData<<shift); shift += m_gbDataBitsCnt; return value; }
const int RPCTBMuon::TCOut::m_etaBitsCnt = 6 [static, private] |
Definition at line 166 of file RPCTBMuon.h.
const unsigned int RPCTBMuon::TCOut::m_etaBitsMask = 0x3f [static, private] |
Definition at line 166 of file RPCTBMuon.h.
const int RPCTBMuon::TCOut::m_gbDataBitsCnt = 2 [static, private] |
Definition at line 165 of file RPCTBMuon.h.
const unsigned int RPCTBMuon::TCOut::m_gbDataBitsMask = 0x3 [static, private] |
Definition at line 165 of file RPCTBMuon.h.
const int RPCTBMuon::TCOut::m_phiBitsCnt = 4 [static, private] |
Definition at line 167 of file RPCTBMuon.h.
const unsigned int RPCTBMuon::TCOut::m_phiBitsMask = 0xf [static, private] |
Definition at line 167 of file RPCTBMuon.h.
const int RPCTBMuon::TCOut::m_ptBitsCnt = 5 [static, private] |
Definition at line 169 of file RPCTBMuon.h.
const unsigned int RPCTBMuon::TCOut::m_ptBitsMask = 0x1f [static, private] |
Definition at line 169 of file RPCTBMuon.h.
const int RPCTBMuon::TCOut::m_qualBitsCnt = 3 [static, private] |
Definition at line 168 of file RPCTBMuon.h.
const unsigned int RPCTBMuon::TCOut::m_qualBitsMask = 0x7 [static, private] |
Definition at line 168 of file RPCTBMuon.h.
const int RPCTBMuon::TCOut::m_signBitsCnt = 1 [static, private] |
Definition at line 170 of file RPCTBMuon.h.
const unsigned int RPCTBMuon::TCOut::m_signBitsMask = 0x1 [static, private] |
Definition at line 170 of file RPCTBMuon.h.