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

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

Definition at line 13 of file RPCAMC13Record.cc.

13 : record_(record) {}
JetCorrectorParameters::Record record
Definition: classes.h:7
std::uint64_t record_
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

unsigned int rpcamc13::Trailer::getBlockNumber ( ) const
unsigned int rpcamc13::Trailer::getBXCounter ( ) const
std::uint32_t rpcamc13::Trailer::getCRC ( ) const
unsigned int rpcamc13::Trailer::getEventCounter ( ) const
std::uint64_t const& rpcamc13::Trailer::getRecord ( ) const
void rpcamc13::Trailer::reset ( )
void rpcamc13::Trailer::set ( std::uint64_t const  record)
void rpcamc13::Trailer::setBlockNumber ( unsigned int  block_number)

Referenced by Trailer().

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

Referenced by Trailer().

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

Referenced by Trailer().

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

Referenced by Trailer().

Member Data Documentation

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

Definition at line 43 of file RPCAMC13Record.h.

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

Definition at line 48 of file RPCAMC13Record.h.

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

Definition at line 45 of file RPCAMC13Record.h.

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

Definition at line 50 of file RPCAMC13Record.h.

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

Definition at line 42 of file RPCAMC13Record.h.

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

Definition at line 47 of file RPCAMC13Record.h.

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

Definition at line 44 of file RPCAMC13Record.h.

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

Definition at line 49 of file RPCAMC13Record.h.

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

Definition at line 72 of file RPCAMC13Record.h.