1 #ifndef EventFilter_L1TRawToDigi_AMC13_SPEC__h
2 #define EventFilter_L1TRawToDigi_AMC13_SPEC__h
19 Header(
unsigned int namc,
unsigned int orbit);
34 static const unsigned int OrN_mask = 0xffffffff;
36 static const unsigned int fov = 1;
45 Trailer(
unsigned int blk,
unsigned int lv1,
unsigned int bx);
53 bool check(
unsigned int crc,
unsigned int block,
unsigned int lv1_id,
unsigned int bx)
const;
58 static const unsigned int CRC_mask = 0xffffffff;
64 static const unsigned int BX_mask = 0xfff;
73 unsigned int blocks()
const;
74 unsigned int size()
const;
76 void add(
unsigned int amc_no,
unsigned int board,
unsigned int lv1id,
unsigned int orbit,
unsigned int bx,
const std::vector<uint64_t>&
load);
std::vector< amc::Packet > payload() const
tuple start
Check for commandline option errors.
static const unsigned int LV1_mask
static void writeCRC(const uint64_t *start, uint64_t *end)
unsigned int size() const
unsigned int getCRC() const
unsigned int blocks() const
bool check(unsigned int crc, unsigned int block, unsigned int lv1_id, unsigned int bx) const
static const unsigned int CRC_mask
static const unsigned int BlkNo_mask
static const unsigned int BX_mask
bool write(const edm::Event &ev, unsigned char *ptr, unsigned int skip, unsigned int size) const
Trailer(const uint64_t *data)
std::vector< amc::Packet > payload_
unsigned int getBX() const
unsigned int getBlock() const
static const unsigned int BX_shift
unsigned int getLV1ID() const
unsigned long long uint64_t
void add(unsigned int amc_no, unsigned int board, unsigned int lv1id, unsigned int orbit, unsigned int bx, const std::vector< uint64_t > &load)
bool parse(const uint64_t *start, const uint64_t *data, unsigned int size, unsigned int lv1, unsigned int bx, bool legacy_mc=false, bool mtf7_mode=false)
static const unsigned int LV1_shift
static const unsigned int BlkNo_shift
char data[epos_bytes_allocation]
static const unsigned int CRC_shift