CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

rpctwinmux::BlockHeader::BlockHeader ( std::uint64_t const  record = 0x0)
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

unsigned int rpctwinmux::BlockHeader::getFirmwareVersion ( ) const
unsigned int rpctwinmux::BlockHeader::getNAMC ( ) const
unsigned int rpctwinmux::BlockHeader::getOrbitCounter ( ) const
std::uint64_t const& rpctwinmux::BlockHeader::getRecord ( ) const
void rpctwinmux::BlockHeader::reset ( )
void rpctwinmux::BlockHeader::set ( std::uint64_t const  record)
void rpctwinmux::BlockHeader::setFirmwareVersion ( unsigned int  ufov)

Referenced by BlockHeader().

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

Referenced by BlockHeader().

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

Referenced by BlockHeader().

Member Data Documentation

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

Definition at line 41 of file RPCTwinMuxRecord.h.

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

Definition at line 45 of file RPCTwinMuxRecord.h.

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

Definition at line 42 of file RPCTwinMuxRecord.h.

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

Definition at line 46 of file RPCTwinMuxRecord.h.

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

Definition at line 66 of file RPCTwinMuxRecord.h.

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

Definition at line 40 of file RPCTwinMuxRecord.h.

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

Definition at line 44 of file RPCTwinMuxRecord.h.