![]() |
Project
|
helper class to store packet positions inside the file More...
#include <RawReaderCRU.h>
Public Types | |
using | FEEIDType = rdh_utils::FEEIDType |
Public Member Functions | |
PacketDescriptor (size_t headOff, uint32_t cru, uint32_t link, uint32_t endPoint, uint16_t memorySize=7840, uint16_t packetSize=8192, uint32_t heartbeatOrbit=0) | |
constexpr uint32_t | getHeaderSize () const |
uint32_t | getHeartBeatOrbit () const |
size_t | getHeaderOffset () const |
size_t | getPayloadOffset () const |
uint32_t | getPayloadSize () const |
uint32_t | getPacketSize () const |
FEEIDType | getFEEID () const |
FEEIDType | getCRUID () const |
FEEIDType | getLinkID () const |
FEEIDType | getGlobalLinkID () const |
FEEIDType | getEndPoint () const |
void | streamTo (std::ostream &output) const |
write data to ostream | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const PacketDescriptor &packetDescriptor) |
helper class to store packet positions inside the file
The link id is the link in the CRU stream. The CRU has 2x12 links (A and B). The TPC uses a maximum of 2x10 links. The layout of the links is as follows, looking from the back side of the sector, so the FEE side.
ROC Region Partition Links O 9 4
O 7 3
O 5 2
I 3 1
I 1 0 B6(18) | B5(17) | B4(16) | B3(15) | B2(14) | B1(13) | B0(12) | A7(7) | A6(6) | A5(5) | A4(4) | A3(3) | A2(2) | A1(1) | A0(0) I 0 0 B6(18) | B5(17) | B4(16) | B3(15) | B2(14) | B1(13) | B0(12) | A7(7) | A6(6) | A5(5) | A4(4) | A3(3) | A2(2) | A1(1) | A0(0)
Definition at line 749 of file RawReaderCRU.h.
Definition at line 752 of file RawReaderCRU.h.
|
inline |
Definition at line 754 of file RawReaderCRU.h.
|
inline |
Definition at line 776 of file RawReaderCRU.h.
|
inline |
Definition at line 779 of file RawReaderCRU.h.
|
inline |
Definition at line 775 of file RawReaderCRU.h.
|
inline |
Definition at line 778 of file RawReaderCRU.h.
|
inline |
Definition at line 770 of file RawReaderCRU.h.
|
inlineconstexpr |
Definition at line 764 of file RawReaderCRU.h.
|
inline |
Definition at line 769 of file RawReaderCRU.h.
|
inline |
Definition at line 777 of file RawReaderCRU.h.
|
inline |
Definition at line 773 of file RawReaderCRU.h.
|
inline |
Definition at line 771 of file RawReaderCRU.h.
|
inline |
Definition at line 772 of file RawReaderCRU.h.
void RawReaderCRU::PacketDescriptor::streamTo | ( | std::ostream & | output | ) | const |
write data to ostream
Definition at line 1037 of file RawReaderCRU.cxx.
|
friend |
Definition at line 784 of file RawReaderCRU.h.