CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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::uint32_t crc, unsigned int block_number, unsigned int event_counter, unsigned int bx_counter)
 
 Trailer (std::uint64_t const record=0x0)
 

Protected Attributes

std::uint64_t record_
 

Static Protected Attributes

static const std::uint64_t block_number_mask_ = 0x000000000ff00000
 
static unsigned const int block_number_offset_ = 20
 
static const std::uint64_t bx_counter_mask_ = 0x0000000000000fff
 
static unsigned const int bx_counter_offset_ = 0
 
static const std::uint64_t crc_mask_ = 0xffffffff00000000
 
static unsigned const int crc_offset_ = 32
 
static const std::uint64_t event_counter_mask_ = 0x00000000000ff000
 
static unsigned const int 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.

13 : record_(record) {}

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

16  : record_(0x0) {
17  setCRC(crc);
18  setBlockNumber(block_number);
19  setEventCounter(event_counter);
20  setBXCounter(bx_counter);
21  }

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

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_

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

Definition at line 43 of file RPCAMC13Record.h.

◆ block_number_offset_

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

Definition at line 48 of file RPCAMC13Record.h.

◆ bx_counter_mask_

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

Definition at line 45 of file RPCAMC13Record.h.

◆ bx_counter_offset_

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

Definition at line 50 of file RPCAMC13Record.h.

◆ crc_mask_

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

Definition at line 42 of file RPCAMC13Record.h.

◆ crc_offset_

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

Definition at line 47 of file RPCAMC13Record.h.

◆ event_counter_mask_

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

Definition at line 44 of file RPCAMC13Record.h.

◆ event_counter_offset_

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

rpcamc13::Trailer::setBXCounter
void setBXCounter(unsigned int bx_counter)
rpcamc13::Trailer::setEventCounter
void setEventCounter(unsigned int event_counter)
rpcamc13::Trailer::record_
std::uint64_t record_
Definition: RPCAMC13Record.h:72
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
rpcamc13::Trailer::setBlockNumber
void setBlockNumber(unsigned int block_number)
rpcamc13::Trailer::setCRC
void setCRC(std::uint32_t crc)