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

#include <RawFileReader.h>

Public Member Functions

bool init (const char *inFilename, bool readContinuous=false)
 
bool readHB (bool sendCompleteHBs=false)
 
void clear ()
 
int getState ()
 Gets the state.
 
const std::vector< uint8_t > & getData ()
 Gets the vector of data.
 
void setCustomRDH (const header::RAWDataHeader &rdh)
 
void setCustomPayloadSize (uint16_t memorySize=0x2000, uint16_t offsetToNext=0x2000)
 

Detailed Description

Definition at line 28 of file RawFileReader.h.

Member Function Documentation

◆ clear()

void o2::mid::RawFileReader::clear ( )

Clears the bytes and counters

Definition at line 50 of file RawFileReader.cxx.

◆ getData()

const std::vector< uint8_t > & o2::mid::RawFileReader::getData ( )
inline

Gets the vector of data.

Definition at line 39 of file RawFileReader.h.

◆ getState()

int o2::mid::RawFileReader::getState ( )
inline

Gets the state.

Definition at line 36 of file RawFileReader.h.

◆ init()

bool o2::mid::RawFileReader::init ( const char inFilename,
bool  readContinuous = false 
)

Initializes the raw file reader

Definition at line 29 of file RawFileReader.cxx.

◆ readHB()

bool o2::mid::RawFileReader::readHB ( bool  sendCompleteHBs = false)

Reads one HB

Definition at line 80 of file RawFileReader.cxx.

◆ setCustomPayloadSize()

void o2::mid::RawFileReader::setCustomPayloadSize ( uint16_t  memorySize = 0x2000,
uint16_t  offsetToNext = 0x2000 
)

Sets a custom memory and payload size This is done to be able to correctly read test data that have a wrong RDH

Definition at line 56 of file RawFileReader.cxx.

◆ setCustomRDH()

void o2::mid::RawFileReader::setCustomRDH ( const header::RAWDataHeader rdh)
inline

Definition at line 41 of file RawFileReader.h.


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