CMS 3D CMS Logo

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

#include <RPCTwinMuxRecord.h>

Public Member Functions

std::uint32_t getCRC () const
 
unsigned int getDataLength () const
 
unsigned int getEventCounter () const
 
std::uint64_t const & getRecord () const
 
void reset ()
 
void set (std::uint64_t const record)
 
void setCRC (std::uint32_t crc)
 
void setDataLength (unsigned int data_length)
 
void setEventCounter (unsigned int event_counter)
 
 TwinMuxTrailer (std::uint64_t const record=0x0)
 
 TwinMuxTrailer (std::uint32_t crc, unsigned int event_counter, unsigned int data_length)
 

Static Public Attributes

static std::uint64_t const crc_mask_ = 0xffffffff00000000
 
static unsigned int const crc_offset_ = 32
 
static std::uint64_t const data_length_mask_ = 0x00000000000fffff
 
static unsigned int const data_length_offset_ = 0
 
static std::uint64_t const event_counter_mask_ = 0x00000000ff000000
 
static unsigned int const event_counter_offset_ = 24
 

Protected Attributes

std::uint64_t record_
 

Detailed Description

Definition at line 250 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

◆ TwinMuxTrailer() [1/2]

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

◆ TwinMuxTrailer() [2/2]

rpctwinmux::TwinMuxTrailer::TwinMuxTrailer ( std::uint32_t  crc,
unsigned int  event_counter,
unsigned int  data_length 
)

Definition at line 93 of file RPCTwinMuxRecord.cc.

References setCRC(), setDataLength(), and setEventCounter().

94  : record_(0x0) {
95  setCRC(crc);
96  setEventCounter(event_counter);
97  setDataLength(data_length);
98  }
void setEventCounter(unsigned int event_counter)
void setCRC(std::uint32_t crc)
void setDataLength(unsigned int data_length)

Member Function Documentation

◆ getCRC()

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

◆ getDataLength()

unsigned int rpctwinmux::TwinMuxTrailer::getDataLength ( ) const

◆ getEventCounter()

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

◆ getRecord()

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

◆ reset()

void rpctwinmux::TwinMuxTrailer::reset ( )

◆ set()

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

◆ setCRC()

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

Referenced by TwinMuxTrailer().

◆ setDataLength()

void rpctwinmux::TwinMuxTrailer::setDataLength ( unsigned int  data_length)

Referenced by TwinMuxTrailer().

◆ setEventCounter()

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

Referenced by TwinMuxTrailer().

Member Data Documentation

◆ crc_mask_

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

Definition at line 252 of file RPCTwinMuxRecord.h.

◆ crc_offset_

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

Definition at line 256 of file RPCTwinMuxRecord.h.

◆ data_length_mask_

std::uint64_t const rpctwinmux::TwinMuxTrailer::data_length_mask_ = 0x00000000000fffff
static

Definition at line 254 of file RPCTwinMuxRecord.h.

◆ data_length_offset_

unsigned int const rpctwinmux::TwinMuxTrailer::data_length_offset_ = 0
static

Definition at line 258 of file RPCTwinMuxRecord.h.

◆ event_counter_mask_

std::uint64_t const rpctwinmux::TwinMuxTrailer::event_counter_mask_ = 0x00000000ff000000
static

Definition at line 253 of file RPCTwinMuxRecord.h.

◆ event_counter_offset_

unsigned int const rpctwinmux::TwinMuxTrailer::event_counter_offset_ = 24
static

Definition at line 257 of file RPCTwinMuxRecord.h.

◆ record_

std::uint64_t rpctwinmux::TwinMuxTrailer::record_
protected

Definition at line 278 of file RPCTwinMuxRecord.h.