CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes
rpcamc13::Header Class Reference

#include <RPCAMC13Record.h>

Public Member Functions

unsigned int getFirmwareVersion () const
 
unsigned int getNAMC () const
 
unsigned int getOrbitCounter () const
 
std::uint64_t const & getRecord () const
 
 Header (std::uint64_t const record=0x0)
 
 Header (unsigned int ufov, unsigned int n_amc, unsigned int orbit_counter)
 
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)
 

Protected Attributes

std::uint64_t record_
 

Static Protected 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
 

Detailed Description

Definition at line 9 of file RPCAMC13Record.h.

Constructor & Destructor Documentation

◆ Header() [1/2]

rpcamc13::Header::Header ( std::uint64_t const  record = 0x0)

◆ Header() [2/2]

rpcamc13::Header::Header ( unsigned int  ufov,
unsigned int  n_amc,
unsigned int  orbit_counter 
)

Definition at line 7 of file RPCAMC13Record.cc.

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

7  : record_(0x0) {
8  setFirmwareVersion(ufov);
9  setNAMC(n_amc);
10  setOrbitCounter(orbit_counter);
11  }
void setNAMC(unsigned int n_amc)
void setOrbitCounter(unsigned int orbit_counter)
std::uint64_t record_
void setFirmwareVersion(unsigned int ufov)

Member Function Documentation

◆ getFirmwareVersion()

unsigned int rpcamc13::Header::getFirmwareVersion ( ) const

◆ getNAMC()

unsigned int rpcamc13::Header::getNAMC ( ) const

◆ getOrbitCounter()

unsigned int rpcamc13::Header::getOrbitCounter ( ) const

◆ getRecord()

std::uint64_t const& rpcamc13::Header::getRecord ( ) const

◆ reset()

void rpcamc13::Header::reset ( )

◆ set()

void rpcamc13::Header::set ( std::uint64_t const  record)

◆ setFirmwareVersion()

void rpcamc13::Header::setFirmwareVersion ( unsigned int  ufov)

Referenced by Header().

◆ setNAMC()

void rpcamc13::Header::setNAMC ( unsigned int  n_amc)

Referenced by Header().

◆ setOrbitCounter()

void rpcamc13::Header::setOrbitCounter ( unsigned int  orbit_counter)

Referenced by Header().

Member Data Documentation

◆ n_amc_mask_

std::uint64_t const rpcamc13::Header::n_amc_mask_ = 0x00f0000000000000
staticprotected

Definition at line 12 of file RPCAMC13Record.h.

◆ n_amc_offset_

unsigned int const rpcamc13::Header::n_amc_offset_ = 52
staticprotected

Definition at line 16 of file RPCAMC13Record.h.

◆ orbit_counter_mask_

std::uint64_t const rpcamc13::Header::orbit_counter_mask_ = 0x0000000ffffffff0
staticprotected

Definition at line 13 of file RPCAMC13Record.h.

◆ orbit_counter_offset_

unsigned int const rpcamc13::Header::orbit_counter_offset_ = 4
staticprotected

Definition at line 17 of file RPCAMC13Record.h.

◆ record_

std::uint64_t rpcamc13::Header::record_
protected

Definition at line 37 of file RPCAMC13Record.h.

◆ ufov_mask_

std::uint64_t const rpcamc13::Header::ufov_mask_ = 0xf000000000000000
staticprotected

Definition at line 11 of file RPCAMC13Record.h.

◆ ufov_offset_

unsigned int const rpcamc13::Header::ufov_offset_ = 60
staticprotected

Definition at line 15 of file RPCAMC13Record.h.