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

helper to encapsulate a GBTFrame More...

#include <RawReaderCRU.h>

Public Types

using adc_t = uint32_t
 

Public Member Functions

 GBTFrame ()=default
 default constructor
 
void setSyncPositions (const SyncArray &syncArray)
 set the sync positions
 
bool syncFound (int stream)
 
const SyncArraygetSyncArray () const
 get the syncronisation array
 
void updateSyncCheck (SyncArray &syncArray)
 update the sync check
 
void updateSyncCheck (bool verbose=false)
 update the sync check
 
void getFrameHalfWords ()
 extract the 4 5b halfwords for the 5 data streams from one GBT frame
 
void storePrevFrame ()
 
void getAdcValues (ADCRawData &rawData)
 decode ADC values
 
void readFromMemory (gsl::span< const std::byte > data)
 read from memory
 
void streamFrom (std::istream &input)
 read from istream
 
void streamTo (std::ostream &output) const
 write data to ostream
 
void setPacketNumber (uint32_t packetNumber)
 set packet number
 
void setFrameNumber (uint32_t frameNumber)
 set packet number
 

Friends

std::istream & operator>> (std::istream &input, GBTFrame &frame)
 
std::ostream & operator<< (std::ostream &output, const GBTFrame &frame)
 overloading output stream operator to output the GBT Frame and the halfwords
 

Detailed Description

helper to encapsulate a GBTFrame

Definition at line 226 of file RawReaderCRU.h.

Member Typedef Documentation

◆ adc_t

Definition at line 229 of file RawReaderCRU.h.

Constructor & Destructor Documentation

◆ GBTFrame()

o2::tpc::rawreader::GBTFrame::GBTFrame ( )
default

default constructor

Member Function Documentation

◆ getAdcValues()

void o2::tpc::rawreader::GBTFrame::getAdcValues ( ADCRawData rawData)
inline

decode ADC values

Definition at line 926 of file RawReaderCRU.h.

◆ getFrameHalfWords()

void o2::tpc::rawreader::GBTFrame::getFrameHalfWords ( )
inline

extract the 4 5b halfwords for the 5 data streams from one GBT frame

extract the 4 5b halfwords for the 5 data streams from one GBT frame the 4 5b halfwords of the previous frame are stored in the same structure the position of the previous frame is indicated by mPrevHWpos

Definition at line 908 of file RawReaderCRU.h.

◆ getSyncArray()

const SyncArray & o2::tpc::rawreader::GBTFrame::getSyncArray ( ) const
inline

get the syncronisation array

Definition at line 242 of file RawReaderCRU.h.

◆ readFromMemory()

void o2::tpc::rawreader::GBTFrame::readFromMemory ( gsl::span< const std::byte >  data)
inline

read from memory

Definition at line 946 of file RawReaderCRU.h.

◆ setFrameNumber()

void o2::tpc::rawreader::GBTFrame::setFrameNumber ( uint32_t  frameNumber)
inline

set packet number

Definition at line 289 of file RawReaderCRU.h.

◆ setPacketNumber()

void o2::tpc::rawreader::GBTFrame::setPacketNumber ( uint32_t  packetNumber)
inline

set packet number

Definition at line 286 of file RawReaderCRU.h.

◆ setSyncPositions()

void o2::tpc::rawreader::GBTFrame::setSyncPositions ( const SyncArray syncArray)
inline

set the sync positions

Definition at line 235 of file RawReaderCRU.h.

◆ storePrevFrame()

void o2::tpc::rawreader::GBTFrame::storePrevFrame ( )

store the half words of the current frame in the previous frame data structure. Both frame information is needed to reconstruct the ADC stream since it can spread across 2 frames, depending on the position of the SYNC pattern.

◆ streamFrom()

void GBTFrame::streamFrom ( std::istream &  input)

read from istream

Definition at line 1004 of file RawReaderCRU.cxx.

◆ streamTo()

void GBTFrame::streamTo ( std::ostream &  output) const

write data to ostream

Definition at line 1014 of file RawReaderCRU.cxx.

◆ syncFound()

bool o2::tpc::rawreader::GBTFrame::syncFound ( int  stream)
inline

set syncronisation found for stream

Parameters
streamstream

Definition at line 239 of file RawReaderCRU.h.

◆ updateSyncCheck() [1/2]

void o2::tpc::rawreader::GBTFrame::updateSyncCheck ( bool  verbose = false)
inline

update the sync check

Definition at line 874 of file RawReaderCRU.h.

◆ updateSyncCheck() [2/2]

void o2::tpc::rawreader::GBTFrame::updateSyncCheck ( SyncArray syncArray)
inline

update the sync check

Definition at line 846 of file RawReaderCRU.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  output,
const GBTFrame frame 
)
friend

overloading output stream operator to output the GBT Frame and the halfwords

Definition at line 279 of file RawReaderCRU.h.

◆ operator>>

std::istream & operator>> ( std::istream &  input,
GBTFrame frame 
)
friend

overloading input stream operator to read in the 4 32b words into the GBTFrame array mData

Definition at line 272 of file RawReaderCRU.h.


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