CMS 3D CMS Logo

List of all members | Static Public Member Functions | Static Private Attributes
RPCTBMuon::TCOut Class Reference

#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
 

Detailed Description

Definition at line 158 of file RPCTBMuon.h.

Member Function Documentation

◆ fromBits()

void RPCTBMuon::TCOut::fromBits ( RPCTBMuon muon,
unsigned int  value 
)
static

Definition at line 276 of file RPCTBMuon.cc.

References edm::shift.

Referenced by RPCTBMuon::fromBits().

276  {
277  unsigned int shift = 0;
278  muon.m_Sign = (value & (m_signBitsMask << shift)) >> shift;
279  shift += m_signBitsCnt;
280  muon.m_PtCode = (value & (m_ptBitsMask << shift)) >> shift;
281  shift += m_ptBitsCnt;
282  muon.m_Quality = (value & (m_qualBitsMask << shift)) >> shift;
283  shift += m_qualBitsCnt;
284  muon.m_PhiAddress = (value & (m_phiBitsMask << shift)) >> shift;
285  shift += m_phiBitsCnt;
286  muon.m_EtaAddress = (value & (m_etaBitsMask << shift)) >> shift;
287  shift += m_etaBitsCnt;
288  muon.m_GBData = (value & (m_gbDataBitsMask << shift)) >> shift;
290 }
static const int m_phiBitsCnt
Definition: RPCTBMuon.h:164
static const int m_qualBitsCnt
Definition: RPCTBMuon.h:166
static const int m_ptBitsCnt
Definition: RPCTBMuon.h:168
Definition: value.py:1
static const int m_signBitsCnt
Definition: RPCTBMuon.h:170
static const int m_etaBitsCnt
Definition: RPCTBMuon.h:162
static const int m_gbDataBitsCnt
Definition: RPCTBMuon.h:160
static unsigned int const shift

◆ toBits()

unsigned int RPCTBMuon::TCOut::toBits ( const RPCTBMuon muon)
static

Definition at line 292 of file RPCTBMuon.cc.

References edm::shift, and relativeConstraints::value.

Referenced by RPCTBMuon::toBits().

292  {
293  unsigned int value = 0;
294  unsigned int shift = 0;
295  value = (muon.m_Sign << shift);
296  shift += m_signBitsCnt;
297  value = value | (muon.m_PtCode << shift);
298  shift += m_ptBitsCnt;
299  value = value | (muon.m_Quality << shift);
300  shift += m_qualBitsCnt;
301  value = value | (muon.m_PhiAddress << shift);
302  shift += m_phiBitsCnt;
303  value = value | (muon.m_EtaAddress << shift);
304  shift += m_etaBitsCnt;
305  value = value | (muon.m_GBData << shift);
307  return value;
308 }
static const int m_phiBitsCnt
Definition: RPCTBMuon.h:164
static const int m_qualBitsCnt
Definition: RPCTBMuon.h:166
static const int m_ptBitsCnt
Definition: RPCTBMuon.h:168
Definition: value.py:1
static const int m_signBitsCnt
Definition: RPCTBMuon.h:170
static const int m_etaBitsCnt
Definition: RPCTBMuon.h:162
static const int m_gbDataBitsCnt
Definition: RPCTBMuon.h:160
static unsigned int const shift

Member Data Documentation

◆ m_etaBitsCnt

const int RPCTBMuon::TCOut::m_etaBitsCnt = 6
staticprivate

Definition at line 162 of file RPCTBMuon.h.

◆ m_etaBitsMask

const unsigned int RPCTBMuon::TCOut::m_etaBitsMask = 0x3f
staticprivate

Definition at line 163 of file RPCTBMuon.h.

◆ m_gbDataBitsCnt

const int RPCTBMuon::TCOut::m_gbDataBitsCnt = 2
staticprivate

Definition at line 160 of file RPCTBMuon.h.

◆ m_gbDataBitsMask

const unsigned int RPCTBMuon::TCOut::m_gbDataBitsMask = 0x3
staticprivate

Definition at line 161 of file RPCTBMuon.h.

◆ m_phiBitsCnt

const int RPCTBMuon::TCOut::m_phiBitsCnt = 4
staticprivate

Definition at line 164 of file RPCTBMuon.h.

◆ m_phiBitsMask

const unsigned int RPCTBMuon::TCOut::m_phiBitsMask = 0xf
staticprivate

Definition at line 165 of file RPCTBMuon.h.

◆ m_ptBitsCnt

const int RPCTBMuon::TCOut::m_ptBitsCnt = 5
staticprivate

Definition at line 168 of file RPCTBMuon.h.

◆ m_ptBitsMask

const unsigned int RPCTBMuon::TCOut::m_ptBitsMask = 0x1f
staticprivate

Definition at line 169 of file RPCTBMuon.h.

◆ m_qualBitsCnt

const int RPCTBMuon::TCOut::m_qualBitsCnt = 3
staticprivate

Definition at line 166 of file RPCTBMuon.h.

◆ m_qualBitsMask

const unsigned int RPCTBMuon::TCOut::m_qualBitsMask = 0x7
staticprivate

Definition at line 167 of file RPCTBMuon.h.

◆ m_signBitsCnt

const int RPCTBMuon::TCOut::m_signBitsCnt = 1
staticprivate

Definition at line 170 of file RPCTBMuon.h.

◆ m_signBitsMask

const unsigned int RPCTBMuon::TCOut::m_signBitsMask = 0x1
staticprivate

Definition at line 171 of file RPCTBMuon.h.