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() [1/3]

Header::Header ( )

Definition at line 5 of file RPCAMCRecord.cc.

References record_.

5  {
6  record_[0] = 0x0;
7  record_[1] = 0x0;
8  }
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:62

◆ Header() [2/3]

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

Definition at line 10 of file RPCAMCRecord.cc.

References AlCaHarvesting_cff::record, and record_.

10  {
11  record_[0] = record[0];
12  record_[1] = record[1];
13  }
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:62

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

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

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  }
void setDataLength(unsigned int data_length)
void setBXCounter(unsigned int bx_counter)
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:62
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::~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_

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

Definition at line 11 of file RPCAMCRecord.h.

◆ amc_number_offset_

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

Definition at line 16 of file RPCAMCRecord.h.

◆ board_id_mask_

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

Definition at line 23 of file RPCAMCRecord.h.

◆ board_id_offset_

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

Definition at line 26 of file RPCAMCRecord.h.

◆ bx_counter_mask_

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

Definition at line 13 of file RPCAMCRecord.h.

◆ bx_counter_offset_

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

Definition at line 18 of file RPCAMCRecord.h.

◆ data_length_mask_

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

Definition at line 14 of file RPCAMCRecord.h.

◆ data_length_offset_

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

Definition at line 19 of file RPCAMCRecord.h.

◆ event_counter_mask_

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

Definition at line 12 of file RPCAMCRecord.h.

◆ event_counter_offset_

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

Definition at line 17 of file RPCAMCRecord.h.

◆ orbit_counter_mask_

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

Definition at line 22 of file RPCAMCRecord.h.

◆ orbit_counter_offset_

unsigned int const 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().