Go to the documentation of this file. 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,
81 const std::vector<uint64_t> &
load,
82 unsigned int user = 0);
88 bool legacy_mc =
false,
89 bool mtf7_mode =
false);
static const unsigned int BX_shift
unsigned int blocks() const
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)
bool check(unsigned int crc, unsigned int block, unsigned int lv1_id, unsigned int bx) const
unsigned int getBlock() const
static const unsigned int LV1_shift
std::vector< amc::Packet > payload() const
static const unsigned int BlkNo_shift
static const unsigned int CRC_shift
unsigned int size() const
std::vector< amc::Packet > payload_
unsigned int getCRC() const
static const unsigned int LV1_mask
static void writeCRC(const uint64_t *start, uint64_t *end)
static const unsigned int BlkNo_mask
static const unsigned int BX_mask
unsigned int getLV1ID() const
unsigned int getBX() const
static const unsigned int CRC_mask
bool write(const edm::Event &ev, unsigned char *ptr, unsigned int skip, unsigned int size) const
char data[epos_bytes_allocation]
unsigned long long uint64_t
Trailer(const uint64_t *data)
void add(unsigned int amc_no, unsigned int board, unsigned int lv1id, unsigned int orbit, unsigned int bx, const std::vector< uint64_t > &load, unsigned int user=0)