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

Protected Attributes

std::uint64_t record_
 

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

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.

35 : record_(record) {}

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

37  : record_(0x0) {
38  setCRC(crc);
39  setEventCounter(event_counter);
40  setDataLength(data_length);
41  }

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

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_

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

Definition at line 67 of file RPCAMCRecord.h.

◆ crc_offset_

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

Definition at line 71 of file RPCAMCRecord.h.

◆ data_length_mask_

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

Definition at line 69 of file RPCAMCRecord.h.

◆ data_length_offset_

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

Definition at line 73 of file RPCAMCRecord.h.

◆ event_counter_mask_

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

Definition at line 68 of file RPCAMCRecord.h.

◆ event_counter_offset_

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

GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpcamc::Trailer::record_
std::uint64_t record_
Definition: RPCAMCRecord.h:93
rpcamc::Trailer::setDataLength
void setDataLength(unsigned int data_length)
rpcamc::Trailer::setEventCounter
void setEventCounter(unsigned int event_counter)
rpcamc::Trailer::setCRC
void setCRC(std::uint32_t crc)