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 39 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file RPCTwinMuxRecord.cc.

10  : record_(record)
11 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
rpctwinmux::BlockHeader::BlockHeader ( unsigned int  ufov,
unsigned int  n_amc,
unsigned int  orbit_counter 
)

Definition at line 13 of file RPCTwinMuxRecord.cc.

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

14  : record_(0x0)
15 {
16  setFirmwareVersion(ufov);
17  setNAMC(n_amc);
18  setOrbitCounter(orbit_counter);
19 }
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 43 of file RPCTwinMuxRecord.h.

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

Definition at line 47 of file RPCTwinMuxRecord.h.

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

Definition at line 44 of file RPCTwinMuxRecord.h.

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

Definition at line 48 of file RPCTwinMuxRecord.h.

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

Definition at line 68 of file RPCTwinMuxRecord.h.

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

Definition at line 42 of file RPCTwinMuxRecord.h.

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

Definition at line 46 of file RPCTwinMuxRecord.h.