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::uint32_t crc, unsigned int event_counter, unsigned int data_length)
 
 TwinMuxTrailer (std::uint64_t const record=0x0)
 

Static Public Attributes

static const std::uint64_t crc_mask_ = 0xffffffff00000000
 
static unsigned const int crc_offset_ = 32
 
static const std::uint64_t data_length_mask_ = 0x00000000000fffff
 
static unsigned const int data_length_offset_ = 0
 
static const std::uint64_t event_counter_mask_ = 0x00000000ff000000
 
static unsigned const int 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)

Definition at line 91 of file RPCTwinMuxRecord.cc.

91 : record_(record) {}

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

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

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

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_

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

Definition at line 252 of file RPCTwinMuxRecord.h.

◆ crc_offset_

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

Definition at line 256 of file RPCTwinMuxRecord.h.

◆ data_length_mask_

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

Definition at line 254 of file RPCTwinMuxRecord.h.

◆ data_length_offset_

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

Definition at line 258 of file RPCTwinMuxRecord.h.

◆ event_counter_mask_

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

Definition at line 253 of file RPCTwinMuxRecord.h.

◆ event_counter_offset_

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

GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpctwinmux::TwinMuxTrailer::setCRC
void setCRC(std::uint32_t crc)
rpctwinmux::TwinMuxTrailer::setEventCounter
void setEventCounter(unsigned int event_counter)
rpctwinmux::TwinMuxTrailer::setDataLength
void setDataLength(unsigned int data_length)
rpctwinmux::TwinMuxTrailer::record_
std::uint64_t record_
Definition: RPCTwinMuxRecord.h:278