Project
Loading...
Searching...
No Matches
o2::tpc::rawreader::RawReaderCRU::PacketDescriptor Class Reference

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)
 

Detailed Description

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 8 4

O 7 3

O 6 3

O 5 2

O 4 2

I 3 1

I 2 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.

Member Typedef Documentation

◆ FEEIDType

Constructor & Destructor Documentation

◆ PacketDescriptor()

o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::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 
)
inline

Definition at line 754 of file RawReaderCRU.h.

Member Function Documentation

◆ getCRUID()

FEEIDType o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getCRUID ( ) const
inline

Definition at line 776 of file RawReaderCRU.h.

◆ getEndPoint()

FEEIDType o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getEndPoint ( ) const
inline

Definition at line 779 of file RawReaderCRU.h.

◆ getFEEID()

FEEIDType o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getFEEID ( ) const
inline

Definition at line 775 of file RawReaderCRU.h.

◆ getGlobalLinkID()

FEEIDType o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getGlobalLinkID ( ) const
inline

Definition at line 778 of file RawReaderCRU.h.

◆ getHeaderOffset()

size_t o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getHeaderOffset ( ) const
inline

Definition at line 770 of file RawReaderCRU.h.

◆ getHeaderSize()

constexpr uint32_t o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getHeaderSize ( ) const
inlineconstexpr

Definition at line 764 of file RawReaderCRU.h.

◆ getHeartBeatOrbit()

uint32_t o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getHeartBeatOrbit ( ) const
inline

Definition at line 769 of file RawReaderCRU.h.

◆ getLinkID()

FEEIDType o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getLinkID ( ) const
inline

Definition at line 777 of file RawReaderCRU.h.

◆ getPacketSize()

uint32_t o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getPacketSize ( ) const
inline

Definition at line 773 of file RawReaderCRU.h.

◆ getPayloadOffset()

size_t o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getPayloadOffset ( ) const
inline

Definition at line 771 of file RawReaderCRU.h.

◆ getPayloadSize()

uint32_t o2::tpc::rawreader::RawReaderCRU::PacketDescriptor::getPayloadSize ( ) const
inline

Definition at line 772 of file RawReaderCRU.h.

◆ streamTo()

void RawReaderCRU::PacketDescriptor::streamTo ( std::ostream &  output) const

write data to ostream

Definition at line 1037 of file RawReaderCRU.cxx.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  output,
const PacketDescriptor packetDescriptor 
)
friend

Definition at line 784 of file RawReaderCRU.h.


The documentation for this class was generated from the following files: