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

#include <DigitSink.h>

Public Member Functions

 DigitSink (std::ostream &os)
 
 DigitSink (std::ostream &os, DigitFileFormat format, size_t maxSize=std::numeric_limits< size_t >::max())
 
 ~DigitSink ()
 
bool write (gsl::span< const Digit > digits, gsl::span< const ROFRecord > rofs={})
 

Detailed Description

Definition at line 32 of file DigitSink.h.

Constructor & Destructor Documentation

◆ DigitSink() [1/2]

o2::mch::io::DigitSink::DigitSink ( std::ostream &  os)

Create a text digit writer

Parameters
osoutput stream to write to

Definition at line 135 of file DigitSink.cxx.

◆ DigitSink() [2/2]

o2::mch::io::DigitSink::DigitSink ( std::ostream &  os,
DigitFileFormat  format,
size_t  maxSize = std::numeric_limits<size_t>::max() 
)

Create a binary digit writer

Parameters
osoutput stream to write to
dffthe digit file format to be used
maxSizeif not zero indicate that writing should stop past this size, expressed in KB.

Definition at line 128 of file DigitSink.cxx.

◆ ~DigitSink()

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

Member Function Documentation

◆ write()

bool o2::mch::io::DigitSink::write ( gsl::span< const Digit digits,
gsl::span< const ROFRecord rofs = {} 
)

write rofs, digits at the current position in the output stream

Parameters
digitsvector of Digits, must not be empty
rofsvector of ROFRecord, might be empty
Returns
true if writing was successull, false otherwise

Definition at line 141 of file DigitSink.cxx.


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