![]() |
Project
|
#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 () |
Definition at line 32 of file DigitSampler.h.
o2::mch::io::DigitSampler::DigitSampler | ( | std::istream & | in | ) |
Definition at line 24 of file DigitSampler.cxx.
|
default |
|
inline |
Which file format has been detected
Definition at line 41 of file DigitSampler.h.
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.
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.
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.
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.
digits | vector of Digits |
rofs | vector of ROFRecord |
Definition at line 32 of file DigitSampler.cxx.
void o2::mch::io::DigitSampler::rewind | ( | ) |
Rewind, aka restart reading from the beginning of the stream
Definition at line 41 of file DigitSampler.cxx.