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

Constructor & Destructor Documentation

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

Definition at line 105 of file RPCTwinMuxRecord.cc.

106  : record_(record)
107 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
rpctwinmux::TwinMuxTrailer::TwinMuxTrailer ( std::uint32_t  crc,
unsigned int  event_counter,
unsigned int  data_length 
)

Definition at line 109 of file RPCTwinMuxRecord.cc.

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

112  : record_(0x0)
113 {
114  setCRC(crc);
115  setEventCounter(event_counter);
116  setDataLength(data_length);
117 }
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 259 of file RPCTwinMuxRecord.h.

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

Definition at line 263 of file RPCTwinMuxRecord.h.

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

Definition at line 261 of file RPCTwinMuxRecord.h.

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

Definition at line 265 of file RPCTwinMuxRecord.h.

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

Definition at line 260 of file RPCTwinMuxRecord.h.

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

Definition at line 264 of file RPCTwinMuxRecord.h.

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

Definition at line 287 of file RPCTwinMuxRecord.h.