CMS 3D CMS Logo

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

#include <RPCAMCRecord.h>

Inheritance diagram for rpcamc::Header:
rpcmp7::Header

Public Member Functions

unsigned int getAMCNumber () const
 
unsigned int getBoardId () const
 
unsigned int getBXCounter () const
 
unsigned int getDataLength () const
 
unsigned int getEventCounter () const
 
unsigned int getOrbitCounter () const
 
std::uint64_t const * getRecord () const
 
bool hasDataLength () const
 
 Header ()
 
 Header (std::uint64_t const record[2])
 
 Header (unsigned int amc_number, unsigned int event_counter, unsigned int bx_counter, unsigned int data_length, unsigned int orbit_counter, unsigned int board_id)
 
virtual void reset ()
 
void set (unsigned int nword, std::uint64_t const word)
 
void setAMCNumber (unsigned int amc_number)
 
void setBoardId (unsigned int board_id)
 
void setBXCounter (unsigned int bx_counter)
 
void setDataLength (unsigned int data_length)
 
void setEventCounter (unsigned int event_counter)
 
void setOrbitCounter (unsigned int orbit_counter)
 
virtual ~Header ()
 

Protected Attributes

std::uint64_t record_ [2]
 

Static Protected Attributes

static std::uint64_t const amc_number_mask_ = 0x0f00000000000000
 
static unsigned int const amc_number_offset_ = 56
 
static std::uint64_t const board_id_mask_ = 0x000000000000ffff
 
static unsigned int const board_id_offset_ = 0
 
static std::uint64_t const bx_counter_mask_ = 0x00000000fff00000
 
static unsigned int const bx_counter_offset_ = 20
 
static std::uint64_t const data_length_mask_ = 0x00000000000fffff
 
static unsigned int const data_length_offset_ = 0
 
static std::uint64_t const event_counter_mask_ = 0x00ffffff00000000
 
static unsigned int const event_counter_offset_ = 32
 
static std::uint64_t const orbit_counter_mask_ = 0x00000000ffff0000
 
static unsigned int const orbit_counter_offset_ = 16
 

Detailed Description

Definition at line 8 of file RPCAMCRecord.h.

Constructor & Destructor Documentation

Header::Header ( )

Definition at line 5 of file RPCAMCRecord.cc.

References record_.

6 {
7  record_[0] = 0x0;
8  record_[1] = 0x0;
9 }
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:63
Header::Header ( std::uint64_t const  record[2])

Definition at line 11 of file RPCAMCRecord.cc.

References record_.

12 {
13  record_[0] = record[0];
14  record_[1] = record[1];
15 }
JetCorrectorParameters::Record record
Definition: classes.h:7
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:63
Header::Header ( unsigned int  amc_number,
unsigned int  event_counter,
unsigned int  bx_counter,
unsigned int  data_length,
unsigned int  orbit_counter,
unsigned int  board_id 
)

Definition at line 17 of file RPCAMCRecord.cc.

References record_, setAMCNumber(), setBoardId(), setBXCounter(), setDataLength(), setEventCounter(), and setOrbitCounter().

23 {
24  record_[0] = 0x0;
25  record_[1] = 0x0;
26 
27  setAMCNumber(amc_number);
28  setEventCounter(event_counter);
29  setBXCounter(bx_counter);
30  setDataLength(data_length);
31 
32  setOrbitCounter(orbit_counter);
33  setBoardId(board_id);
34 }
void setDataLength(unsigned int data_length)
void setBXCounter(unsigned int bx_counter)
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:63
void setAMCNumber(unsigned int amc_number)
void setOrbitCounter(unsigned int orbit_counter)
void setEventCounter(unsigned int event_counter)
void setBoardId(unsigned int board_id)
Header::~Header ( )
virtual

Reimplemented in rpcmp7::Header.

Definition at line 36 of file RPCAMCRecord.cc.

37 {}

Member Function Documentation

unsigned int rpcamc::Header::getAMCNumber ( ) const
unsigned int rpcamc::Header::getBoardId ( ) const
unsigned int rpcamc::Header::getBXCounter ( ) const
unsigned int rpcamc::Header::getDataLength ( ) const
unsigned int rpcamc::Header::getEventCounter ( ) const
unsigned int rpcamc::Header::getOrbitCounter ( ) const
std::uint64_t const* rpcamc::Header::getRecord ( ) const
bool rpcamc::Header::hasDataLength ( ) const
virtual void rpcamc::Header::reset ( )
virtual

Reimplemented in rpcmp7::Header.

void rpcamc::Header::set ( unsigned int  nword,
std::uint64_t const  word 
)
void rpcamc::Header::setAMCNumber ( unsigned int  amc_number)

Referenced by Header().

void rpcamc::Header::setBoardId ( unsigned int  board_id)

Referenced by Header().

void rpcamc::Header::setBXCounter ( unsigned int  bx_counter)

Referenced by Header().

void rpcamc::Header::setDataLength ( unsigned int  data_length)

Referenced by Header().

void rpcamc::Header::setEventCounter ( unsigned int  event_counter)

Referenced by Header().

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

Referenced by Header().

Member Data Documentation

std::uint64_t const rpcamc::Header::amc_number_mask_ = 0x0f00000000000000
staticprotected

Definition at line 12 of file RPCAMCRecord.h.

unsigned int const rpcamc::Header::amc_number_offset_ = 56
staticprotected

Definition at line 17 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Header::board_id_mask_ = 0x000000000000ffff
staticprotected

Definition at line 24 of file RPCAMCRecord.h.

unsigned int const rpcamc::Header::board_id_offset_ = 0
staticprotected

Definition at line 27 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Header::bx_counter_mask_ = 0x00000000fff00000
staticprotected

Definition at line 14 of file RPCAMCRecord.h.

unsigned int const rpcamc::Header::bx_counter_offset_ = 20
staticprotected

Definition at line 19 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Header::data_length_mask_ = 0x00000000000fffff
staticprotected

Definition at line 15 of file RPCAMCRecord.h.

unsigned int const rpcamc::Header::data_length_offset_ = 0
staticprotected

Definition at line 20 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Header::event_counter_mask_ = 0x00ffffff00000000
staticprotected

Definition at line 13 of file RPCAMCRecord.h.

unsigned int const rpcamc::Header::event_counter_offset_ = 32
staticprotected

Definition at line 18 of file RPCAMCRecord.h.

std::uint64_t const rpcamc::Header::orbit_counter_mask_ = 0x00000000ffff0000
staticprotected

Definition at line 23 of file RPCAMCRecord.h.

unsigned int const rpcamc::Header::orbit_counter_offset_ = 16
staticprotected

Definition at line 26 of file RPCAMCRecord.h.

std::uint64_t rpcamc::Header::record_[2]
protected

Definition at line 63 of file RPCAMCRecord.h.

Referenced by rpcmp7::Header::Header(), and Header().