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();
static const unsigned int Size_mask
unsigned int getLV1ID() const
static const unsigned int CRC_mask
unsigned int getSize() const
static void writeCRC(const uint64_t *start, uint64_t *end)
unsigned int getCRC() const
BlockHeader block_header_
std::vector< uint64_t > block(unsigned int id) const
static const unsigned int CRC_shift
void addPayload(const uint64_t *, unsigned int)
void finalize(unsigned int lv1, unsigned int bx, bool legacy_mc=false, bool mtf7_mode=false)
static const unsigned int LV1ID_shift
static const unsigned int split_block_size
BlockHeader blockHeader(unsigned int block=0) const
unsigned int size() const
static const unsigned int LV1ID_mask
unsigned long long uint64_t
char data[epos_bytes_allocation]
std::unique_ptr< uint64_t[]> data()
Trailer(const uint64_t *data)
static const unsigned int Size_shift
bool check(unsigned int crc, unsigned int lv1_id, unsigned int size, bool mtf7_mode=false) const
Packet(const uint64_t *d)
unsigned int blocks() const
tuple size
Write out results.
std::vector< uint64_t > payload_