CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Protected Attributes
rpctwinmux::BlockTrailer Class Reference

#include <RPCTwinMuxRecord.h>

Public Member Functions

 BlockTrailer (std::uint64_t const record=0x0)
 
 BlockTrailer (std::uint32_t crc, unsigned int block_number, unsigned int event_counter, unsigned int bx_counter)
 
unsigned int getBlockNumber () const
 
unsigned int getBXCounter () const
 
std::uint32_t getCRC () const
 
unsigned int getEventCounter () const
 
std::uint64_t const & getRecord () const
 
void reset ()
 
void set (std::uint64_t const record)
 
void setBlockNumber (unsigned int block_number)
 
void setBXCounter (unsigned int bx_counter)
 
void setCRC (std::uint32_t crc)
 
void setEventCounter (unsigned int event_counter)
 

Static Public Attributes

static std::uint64_t const block_number_mask_ = 0x000000000ff00000
 
static unsigned int const block_number_offset_ = 20
 
static std::uint64_t const bx_counter_mask_ = 0x0000000000000fff
 
static unsigned int const bx_counter_offset_ = 0
 
static std::uint64_t const crc_mask_ = 0xffffffff00000000
 
static unsigned int const crc_offset_ = 32
 
static std::uint64_t const event_counter_mask_ = 0x00000000000ff000
 
static unsigned int const event_counter_offset_ = 12
 

Protected Attributes

std::uint64_t record_
 

Detailed Description

Definition at line 71 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

rpctwinmux::BlockTrailer::BlockTrailer ( std::uint64_t const  record = 0x0)

Definition at line 21 of file RPCTwinMuxRecord.cc.

22  : record_(record)
23 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
rpctwinmux::BlockTrailer::BlockTrailer ( std::uint32_t  crc,
unsigned int  block_number,
unsigned int  event_counter,
unsigned int  bx_counter 
)

Definition at line 25 of file RPCTwinMuxRecord.cc.

References setBlockNumber(), setBXCounter(), setCRC(), and setEventCounter().

29  : record_(0x0)
30 {
31  setCRC(crc);
32  setBlockNumber(block_number);
33  setEventCounter(event_counter);
34  setBXCounter(bx_counter);
35 }
void setBXCounter(unsigned int bx_counter)
void setEventCounter(unsigned int event_counter)
void setBlockNumber(unsigned int block_number)
void setCRC(std::uint32_t crc)

Member Function Documentation

unsigned int rpctwinmux::BlockTrailer::getBlockNumber ( ) const
unsigned int rpctwinmux::BlockTrailer::getBXCounter ( ) const
std::uint32_t rpctwinmux::BlockTrailer::getCRC ( ) const
unsigned int rpctwinmux::BlockTrailer::getEventCounter ( ) const
std::uint64_t const& rpctwinmux::BlockTrailer::getRecord ( ) const
void rpctwinmux::BlockTrailer::reset ( )
void rpctwinmux::BlockTrailer::set ( std::uint64_t const  record)
void rpctwinmux::BlockTrailer::setBlockNumber ( unsigned int  block_number)

Referenced by BlockTrailer().

void rpctwinmux::BlockTrailer::setBXCounter ( unsigned int  bx_counter)

Referenced by BlockTrailer().

void rpctwinmux::BlockTrailer::setCRC ( std::uint32_t  crc)

Referenced by BlockTrailer().

void rpctwinmux::BlockTrailer::setEventCounter ( unsigned int  event_counter)

Referenced by BlockTrailer().

Member Data Documentation

std::uint64_t const rpctwinmux::BlockTrailer::block_number_mask_ = 0x000000000ff00000
static

Definition at line 75 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockTrailer::block_number_offset_ = 20
static

Definition at line 80 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockTrailer::bx_counter_mask_ = 0x0000000000000fff
static

Definition at line 77 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockTrailer::bx_counter_offset_ = 0
static

Definition at line 82 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockTrailer::crc_mask_ = 0xffffffff00000000
static

Definition at line 74 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockTrailer::crc_offset_ = 32
static

Definition at line 79 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockTrailer::event_counter_mask_ = 0x00000000000ff000
static

Definition at line 76 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockTrailer::event_counter_offset_ = 12
static

Definition at line 81 of file RPCTwinMuxRecord.h.

std::uint64_t rpctwinmux::BlockTrailer::record_
protected

Definition at line 107 of file RPCTwinMuxRecord.h.