![]() |
Project
|
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 SyncArray & | getSyncArray () 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 | |
helper to encapsulate a GBTFrame
Definition at line 226 of file RawReaderCRU.h.
using o2::tpc::rawreader::GBTFrame::adc_t = uint32_t |
Definition at line 229 of file RawReaderCRU.h.
|
default |
default constructor
|
inline |
decode ADC values
Definition at line 926 of file RawReaderCRU.h.
|
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.
|
inline |
get the syncronisation array
Definition at line 242 of file RawReaderCRU.h.
|
inline |
read from memory
Definition at line 946 of file RawReaderCRU.h.
|
inline |
set packet number
Definition at line 289 of file RawReaderCRU.h.
|
inline |
set packet number
Definition at line 286 of file RawReaderCRU.h.
set the sync positions
Definition at line 235 of file RawReaderCRU.h.
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.
void GBTFrame::streamFrom | ( | std::istream & | input | ) |
read from istream
Definition at line 1004 of file RawReaderCRU.cxx.
void GBTFrame::streamTo | ( | std::ostream & | output | ) | const |
write data to ostream
Definition at line 1014 of file RawReaderCRU.cxx.
|
inline |
set syncronisation found for stream
stream | stream |
Definition at line 239 of file RawReaderCRU.h.
|
inline |
update the sync check
Definition at line 874 of file RawReaderCRU.h.
update the sync check
Definition at line 846 of file RawReaderCRU.h.
|
friend |
overloading output stream operator to output the GBT Frame and the halfwords
Definition at line 279 of file RawReaderCRU.h.
|
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.