1#ifndef pflib_decoding_PolarfirePacket_h
2#define pflib_decoding_PolarfirePacket_h 1
4#include "pflib/decoding/LinkPacket.h"
smallest formatted packet being readout by the HGCROC-Polarfire pipeline
Definition: LinkPacket.h:19
wrap the encoded binary data readout by a single polarfire
Definition: PolarfirePacket.h:16
int offset_to_elink(int ilink) const
Calculate the offset from the start of the polarfire packet to the input link packet.
Definition: PolarfirePacket.cxx:55
int fpgaid() const
Get the ID of this polarfire.
Definition: PolarfirePacket.cxx:19
int length() const
Get the length of this packet as reported in the first header word.
Definition: PolarfirePacket.cxx:9
LinkPacket link(int ilink) const
Get the link packet wrapped with our decoding class.
Definition: PolarfirePacket.cxx:49
const uint32_t * data_
header pointer to data array
Definition: PolarfirePacket.h:89
int bxid() const
Get BX ID of this readout packet.
Definition: PolarfirePacket.cxx:34
PolarfirePacket(const uint32_t *header_ptr, int len)
Wrap the input array and its lenth as a PolarfirePacket.
Definition: PolarfirePacket.cxx:6
int rreq() const
Get RREQ of this readout packet.
Definition: PolarfirePacket.cxx:39
int orbit() const
Get the orbit number from this readout packet.
Definition: PolarfirePacket.cxx:44
int formatversion() const
Get the format version of this polarfire daq format.
Definition: PolarfirePacket.cxx:24
int length_for_elink(int ilink) const
Get the length for a input elink.
Definition: PolarfirePacket.cxx:29
int nlinks() const
Get the number of links readout in this packet as reported in header.
Definition: PolarfirePacket.cxx:14
int length_
length of data array
Definition: PolarfirePacket.h:91
Polarfire Interaction Library.
Definition: Backend.h:8