CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Protected Attributes
rpctwinmux::BlockHeader Class Reference

#include <RPCTwinMuxRecord.h>

Public Member Functions

 BlockHeader (std::uint64_t const record=0x0)
 
 BlockHeader (unsigned int ufov, unsigned int n_amc, unsigned int orbit_counter)
 
unsigned int getFirmwareVersion () const
 
unsigned int getNAMC () const
 
unsigned int getOrbitCounter () const
 
std::uint64_t const & getRecord () const
 
void reset ()
 
void set (std::uint64_t const record)
 
void setFirmwareVersion (unsigned int ufov)
 
void setNAMC (unsigned int n_amc)
 
void setOrbitCounter (unsigned int orbit_counter)
 

Static Public Attributes

static const std::uint64_t n_amc_mask_ = 0x00f0000000000000
 
static unsigned const int n_amc_offset_ = 52
 
static const std::uint64_t orbit_counter_mask_ = 0x0000000ffffffff0
 
static unsigned const int orbit_counter_offset_ = 4
 
static const std::uint64_t ufov_mask_ = 0xf000000000000000
 
static unsigned const int ufov_offset_ = 60
 

Protected Attributes

std::uint64_t record_
 

Detailed Description

Definition at line 38 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

◆ BlockHeader() [1/2]

rpctwinmux::BlockHeader::BlockHeader ( std::uint64_t const  record = 0x0)

Definition at line 7 of file RPCTwinMuxRecord.cc.

7 : record_(record) {}

◆ BlockHeader() [2/2]

rpctwinmux::BlockHeader::BlockHeader ( unsigned int  ufov,
unsigned int  n_amc,
unsigned int  orbit_counter 
)

Definition at line 9 of file RPCTwinMuxRecord.cc.

9  : record_(0x0) {
10  setFirmwareVersion(ufov);
11  setNAMC(n_amc);
12  setOrbitCounter(orbit_counter);
13  }

References setFirmwareVersion(), setNAMC(), and setOrbitCounter().

Member Function Documentation

◆ getFirmwareVersion()

unsigned int rpctwinmux::BlockHeader::getFirmwareVersion ( ) const

◆ getNAMC()

unsigned int rpctwinmux::BlockHeader::getNAMC ( ) const

◆ getOrbitCounter()

unsigned int rpctwinmux::BlockHeader::getOrbitCounter ( ) const

◆ getRecord()

std::uint64_t const& rpctwinmux::BlockHeader::getRecord ( ) const

◆ reset()

void rpctwinmux::BlockHeader::reset ( )

◆ set()

void rpctwinmux::BlockHeader::set ( std::uint64_t const  record)

◆ setFirmwareVersion()

void rpctwinmux::BlockHeader::setFirmwareVersion ( unsigned int  ufov)

Referenced by BlockHeader().

◆ setNAMC()

void rpctwinmux::BlockHeader::setNAMC ( unsigned int  n_amc)

Referenced by BlockHeader().

◆ setOrbitCounter()

void rpctwinmux::BlockHeader::setOrbitCounter ( unsigned int  orbit_counter)

Referenced by BlockHeader().

Member Data Documentation

◆ n_amc_mask_

const std::uint64_t rpctwinmux::BlockHeader::n_amc_mask_ = 0x00f0000000000000
static

Definition at line 41 of file RPCTwinMuxRecord.h.

◆ n_amc_offset_

unsigned const int rpctwinmux::BlockHeader::n_amc_offset_ = 52
static

Definition at line 45 of file RPCTwinMuxRecord.h.

◆ orbit_counter_mask_

const std::uint64_t rpctwinmux::BlockHeader::orbit_counter_mask_ = 0x0000000ffffffff0
static

Definition at line 42 of file RPCTwinMuxRecord.h.

◆ orbit_counter_offset_

unsigned const int rpctwinmux::BlockHeader::orbit_counter_offset_ = 4
static

Definition at line 46 of file RPCTwinMuxRecord.h.

◆ record_

std::uint64_t rpctwinmux::BlockHeader::record_
protected

Definition at line 66 of file RPCTwinMuxRecord.h.

◆ ufov_mask_

const std::uint64_t rpctwinmux::BlockHeader::ufov_mask_ = 0xf000000000000000
static

Definition at line 40 of file RPCTwinMuxRecord.h.

◆ ufov_offset_

unsigned const int rpctwinmux::BlockHeader::ufov_offset_ = 60
static

Definition at line 44 of file RPCTwinMuxRecord.h.

GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpctwinmux::BlockHeader::record_
std::uint64_t record_
Definition: RPCTwinMuxRecord.h:66
rpctwinmux::BlockHeader::setNAMC
void setNAMC(unsigned int n_amc)
rpctwinmux::BlockHeader::setFirmwareVersion
void setFirmwareVersion(unsigned int ufov)
rpctwinmux::BlockHeader::setOrbitCounter
void setOrbitCounter(unsigned int orbit_counter)