Project
Loading...
Searching...
No Matches
o2::cpv::RawDecoder Class Reference

Decoder of the ALTRO data in the raw page. More...

#include <RawDecoder.h>

Public Member Functions

 RawDecoder (RawReaderMemory &reader)
 Constructor.
 
 ~RawDecoder ()=default
 Destructor.
 
RawErrorType_t decode ()
 Decode the raw cpv payload stream.
 
const std::vector< uint32_t > & getDigits () const
 Get the reference to the digits container.
 
const std::vector< o2::cpv::BCRecord > & getBCRecords () const
 Get the reference to the BC records.
 
const std::vector< o2::cpv::RawDecoderError > & getErrors () const
 Get the reference to the list of decoding errors.
 
void muteErrors ()
 mute error reporting
 

Protected Member Functions

RawErrorType_t readChannels ()
 Read channels for the current event in the raw buffer.
 

Detailed Description

Decoder of the ALTRO data in the raw page.

Author
Dmitri Peresunko
Since
Dec, 2020

This is a base class for reading raw data digits. It takes raw cpv payload from RawReaderMemory and produces std::vector<uint32_t> mDigits and std::vector<BCRecord> mBCRecords

Definition at line 67 of file RawDecoder.h.

Constructor & Destructor Documentation

◆ RawDecoder()

RawDecoder::RawDecoder ( RawReaderMemory reader)

Constructor.

Parameters
readerRaw reader instance to be decoded

Definition at line 21 of file RawDecoder.cxx.

◆ ~RawDecoder()

o2::cpv::RawDecoder::~RawDecoder ( )
default

Destructor.

Member Function Documentation

◆ decode()

RawErrorType_t RawDecoder::decode ( )

Decode the raw cpv payload stream.

Exceptions
RawDecoderErrorif the RCUTrailer or raw cpv payload cannot be decoded

Decoding and checking the cpvheader, cpvwords and cpvtrailer. After successfull decoding the Decoder can provide a reference to a vector with the decoded chanenels and their bc reference

Definition at line 27 of file RawDecoder.cxx.

◆ getBCRecords()

const std::vector< o2::cpv::BCRecord > & o2::cpv::RawDecoder::getBCRecords ( ) const
inline

Get the reference to the BC records.

Returns
reference to the BC records

Definition at line 93 of file RawDecoder.h.

◆ getDigits()

const std::vector< uint32_t > & o2::cpv::RawDecoder::getDigits ( ) const
inline

Get the reference to the digits container.

Returns
Reference to the digits container

Definition at line 89 of file RawDecoder.h.

◆ getErrors()

const std::vector< o2::cpv::RawDecoderError > & o2::cpv::RawDecoder::getErrors ( ) const
inline

Get the reference to the list of decoding errors.

Returns
Reference to the list of decoding errors

Definition at line 97 of file RawDecoder.h.

◆ muteErrors()

void o2::cpv::RawDecoder::muteErrors ( )
inline

mute error reporting

Definition at line 100 of file RawDecoder.h.

◆ readChannels()

RawErrorType_t RawDecoder::readChannels ( )
protected

Read channels for the current event in the raw buffer.

Definition at line 42 of file RawDecoder.cxx.


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