CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes
rpcamc::Trailer Class Reference

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

Protected Attributes

std::uint64_t record_
 

Static Protected 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
 

Detailed Description

Definition at line 66 of file RPCAMCRecord.h.

Constructor & Destructor Documentation

rpcamc::Trailer::Trailer ( std::uint64_t const  record = 0x0)

Definition at line 39 of file RPCAMCRecord.cc.

40  : record_(record)
41 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
std::uint64_t record_
Definition: RPCAMCRecord.h:97
rpcamc::Trailer::Trailer ( std::uint32_t  crc,
unsigned int  event_counter,
unsigned int  data_length 
)

Definition at line 43 of file RPCAMCRecord.cc.

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

46  : record_(0x0)
47 {
48  setCRC(crc);
49  setEventCounter(event_counter);
50  setDataLength(data_length);
51 }
void setCRC(std::uint32_t crc)
std::uint64_t record_
Definition: RPCAMCRecord.h:97
void setDataLength(unsigned int data_length)
void setEventCounter(unsigned int event_counter)

Member Function Documentation

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

Referenced by Trailer().

void rpcamc::Trailer::setDataLength ( unsigned int  data_length)

Referenced by Trailer().

void rpcamc::Trailer::setEventCounter ( unsigned int  event_counter)

Referenced by Trailer().

Member Data Documentation

std::uint64_t const rpcamc::Trailer::crc_mask_ = 0xffffffff00000000
staticprotected

Definition at line 69 of file RPCAMCRecord.h.

unsigned int const rpcamc::Trailer::crc_offset_ = 32
staticprotected

Definition at line 73 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Trailer::data_length_mask_ = 0x00000000000fffff
staticprotected

Definition at line 71 of file RPCAMCRecord.h.

unsigned int const rpcamc::Trailer::data_length_offset_ = 0
staticprotected

Definition at line 75 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Trailer::event_counter_mask_ = 0x00000000ff000000
staticprotected

Definition at line 70 of file RPCAMCRecord.h.

unsigned int const rpcamc::Trailer::event_counter_offset_ = 24
staticprotected

Definition at line 74 of file RPCAMCRecord.h.

std::uint64_t rpcamc::Trailer::record_
protected

Definition at line 97 of file RPCAMCRecord.h.