CMS 3D CMS Logo

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

#include <RPCAMC13Record.h>

Public Member Functions

unsigned int getBlockNumber () const
 
unsigned int getBXCounter () const
 
std::uint32_t getCRC () const
 
unsigned int getEventCounter () const
 
std::uint64_t const & getRecord () const
 
void reset ()
 
void set (std::uint64_t const record)
 
void setBlockNumber (unsigned int block_number)
 
void setBXCounter (unsigned int bx_counter)
 
void setCRC (std::uint32_t crc)
 
void setEventCounter (unsigned int event_counter)
 
 Trailer (std::uint64_t const record=0x0)
 
 Trailer (std::uint32_t crc, unsigned int block_number, unsigned int event_counter, unsigned int bx_counter)
 

Protected Attributes

std::uint64_t record_
 

Static Protected Attributes

static std::uint64_t const block_number_mask_ = 0x000000000ff00000
 
static unsigned int const block_number_offset_ = 20
 
static std::uint64_t const bx_counter_mask_ = 0x0000000000000fff
 
static unsigned int const bx_counter_offset_ = 0
 
static std::uint64_t const crc_mask_ = 0xffffffff00000000
 
static unsigned int const crc_offset_ = 32
 
static std::uint64_t const event_counter_mask_ = 0x00000000000ff000
 
static unsigned int const event_counter_offset_ = 12
 

Detailed Description

Definition at line 40 of file RPCAMC13Record.h.

Constructor & Destructor Documentation

◆ Trailer() [1/2]

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

Definition at line 13 of file RPCAMC13Record.cc.

◆ Trailer() [2/2]

rpcamc13::Trailer::Trailer ( std::uint32_t  crc,
unsigned int  block_number,
unsigned int  event_counter,
unsigned int  bx_counter 
)

Definition at line 15 of file RPCAMC13Record.cc.

References setBlockNumber(), setBXCounter(), setCRC(), and setEventCounter().

16  : record_(0x0) {
17  setCRC(crc);
18  setBlockNumber(block_number);
19  setEventCounter(event_counter);
20  setBXCounter(bx_counter);
21  }
void setBlockNumber(unsigned int block_number)
void setBXCounter(unsigned int bx_counter)
void setEventCounter(unsigned int event_counter)
void setCRC(std::uint32_t crc)
std::uint64_t record_

Member Function Documentation

◆ getBlockNumber()

unsigned int rpcamc13::Trailer::getBlockNumber ( ) const

◆ getBXCounter()

unsigned int rpcamc13::Trailer::getBXCounter ( ) const

◆ getCRC()

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

◆ getEventCounter()

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

◆ getRecord()

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

◆ reset()

void rpcamc13::Trailer::reset ( )

◆ set()

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

◆ setBlockNumber()

void rpcamc13::Trailer::setBlockNumber ( unsigned int  block_number)

Referenced by Trailer().

◆ setBXCounter()

void rpcamc13::Trailer::setBXCounter ( unsigned int  bx_counter)

Referenced by Trailer().

◆ setCRC()

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

Referenced by Trailer().

◆ setEventCounter()

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

Referenced by Trailer().

Member Data Documentation

◆ block_number_mask_

std::uint64_t const rpcamc13::Trailer::block_number_mask_ = 0x000000000ff00000
staticprotected

Definition at line 43 of file RPCAMC13Record.h.

◆ block_number_offset_

unsigned int const rpcamc13::Trailer::block_number_offset_ = 20
staticprotected

Definition at line 48 of file RPCAMC13Record.h.

◆ bx_counter_mask_

std::uint64_t const rpcamc13::Trailer::bx_counter_mask_ = 0x0000000000000fff
staticprotected

Definition at line 45 of file RPCAMC13Record.h.

◆ bx_counter_offset_

unsigned int const rpcamc13::Trailer::bx_counter_offset_ = 0
staticprotected

Definition at line 50 of file RPCAMC13Record.h.

◆ crc_mask_

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

Definition at line 42 of file RPCAMC13Record.h.

◆ crc_offset_

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

Definition at line 47 of file RPCAMC13Record.h.

◆ event_counter_mask_

std::uint64_t const rpcamc13::Trailer::event_counter_mask_ = 0x00000000000ff000
staticprotected

Definition at line 44 of file RPCAMC13Record.h.

◆ event_counter_offset_

unsigned int const rpcamc13::Trailer::event_counter_offset_ = 12
staticprotected

Definition at line 49 of file RPCAMC13Record.h.

◆ record_

std::uint64_t rpcamc13::Trailer::record_
protected

Definition at line 72 of file RPCAMC13Record.h.