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 const std::uint64_t amc_number_mask_ = 0x0f00000000000000
 
static unsigned const int amc_number_offset_ = 56
 
static const std::uint64_t board_id_mask_ = 0x000000000000ffff
 
static unsigned const int board_id_offset_ = 0
 
static const std::uint64_t bx_counter_mask_ = 0x00000000fff00000
 
static unsigned const int bx_counter_offset_ = 20
 
static const std::uint64_t data_length_mask_ = 0x00000000000fffff
 
static unsigned const int data_length_offset_ = 0
 
static const std::uint64_t event_counter_mask_ = 0x00ffffff00000000
 
static unsigned const int event_counter_offset_ = 32
 
static const std::uint64_t orbit_counter_mask_ = 0x00000000ffff0000
 
static unsigned const int orbit_counter_offset_ = 16
 

Detailed Description

Definition at line 8 of file RPCAMCRecord.h.

Constructor & Destructor Documentation

◆ Header() [1/3]

Header::Header ( )

Definition at line 5 of file RPCAMCRecord.cc.

5  {
6  record_[0] = 0x0;
7  record_[1] = 0x0;
8  }

References record_.

◆ Header() [2/3]

Header::Header ( std::uint64_t const  record[2])

Definition at line 10 of file RPCAMCRecord.cc.

10  {
11  record_[0] = record[0];
12  record_[1] = record[1];
13  }

References GlobalPosition_Frontier_DevDB_cff::record, and record_.

◆ Header() [3/3]

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 15 of file RPCAMCRecord.cc.

20  {
21  record_[0] = 0x0;
22  record_[1] = 0x0;
23 
24  setAMCNumber(amc_number);
25  setEventCounter(event_counter);
26  setBXCounter(bx_counter);
27  setDataLength(data_length);
28 
29  setOrbitCounter(orbit_counter);
30  setBoardId(board_id);
31  }

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

◆ ~Header()

Header::~Header ( )
virtual

Reimplemented in rpcmp7::Header.

Definition at line 33 of file RPCAMCRecord.cc.

33 {}

Member Function Documentation

◆ getAMCNumber()

unsigned int rpcamc::Header::getAMCNumber ( ) const

◆ getBoardId()

unsigned int rpcamc::Header::getBoardId ( ) const

◆ getBXCounter()

unsigned int rpcamc::Header::getBXCounter ( ) const

◆ getDataLength()

unsigned int rpcamc::Header::getDataLength ( ) const

◆ getEventCounter()

unsigned int rpcamc::Header::getEventCounter ( ) const

◆ getOrbitCounter()

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

◆ getRecord()

std::uint64_t const* rpcamc::Header::getRecord ( ) const

◆ hasDataLength()

bool rpcamc::Header::hasDataLength ( ) const

◆ reset()

virtual void rpcamc::Header::reset ( )
virtual

Reimplemented in rpcmp7::Header.

◆ set()

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

◆ setAMCNumber()

void rpcamc::Header::setAMCNumber ( unsigned int  amc_number)

Referenced by Header().

◆ setBoardId()

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

Referenced by Header().

◆ setBXCounter()

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

Referenced by Header().

◆ setDataLength()

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

Referenced by Header().

◆ setEventCounter()

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

Referenced by Header().

◆ setOrbitCounter()

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

Referenced by Header().

Member Data Documentation

◆ amc_number_mask_

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

Definition at line 11 of file RPCAMCRecord.h.

◆ amc_number_offset_

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

Definition at line 16 of file RPCAMCRecord.h.

◆ board_id_mask_

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

Definition at line 23 of file RPCAMCRecord.h.

◆ board_id_offset_

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

Definition at line 26 of file RPCAMCRecord.h.

◆ bx_counter_mask_

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

Definition at line 13 of file RPCAMCRecord.h.

◆ bx_counter_offset_

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

Definition at line 18 of file RPCAMCRecord.h.

◆ data_length_mask_

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

Definition at line 14 of file RPCAMCRecord.h.

◆ data_length_offset_

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

Definition at line 19 of file RPCAMCRecord.h.

◆ event_counter_mask_

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

Definition at line 12 of file RPCAMCRecord.h.

◆ event_counter_offset_

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

Definition at line 17 of file RPCAMCRecord.h.

◆ orbit_counter_mask_

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

Definition at line 22 of file RPCAMCRecord.h.

◆ orbit_counter_offset_

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

Definition at line 25 of file RPCAMCRecord.h.

◆ record_

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

Definition at line 62 of file RPCAMCRecord.h.

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

rpcamc::Header::setOrbitCounter
void setOrbitCounter(unsigned int orbit_counter)
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpcamc::Header::setEventCounter
void setEventCounter(unsigned int event_counter)
rpcamc::Header::setBoardId
void setBoardId(unsigned int board_id)
rpcamc::Header::setDataLength
void setDataLength(unsigned int data_length)
rpcamc::Header::record_
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:62
rpcamc::Header::setBXCounter
void setBXCounter(unsigned int bx_counter)
rpcamc::Header::setAMCNumber
void setAMCNumber(unsigned int amc_number)