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 std::uint64_t const n_amc_mask_ = 0x00f0000000000000
 
static unsigned int const n_amc_offset_ = 52
 
static std::uint64_t const orbit_counter_mask_ = 0x0000000ffffffff0
 
static unsigned int const orbit_counter_offset_ = 4
 
static std::uint64_t const ufov_mask_ = 0xf000000000000000
 
static unsigned int const 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.

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

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

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

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_

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

Definition at line 41 of file RPCTwinMuxRecord.h.

◆ n_amc_offset_

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

Definition at line 45 of file RPCTwinMuxRecord.h.

◆ orbit_counter_mask_

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

Definition at line 42 of file RPCTwinMuxRecord.h.

◆ orbit_counter_offset_

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

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

Definition at line 40 of file RPCTwinMuxRecord.h.

◆ ufov_offset_

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

Definition at line 44 of file RPCTwinMuxRecord.h.