#include <AMCSpec.h>
Public Member Functions | |
bool | check (unsigned int crc, unsigned int lv1_id, unsigned int size, bool mtf7_mode=false) const |
unsigned int | getCRC () const |
unsigned int | getLV1ID () const |
unsigned int | getSize () const |
uint64_t | raw () const |
Trailer () | |
Trailer (const uint64_t *data) | |
Trailer (unsigned int crc, unsigned int lv1_id, unsigned int size) | |
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 | CRC_mask = 0xffffffff |
static const unsigned int | CRC_shift = 32 |
static const unsigned int | LV1ID_mask = 0xff |
static const unsigned int | LV1ID_shift = 24 |
static const unsigned int | Size_mask = 0xfffff |
static const unsigned int | Size_shift = 0 |
amc::Trailer::Trailer | ( | unsigned int | crc, |
unsigned int | lv1_id, | ||
unsigned int | size | ||
) |
Definition at line 78 of file AMCSpec.cc.
bool amc::Trailer::check | ( | unsigned int | crc, |
unsigned int | lv1_id, | ||
unsigned int | size, | ||
bool | mtf7_mode = false |
||
) | const |
Definition at line 82 of file AMCSpec.cc.
References TauDecayModes::dec, getCRC(), getLV1ID(), getSize(), LV1ID_mask, and findQualityFiles::size.
Referenced by amc::Packet::finalize().
|
inline |
|
inline |
Definition at line 109 of file AMCSpec.h.
References data_, LV1ID_mask, and LV1ID_shift.
Referenced by check().
|
inline |
|
inline |
|
static |
Definition at line 94 of file AMCSpec.cc.
References cms::CRC32Calculator::checksum(), CRC_mask, CRC_shift, mps_fire::end, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by amc::Packet::Packet().
|
staticprivate |
Definition at line 123 of file AMCSpec.h.
Referenced by getCRC(), and writeCRC().
|
staticprivate |
Definition at line 122 of file AMCSpec.h.
Referenced by getCRC(), and writeCRC().
|
private |
|
staticprivate |
Definition at line 121 of file AMCSpec.h.
Referenced by check(), and getLV1ID().
|
staticprivate |
Definition at line 120 of file AMCSpec.h.
Referenced by getLV1ID().
|
staticprivate |