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 65 of file RPCAMCRecord.h.

Constructor & Destructor Documentation

◆ Trailer() [1/2]

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

Definition at line 35 of file RPCAMCRecord.cc.

◆ Trailer() [2/2]

rpcamc::Trailer::Trailer ( std::uint32_t  crc,
unsigned int  event_counter,
unsigned int  data_length 
)

Definition at line 37 of file RPCAMCRecord.cc.

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

37  : record_(0x0) {
38  setCRC(crc);
39  setEventCounter(event_counter);
40  setDataLength(data_length);
41  }
void setCRC(std::uint32_t crc)
std::uint64_t record_
Definition: RPCAMCRecord.h:93
void setDataLength(unsigned int data_length)
void setEventCounter(unsigned int event_counter)

Member Function Documentation

◆ getCRC()

std::uint32_t rpcamc::Trailer::getCRC ( ) const

◆ getDataLength()

unsigned int rpcamc::Trailer::getDataLength ( ) const

◆ getEventCounter()

unsigned int rpcamc::Trailer::getEventCounter ( ) const

◆ getRecord()

std::uint64_t const& rpcamc::Trailer::getRecord ( ) const

◆ reset()

void rpcamc::Trailer::reset ( )

◆ set()

void rpcamc::Trailer::set ( std::uint64_t const  record)

◆ setCRC()

void rpcamc::Trailer::setCRC ( std::uint32_t  crc)

Referenced by Trailer().

◆ setDataLength()

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

Referenced by Trailer().

◆ setEventCounter()

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

Referenced by Trailer().

Member Data Documentation

◆ crc_mask_

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

Definition at line 67 of file RPCAMCRecord.h.

◆ crc_offset_

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

Definition at line 71 of file RPCAMCRecord.h.

◆ data_length_mask_

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

Definition at line 69 of file RPCAMCRecord.h.

◆ data_length_offset_

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

Definition at line 73 of file RPCAMCRecord.h.

◆ event_counter_mask_

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

Definition at line 68 of file RPCAMCRecord.h.

◆ event_counter_offset_

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

Definition at line 72 of file RPCAMCRecord.h.

◆ record_

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

Definition at line 93 of file RPCAMCRecord.h.