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

helper to store the ADC raw data More...

#include <RawReaderCRU.h>

Public Types

using DataVector = std::vector< uint32_t >
 

Public Member Functions

 ADCRawData ()
 default ctor. Resesrve 520 time bins per stream
 
void add (int stream, uint32_t v0, uint32_t v1)
 add a stream
 
void setOutputStream (uint32_t outStream)
 select the stream for which data should be processed
 
void setNumTimebins (uint32_t numTB)
 
uint32_t getNumTimebins () const
 number of time bin for selected stream
 
void streamTo (std::ostream &output) const
 write data to ostream
 
const DataVectorgetDataVector (int stream) const
 get the data vector for a specific stream
 
void reset ()
 reset
 
bool hasData () const
 

Friends

std::ostream & operator<< (std::ostream &output, const ADCRawData &rawData)
 overloading output stream operator
 
std::ostream & operator<< (std::ostream &output, const ADCRawData &rawData)
 overloading output stream operator to output ADCRawData
 

Detailed Description

helper to store the ADC raw data

Definition at line 87 of file RawReaderCRU.h.

Member Typedef Documentation

◆ DataVector

using o2::tpc::rawreader::ADCRawData::DataVector = std::vector<uint32_t>

Definition at line 90 of file RawReaderCRU.h.

Constructor & Destructor Documentation

◆ ADCRawData()

o2::tpc::rawreader::ADCRawData::ADCRawData ( )
inline

default ctor. Resesrve 520 time bins per stream

Definition at line 93 of file RawReaderCRU.h.

Member Function Documentation

◆ add()

void o2::tpc::rawreader::ADCRawData::add ( int  stream,
uint32_t  v0,
uint32_t  v1 
)
inline

add a stream

Definition at line 101 of file RawReaderCRU.h.

◆ getDataVector()

const DataVector & o2::tpc::rawreader::ADCRawData::getDataVector ( int  stream) const
inline

get the data vector for a specific stream

Definition at line 136 of file RawReaderCRU.h.

◆ getNumTimebins()

uint32_t o2::tpc::rawreader::ADCRawData::getNumTimebins ( ) const
inline

number of time bin for selected stream

Definition at line 123 of file RawReaderCRU.h.

◆ hasData()

bool o2::tpc::rawreader::ADCRawData::hasData ( ) const
inline

Definition at line 151 of file RawReaderCRU.h.

◆ reset()

void o2::tpc::rawreader::ADCRawData::reset ( )
inline

reset

Definition at line 142 of file RawReaderCRU.h.

◆ setNumTimebins()

void o2::tpc::rawreader::ADCRawData::setNumTimebins ( uint32_t  numTB)
inline

set the number of time bins for the selected stream. If the number of timebins set exceeds the maximum timebins in the stream, the maximum will be set as the limit.

Definition at line 113 of file RawReaderCRU.h.

◆ setOutputStream()

void o2::tpc::rawreader::ADCRawData::setOutputStream ( uint32_t  outStream)
inline

select the stream for which data should be processed

Definition at line 108 of file RawReaderCRU.h.

◆ streamTo()

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

write data to ostream

Definition at line 992 of file RawReaderCRU.cxx.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  output,
const ADCRawData rawData 
)
friend

overloading output stream operator

Definition at line 129 of file RawReaderCRU.h.

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  output,
const ADCRawData rawData 
)
friend

overloading output stream operator to output ADCRawData


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