#include <L1Trigger/RPCTrigger/interface/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 = 2 |
static const unsigned int | m_etaBitsMask = 0x3 |
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 148 of file RPCTBMuon.h.
Definition at line 256 of file RPCTBMuon.cc.
References RPCTBMuon::m_EtaAddress, m_etaBitsCnt, RPCTBMuon::m_GBData, m_gbDataBitsCnt, RPCTBMuon::m_PhiAddress, m_phiBitsCnt, m_ptBitsCnt, RPCMuon::m_PtCode, m_qualBitsCnt, RPCMuon::m_Quality, RPCMuon::m_Sign, and m_signBitsCnt.
Referenced by RPCTBMuon::fromBits().
00256 { 00257 unsigned int shift = 0; 00258 muon.m_Sign = (value & (m_signBitsMask<<shift)) >> shift; shift += m_signBitsCnt; 00259 muon.m_PtCode = (value & (m_ptBitsMask<<shift)) >> shift; shift += m_ptBitsCnt; 00260 muon.m_Quality = (value & (m_qualBitsMask<<shift)) >> shift; shift += m_qualBitsCnt; 00261 muon.m_PhiAddress = (value & (m_phiBitsMask<<shift)) >> shift; shift += m_phiBitsCnt; 00262 muon.m_EtaAddress = (value & (m_etaBitsMask<<shift)) >> shift; shift += m_etaBitsCnt; 00263 muon.m_GBData = (value & (m_gbDataBitsMask<<shift))>> shift; shift += m_gbDataBitsCnt; 00264 }
Definition at line 266 of file RPCTBMuon.cc.
References RPCTBMuon::m_EtaAddress, m_etaBitsCnt, RPCTBMuon::m_GBData, m_gbDataBitsCnt, RPCTBMuon::m_PhiAddress, m_phiBitsCnt, m_ptBitsCnt, RPCMuon::m_PtCode, m_qualBitsCnt, RPCMuon::m_Quality, RPCMuon::m_Sign, m_signBitsCnt, and value.
Referenced by RPCTBMuon::toBits().
00266 { 00267 unsigned int value = 0; 00268 unsigned int shift = 0; 00269 value = (muon.m_Sign<<shift); shift += m_signBitsCnt; 00270 value = value | (muon.m_PtCode<<shift); shift += m_ptBitsCnt; 00271 value = value | (muon.m_Quality<<shift); shift += m_qualBitsCnt; 00272 value = value | (muon.m_PhiAddress<<shift); shift += m_phiBitsCnt; 00273 value = value | (muon.m_EtaAddress<<shift); shift += m_etaBitsCnt; 00274 value = value | (muon.m_GBData<<shift); shift += m_gbDataBitsCnt; 00275 return value; 00276 }
const int RPCTBMuon::TBOut::m_etaBitsCnt = 2 [static, private] |
const unsigned int RPCTBMuon::TBOut::m_etaBitsMask = 0x3 [static, private] |
Definition at line 154 of file RPCTBMuon.h.
const int RPCTBMuon::TBOut::m_gbDataBitsCnt = 2 [static, private] |
const unsigned int RPCTBMuon::TBOut::m_gbDataBitsMask = 0x3 [static, private] |
Definition at line 155 of file RPCTBMuon.h.
const int RPCTBMuon::TBOut::m_phiBitsCnt = 4 [static, private] |
const unsigned int RPCTBMuon::TBOut::m_phiBitsMask = 0xf [static, private] |
Definition at line 153 of file RPCTBMuon.h.
const int RPCTBMuon::TBOut::m_ptBitsCnt = 5 [static, private] |
const unsigned int RPCTBMuon::TBOut::m_ptBitsMask = 0x1f [static, private] |
Definition at line 151 of file RPCTBMuon.h.
const int RPCTBMuon::TBOut::m_qualBitsCnt = 3 [static, private] |
const unsigned int RPCTBMuon::TBOut::m_qualBitsMask = 0x7 [static, private] |
Definition at line 150 of file RPCTBMuon.h.
const int RPCTBMuon::TBOut::m_signBitsCnt = 1 [static, private] |
const unsigned int RPCTBMuon::TBOut::m_signBitsMask = 0x1 [static, private] |
Definition at line 152 of file RPCTBMuon.h.