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,
unsigned int lv1_id,
unsigned int bx_id,
unsigned int size,
64 unsigned int or_n,
unsigned int board_id,
unsigned int user);
80 static const unsigned int BX_mask = 0xfff;
101 Trailer(
unsigned int crc,
unsigned int lv1_id,
unsigned int size);
108 bool check(
unsigned int crc,
unsigned int lv1_id,
unsigned int size,
bool mtf7_mode=
false)
const;
126 Packet(
unsigned int amc,
unsigned int board,
unsigned int lv1id,
unsigned int orbit,
unsigned int bx,
const std::vector<uint64_t>&
load);
133 void finalize(
unsigned int lv1,
unsigned int bx,
bool legacy_mc=
false,
bool mtf7_mode=
false);
135 std::vector<uint64_t>
block(
unsigned int id)
const;
136 std::unique_ptr<uint64_t[]>
data();
static const unsigned int Size_mask
unsigned int getLV1ID() const
static const unsigned int CRC_mask
tuple start
Check for commandline option errors.
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_