#include <RPCAMCRecord.h>
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 |
Definition at line 8 of file RPCAMCRecord.h.
Header::Header | ( | ) |
Header::Header | ( | std::uint64_t const | record[2] | ) |
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().
|
virtual |
unsigned int rpcamc::Header::getAMCNumber | ( | ) | const |
Referenced by RPCAMCRawToDigi::processBlocks().
unsigned int rpcamc::Header::getBoardId | ( | ) | const |
unsigned int rpcamc::Header::getBXCounter | ( | ) | const |
unsigned int rpcamc::Header::getDataLength | ( | ) | const |
Referenced by RPCAMCRawToDigi::processBlocks().
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 |
Referenced by RPCAMCRawToDigi::processBlocks().
|
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().
|
staticprotected |
Definition at line 12 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 17 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 24 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 27 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 14 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 19 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 15 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 20 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 13 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 18 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 23 of file RPCAMCRecord.h.
|
staticprotected |
Definition at line 26 of file RPCAMCRecord.h.
|
protected |
Definition at line 63 of file RPCAMCRecord.h.
Referenced by rpcmp7::Header::Header(), and Header().