Project
Loading...
Searching...
No Matches
o2::mch::io::DigitSampler Class Reference

#include <DigitSampler.h>

Public Member Functions

 DigitSampler (std::istream &in)
 
 ~DigitSampler ()
 
DigitFileFormat fileFormat () const
 
bool read (std::vector< Digit > &digits, std::vector< ROFRecord > &rofs)
 
size_t nofTimeFrames () const
 
size_t nofROFs () const
 
size_t nofDigits () const
 
void rewind ()
 

Detailed Description

Definition at line 32 of file DigitSampler.h.

Constructor & Destructor Documentation

◆ DigitSampler()

o2::mch::io::DigitSampler::DigitSampler ( std::istream &  in)

Definition at line 24 of file DigitSampler.cxx.

◆ ~DigitSampler()

o2::mch::io::DigitSampler::~DigitSampler ( )
default

Member Function Documentation

◆ fileFormat()

DigitFileFormat o2::mch::io::DigitSampler::fileFormat ( ) const
inline

Which file format has been detected

Definition at line 41 of file DigitSampler.h.

◆ nofDigits()

size_t o2::mch::io::DigitSampler::nofDigits ( ) const

Count the number of digits in the input stream WARNING : depending on the size of the input this might be a costly operation

Definition at line 67 of file DigitSampler.cxx.

◆ nofROFs()

size_t o2::mch::io::DigitSampler::nofROFs ( ) const

Count the number of ROFRecords in the input stream WARNING : depending on the size of the input this might be a costly operation

Definition at line 61 of file DigitSampler.cxx.

◆ nofTimeFrames()

size_t o2::mch::io::DigitSampler::nofTimeFrames ( ) const

Count the number of timeframes in the input stream. WARNING : depending on the size of the input this might be a costly operation

Definition at line 55 of file DigitSampler.cxx.

◆ read()

bool o2::mch::io::DigitSampler::read ( std::vector< Digit > &  digits,
std::vector< ROFRecord > &  rofs 
)

read rofs, digits at the current position in the input stream. i.e. reads one full time frame.

Parameters
digitsvector of Digits
rofsvector of ROFRecord
Returns
true if reading was successull, false otherwise

Definition at line 32 of file DigitSampler.cxx.

◆ rewind()

void o2::mch::io::DigitSampler::rewind ( )

Rewind, aka restart reading from the beginning of the stream

Definition at line 41 of file DigitSampler.cxx.


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