CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

rpctwinmux::TwinMuxTrailer::TwinMuxTrailer ( std::uint64_t const  record = 0x0)
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

std::uint32_t rpctwinmux::TwinMuxTrailer::getCRC ( ) const
unsigned int rpctwinmux::TwinMuxTrailer::getDataLength ( ) const
unsigned int rpctwinmux::TwinMuxTrailer::getEventCounter ( ) const
std::uint64_t const& rpctwinmux::TwinMuxTrailer::getRecord ( ) const
void rpctwinmux::TwinMuxTrailer::reset ( )
void rpctwinmux::TwinMuxTrailer::set ( std::uint64_t const  record)
void rpctwinmux::TwinMuxTrailer::setCRC ( std::uint32_t  crc)

Referenced by TwinMuxTrailer().

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

Referenced by TwinMuxTrailer().

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

Referenced by TwinMuxTrailer().

Member Data Documentation

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

Definition at line 252 of file RPCTwinMuxRecord.h.

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

Definition at line 256 of file RPCTwinMuxRecord.h.

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

Definition at line 254 of file RPCTwinMuxRecord.h.

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

Definition at line 258 of file RPCTwinMuxRecord.h.

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

Definition at line 253 of file RPCTwinMuxRecord.h.

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

Definition at line 257 of file RPCTwinMuxRecord.h.

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

Definition at line 278 of file RPCTwinMuxRecord.h.