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 69 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

◆ BlockTrailer() [1/2]

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

Definition at line 15 of file RPCTwinMuxRecord.cc.

◆ BlockTrailer() [2/2]

rpctwinmux::BlockTrailer::BlockTrailer ( std::uint32_t  crc,
unsigned int  block_number,
unsigned int  event_counter,
unsigned int  bx_counter 
)

Definition at line 17 of file RPCTwinMuxRecord.cc.

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

21  : record_(0x0) {
22  setCRC(crc);
23  setBlockNumber(block_number);
24  setEventCounter(event_counter);
25  setBXCounter(bx_counter);
26  }
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

◆ getBlockNumber()

unsigned int rpctwinmux::BlockTrailer::getBlockNumber ( ) const

◆ getBXCounter()

unsigned int rpctwinmux::BlockTrailer::getBXCounter ( ) const

◆ getCRC()

std::uint32_t rpctwinmux::BlockTrailer::getCRC ( ) const

◆ getEventCounter()

unsigned int rpctwinmux::BlockTrailer::getEventCounter ( ) const

◆ getRecord()

std::uint64_t const& rpctwinmux::BlockTrailer::getRecord ( ) const

◆ reset()

void rpctwinmux::BlockTrailer::reset ( )

◆ set()

void rpctwinmux::BlockTrailer::set ( std::uint64_t const  record)

◆ setBlockNumber()

void rpctwinmux::BlockTrailer::setBlockNumber ( unsigned int  block_number)

Referenced by BlockTrailer().

◆ setBXCounter()

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

Referenced by BlockTrailer().

◆ setCRC()

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

Referenced by BlockTrailer().

◆ setEventCounter()

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

Referenced by BlockTrailer().

Member Data Documentation

◆ block_number_mask_

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

Definition at line 72 of file RPCTwinMuxRecord.h.

◆ block_number_offset_

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

Definition at line 77 of file RPCTwinMuxRecord.h.

◆ bx_counter_mask_

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

Definition at line 74 of file RPCTwinMuxRecord.h.

◆ bx_counter_offset_

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

Definition at line 79 of file RPCTwinMuxRecord.h.

◆ crc_mask_

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

Definition at line 71 of file RPCTwinMuxRecord.h.

◆ crc_offset_

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

Definition at line 76 of file RPCTwinMuxRecord.h.

◆ event_counter_mask_

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

Definition at line 73 of file RPCTwinMuxRecord.h.

◆ event_counter_offset_

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

Definition at line 78 of file RPCTwinMuxRecord.h.

◆ record_

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

Definition at line 101 of file RPCTwinMuxRecord.h.