1 #ifndef EventFilter_L1TRawToDigi_AMC13_SPEC__h 2 #define EventFilter_L1TRawToDigi_AMC13_SPEC__h 19 Header(
unsigned int namc,
unsigned int orbit);
24 inline unsigned int getFormatVersion()
const {
return (data_ >> uFOV_shift) & uFOV_mask; };
25 inline unsigned int getNumberOfAMCs()
const {
return (data_ >> nAMC_shift) & nAMC_mask; };
26 inline unsigned int getOrbitNumber()
const {
return (data_ >> OrN_shift) & OrN_mask; };
29 static const unsigned int uFOV_shift = 60;
30 static const unsigned int uFOV_mask = 0xf;
31 static const unsigned int nAMC_shift = 52;
32 static const unsigned int nAMC_mask = 0xf;
33 static const unsigned int OrN_shift = 4;
34 static const unsigned int OrN_mask = 0xffffffff;
36 static const unsigned int fov = 1;
37 static const unsigned int max_amc = 12;
45 Trailer(
unsigned int blk,
unsigned int lv1,
unsigned int bx);
47 inline unsigned int getCRC()
const {
return (data_ >> CRC_shift) & CRC_mask; };
48 inline unsigned int getBlock()
const {
return (data_ >> BlkNo_shift) & BlkNo_mask; };
49 inline unsigned int getLV1ID()
const {
return (data_ >> LV1_shift) & LV1_mask; };
50 inline unsigned int getBX()
const {
return (data_ >> BX_shift) & BX_mask; };
53 bool check(
unsigned int crc,
unsigned int block,
unsigned int lv1_id,
unsigned int bx)
const;
57 static const unsigned int CRC_shift = 32;
58 static const unsigned int CRC_mask = 0xffffffff;
59 static const unsigned int BlkNo_shift = 20;
60 static const unsigned int BlkNo_mask = 0xff;
61 static const unsigned int LV1_shift = 12;
62 static const unsigned int LV1_mask = 0xff;
63 static const unsigned int BX_shift = 0;
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,
unsigned int user=0);
77 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);
80 inline std::vector<amc::Packet>
payload()
const {
return payload_; };
std::vector< amc::Packet > payload() const
unsigned int getCRC() const
Trailer(const uint64_t *data)
std::vector< amc::Packet > payload_
unsigned int getBX() const
unsigned int getBlock() const
unsigned int getLV1ID() const
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
unsigned long long uint64_t
char data[epos_bytes_allocation]
static void check(T const &p, std::string const &id, SelectedProducts const &iProducts)