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::uint32_t crc, unsigned int block_number, unsigned int event_counter, unsigned int bx_counter)
 
 BlockTrailer (std::uint64_t const record=0x0)
 
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 const std::uint64_t block_number_mask_ = 0x000000000ff00000
 
static unsigned const int block_number_offset_ = 20
 
static const std::uint64_t bx_counter_mask_ = 0x0000000000000fff
 
static unsigned const int bx_counter_offset_ = 0
 
static const std::uint64_t crc_mask_ = 0xffffffff00000000
 
static unsigned const int crc_offset_ = 32
 
static const std::uint64_t event_counter_mask_ = 0x00000000000ff000
 
static unsigned const int 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.

15 : record_(record) {}

◆ 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.

21  : record_(0x0) {
22  setCRC(crc);
23  setBlockNumber(block_number);
24  setEventCounter(event_counter);
25  setBXCounter(bx_counter);
26  }

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

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_

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

Definition at line 72 of file RPCTwinMuxRecord.h.

◆ block_number_offset_

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

Definition at line 77 of file RPCTwinMuxRecord.h.

◆ bx_counter_mask_

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

Definition at line 74 of file RPCTwinMuxRecord.h.

◆ bx_counter_offset_

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

Definition at line 79 of file RPCTwinMuxRecord.h.

◆ crc_mask_

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

Definition at line 71 of file RPCTwinMuxRecord.h.

◆ crc_offset_

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

Definition at line 76 of file RPCTwinMuxRecord.h.

◆ event_counter_mask_

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

Definition at line 73 of file RPCTwinMuxRecord.h.

◆ event_counter_offset_

unsigned const int 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.

rpctwinmux::BlockTrailer::setBXCounter
void setBXCounter(unsigned int bx_counter)
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpctwinmux::BlockTrailer::setEventCounter
void setEventCounter(unsigned int event_counter)
rpctwinmux::BlockTrailer::setBlockNumber
void setBlockNumber(unsigned int block_number)
rpctwinmux::BlockTrailer::setCRC
void setCRC(std::uint32_t crc)
rpctwinmux::BlockTrailer::record_
std::uint64_t record_
Definition: RPCTwinMuxRecord.h:101