#include <AMC13Spec.h>
Public Member Functions | |
bool | check (unsigned int crc, unsigned int block, unsigned int lv1_id, unsigned int bx) const |
unsigned int | getBlock () const |
unsigned int | getBX () const |
unsigned int | getCRC () const |
unsigned int | getLV1ID () const |
uint64_t | raw () const |
Trailer (const uint64_t *data) | |
Trailer (unsigned int blk, unsigned int lv1, unsigned int bx) | |
Static Public Member Functions | |
static void | writeCRC (const uint64_t *start, uint64_t *end) |
Private Attributes | |
uint64_t | data_ |
Static Private Attributes | |
static const unsigned int | BlkNo_mask = 0xff |
static const unsigned int | BlkNo_shift = 20 |
static const unsigned int | BX_mask = 0xfff |
static const unsigned int | BX_shift = 0 |
static const unsigned int | CRC_mask = 0xffffffff |
static const unsigned int | CRC_shift = 32 |
static const unsigned int | LV1_mask = 0xff |
static const unsigned int | LV1_shift = 12 |
Definition at line 42 of file AMC13Spec.h.
|
inline |
Definition at line 44 of file AMC13Spec.h.
amc13::Trailer::Trailer | ( | unsigned int | blk, |
unsigned int | lv1, | ||
unsigned int | bx | ||
) |
bool amc13::Trailer::check | ( | unsigned int | crc, |
unsigned int | block, | ||
unsigned int | lv1_id, | ||
unsigned int | bx | ||
) | const |
Definition at line 26 of file AMC13Spec.cc.
References BX_mask, TauDecayModes::dec, getBlock(), getBX(), getCRC(), getLV1ID(), and LV1_mask.
Referenced by amc13::Packet::parse().
|
inline |
Definition at line 48 of file AMC13Spec.h.
References BlkNo_mask, BlkNo_shift, and data_.
Referenced by check(), and omtf::OmtfUnpacker::produce().
|
inline |
Definition at line 50 of file AMC13Spec.h.
References BX_mask, BX_shift, and data_.
Referenced by check(), and omtf::OmtfUnpacker::produce().
|
inline |
Definition at line 47 of file AMC13Spec.h.
References CRC_mask, CRC_shift, and data_.
Referenced by check(), and omtf::OmtfUnpacker::produce().
|
inline |
Definition at line 49 of file AMC13Spec.h.
References data_, LV1_mask, and LV1_shift.
Referenced by check(), and omtf::OmtfUnpacker::produce().
|
inline |
|
static |
Definition at line 40 of file AMC13Spec.cc.
References cms::CRC32Calculator::checksum(), CRC_mask, CRC_shift, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by amc13::Packet::write().
|
staticprivate |
Definition at line 60 of file AMC13Spec.h.
Referenced by getBlock(), and Trailer().
|
staticprivate |
Definition at line 59 of file AMC13Spec.h.
Referenced by getBlock(), and Trailer().
|
staticprivate |
Definition at line 64 of file AMC13Spec.h.
|
staticprivate |
Definition at line 63 of file AMC13Spec.h.
|
staticprivate |
Definition at line 58 of file AMC13Spec.h.
Referenced by getCRC(), and writeCRC().
|
staticprivate |
Definition at line 57 of file AMC13Spec.h.
Referenced by getCRC(), and writeCRC().
|
private |
Definition at line 66 of file AMC13Spec.h.
Referenced by getBlock(), getBX(), getCRC(), getLV1ID(), raw(), and Trailer().
|
staticprivate |
Definition at line 62 of file AMC13Spec.h.
Referenced by check(), getLV1ID(), and Trailer().
|
staticprivate |
Definition at line 61 of file AMC13Spec.h.
Referenced by getLV1ID(), and Trailer().