wrap the encoded binary data readout by a single polarfire
More...
#include <PolarfirePacket.h>
|
int | offset_to_elink (int ilink) const |
| Calculate the offset from the start of the polarfire packet to the input link packet. More...
|
|
|
const uint32_t * | data_ |
| header pointer to data array
|
|
int | length_ |
| length of data array
|
|
wrap the encoded binary data readout by a single polarfire
This is representing Table 3 from the HGCROC Data Formats manual. Remember Table 3 references "ROC Subpackets" which are really LinkPacket.
◆ PolarfirePacket()
pflib::decoding::PolarfirePacket::PolarfirePacket |
( |
const uint32_t * |
header_ptr, |
|
|
int |
len |
|
) |
| |
Wrap the input array and its lenth as a PolarfirePacket.
- Parameters
-
[in] | header_ptr | pointer to beginning of data array |
[in] | len | length of data array |
◆ bxid()
int pflib::decoding::PolarfirePacket::bxid |
( |
| ) |
const |
Get BX ID of this readout packet.
- Returns
- bxid, -1 if packet is empty
◆ formatversion()
int pflib::decoding::PolarfirePacket::formatversion |
( |
| ) |
const |
Get the format version of this polarfire daq format.
- Returns
- version, -1 if packet is empty
◆ fpgaid()
int pflib::decoding::PolarfirePacket::fpgaid |
( |
| ) |
const |
Get the ID of this polarfire.
- Returns
- id number, -1 if packet is empty
◆ length()
int pflib::decoding::PolarfirePacket::length |
( |
| ) |
const |
Get the length of this packet as reported in the first header word.
- Returns
- length, -1 if packet is empty
◆ length_for_elink()
int pflib::decoding::PolarfirePacket::length_for_elink |
( |
int |
ilink | ) |
const |
Get the length for a input elink.
- Parameters
-
[in] | ilink | link index within this polarfire |
- Returns
- length of that link, 0 if link doe snot exist
◆ link()
LinkPacket pflib::decoding::PolarfirePacket::link |
( |
int |
ilink | ) |
const |
Get the link packet wrapped with our decoding class.
- Parameters
-
[in] | ilink | link index within this polarfire |
- Returns
- LinkPacket decoding that link, empty packet if link does not exist
◆ nlinks()
int pflib::decoding::PolarfirePacket::nlinks |
( |
| ) |
const |
Get the number of links readout in this packet as reported in header.
- Returns
- number of links, -1 if packet is empty
◆ offset_to_elink()
int pflib::decoding::PolarfirePacket::offset_to_elink |
( |
int |
ilink | ) |
const |
|
private |
Calculate the offset from the start of the polarfire packet to the input link packet.
- Parameters
-
[in] | ilink | link index within this polarfire |
- Returns
- offset, -1 if link does not exist
◆ orbit()
int pflib::decoding::PolarfirePacket::orbit |
( |
| ) |
const |
Get the orbit number from this readout packet.
- Returns
- orbit, -1 if packet is empty
◆ rreq()
int pflib::decoding::PolarfirePacket::rreq |
( |
| ) |
const |
Get RREQ of this readout packet.
- Returns
- read request, -1 if packet is empty
The documentation for this class was generated from the following files: