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

Detailed Description

Definition at line 9 of file RPCAMC13Record.h.

Constructor & Destructor Documentation

◆ Header() [1/2]

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

Definition at line 5 of file RPCAMC13Record.cc.

5 : record_(record) {}

◆ Header() [2/2]

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

Definition at line 7 of file RPCAMC13Record.cc.

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

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

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_

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

Definition at line 12 of file RPCAMC13Record.h.

◆ n_amc_offset_

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

Definition at line 16 of file RPCAMC13Record.h.

◆ orbit_counter_mask_

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

Definition at line 13 of file RPCAMC13Record.h.

◆ orbit_counter_offset_

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

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

Definition at line 11 of file RPCAMC13Record.h.

◆ ufov_offset_

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

Definition at line 15 of file RPCAMC13Record.h.

GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpcamc13::Header::setFirmwareVersion
void setFirmwareVersion(unsigned int ufov)
rpcamc13::Header::setOrbitCounter
void setOrbitCounter(unsigned int orbit_counter)
rpcamc13::Header::setNAMC
void setNAMC(unsigned int n_amc)
rpcamc13::Header::record_
std::uint64_t record_
Definition: RPCAMC13Record.h:37