Project
Loading...
Searching...
No Matches
o2::mid::Decoder Class Reference

#include <Decoder.h>

Public Member Functions

 Decoder (bool isDebugMode=false, bool isBare=false, const ElectronicsDelay &electronicsDelay=ElectronicsDelay(), const CrateMasks &crateMasks=CrateMasks(), const FEEIdConfig &feeIdConfig=FEEIdConfig())
 
virtual ~Decoder ()=default
 
void process (gsl::span< const uint8_t > bytes)
 
template<class RDH >
void process (gsl::span< const uint8_t > payload, const RDH &rdh)
 
const std::vector< ROBoard > & getData () const
 Gets the vector of data.
 
const std::vector< ROFRecord > & getROFRecords () const
 Gets the vector of data RO frame records.
 
void clear ()
 

Protected Attributes

std::unordered_map< uint16_t, std::unique_ptr< LinkDecoder > > mLinkDecoders {}
 

Detailed Description

Definition at line 41 of file Decoder.h.

Constructor & Destructor Documentation

◆ Decoder()

o2::mid::Decoder::Decoder ( bool  isDebugMode = false,
bool  isBare = false,
const ElectronicsDelay electronicsDelay = ElectronicsDelay(),
const CrateMasks crateMasks = CrateMasks(),
const FEEIdConfig feeIdConfig = FEEIdConfig() 
)

Constructor

Definition at line 27 of file Decoder.cxx.

◆ ~Decoder()

virtual o2::mid::Decoder::~Decoder ( )
virtualdefault

Member Function Documentation

◆ clear()

void o2::mid::Decoder::clear ( )

Clears the decoded data

Definition at line 41 of file Decoder.cxx.

◆ getData()

const std::vector< ROBoard > & o2::mid::Decoder::getData ( ) const
inline

Gets the vector of data.

Definition at line 64 of file Decoder.h.

◆ getROFRecords()

const std::vector< ROFRecord > & o2::mid::Decoder::getROFRecords ( ) const
inline

Gets the vector of data RO frame records.

Definition at line 67 of file Decoder.h.

◆ process() [1/2]

void o2::mid::Decoder::process ( gsl::span< const uint8_t >  bytes)

Decodes the buffer

Definition at line 48 of file Decoder.cxx.

◆ process() [2/2]

template<class RDH >
void o2::mid::Decoder::process ( gsl::span< const uint8_t >  payload,
const RDH rdh 
)
inline

Processes the page

Definition at line 48 of file Decoder.h.

Member Data Documentation

◆ mLinkDecoders

std::unordered_map<uint16_t, std::unique_ptr<LinkDecoder> > o2::mid::Decoder::mLinkDecoders {}
protected

Definition at line 75 of file Decoder.h.


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