Go to the documentation of this file. 1 #ifndef EventFilter_L1TRawToDigi_AMC_SPEC__h
2 #define EventFilter_L1TRawToDigi_AMC_SPEC__h
19 BlockHeader(
unsigned int amc_no,
unsigned int board_id,
unsigned int size,
unsigned int block = 0);
63 Header(
unsigned int amc_no,
68 unsigned int board_id,
85 static const unsigned int BX_mask = 0xfff;
106 Trailer(
unsigned int crc,
unsigned int lv1_id,
unsigned int size);
113 bool check(
unsigned int crc,
unsigned int lv1_id,
unsigned int size,
bool mtf7_mode =
false)
const;
136 const std::vector<uint64_t> &
load,
137 unsigned int user = 0);
144 void finalize(
unsigned int lv1,
unsigned int bx,
bool legacy_mc =
false,
bool mtf7_mode =
false);
146 std::vector<uint64_t>
block(
unsigned int id)
const;
147 std::unique_ptr<uint64_t[]>
data();
Packet(const uint64_t *d)
unsigned int getCRC() const
void addPayload(const uint64_t *, unsigned int)
void finalize(unsigned int lv1, unsigned int bx, bool legacy_mc=false, bool mtf7_mode=false)
static void writeCRC(const uint64_t *start, uint64_t *end)
bool check(unsigned int crc, unsigned int lv1_id, unsigned int size, bool mtf7_mode=false) const
static const unsigned int Size_mask
static const unsigned int CRC_shift
static const unsigned int split_block_size
std::vector< uint64_t > payload_
unsigned int blocks() const
std::vector< uint64_t > block(unsigned int id) const
unsigned int getSize() const
BlockHeader blockHeader(unsigned int block=0) const
static const unsigned int LV1ID_shift
static const unsigned int CRC_mask
static const unsigned int LV1ID_mask
char data[epos_bytes_allocation]
unsigned long long uint64_t
BlockHeader block_header_
std::unique_ptr< uint64_t[]> data()
Trailer(const uint64_t *data)
static const unsigned int Size_shift
unsigned int getLV1ID() const
unsigned int size() const