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

#include <DigitIOBaseTask.h>

Inherited by DigitGenerator, DigitSamplerTask, and DigitsSinkTask.

Public Member Functions

void init (o2::framework::InitContext &ic)
 
void printFull (gsl::span< const Digit > digits, gsl::span< const ROFRecord > rofs) const
 
void printSummary (gsl::span< const Digit > digits, gsl::span< const ROFRecord > rofs, const char *suffix="") const
 
bool shouldProcess () const
 
void incNofProcessedTFs ()
 
void incTFid ()
 

Protected Attributes

size_t mMaxNofTimeFrames {std::numeric_limits<size_t>::max()}
 
size_t mNofProcessedTFs {0}
 
size_t mFirstTF {0}
 
size_t mTFid {0}
 
bool mPrintDigits = false
 
bool mPrintTFs = false
 

Detailed Description

DigitIOBaseTask implements the commonalities between reader and writer tasks, like the handling of the common options.

Definition at line 40 of file DigitIOBaseTask.h.

Member Function Documentation

◆ incNofProcessedTFs()

void o2::mch::io::DigitIOBaseTask::incNofProcessedTFs ( )

Increment the number of timeframes that have been processed so far.

Definition at line 69 of file DigitIOBaseTask.cxx.

◆ incTFid()

void o2::mch::io::DigitIOBaseTask::incTFid ( )

Increment the timeframe id (last one that has been processed).

Definition at line 74 of file DigitIOBaseTask.cxx.

◆ init()

void o2::mch::io::DigitIOBaseTask::init ( o2::framework::InitContext ic)

Init data members from options

Definition at line 30 of file DigitIOBaseTask.cxx.

◆ printFull()

void o2::mch::io::DigitIOBaseTask::printFull ( gsl::span< const Digit digits,
gsl::span< const ROFRecord rofs 
) const

Make a full screen dump of the digits and rofs arrays.

Definition at line 42 of file DigitIOBaseTask.cxx.

◆ printSummary()

void o2::mch::io::DigitIOBaseTask::printSummary ( gsl::span< const Digit digits,
gsl::span< const ROFRecord rofs,
const char suffix = "" 
) const

Make a brief screen dump of the digits and rofs arrays (just showing number of items in each)

Definition at line 55 of file DigitIOBaseTask.cxx.

◆ shouldProcess()

bool o2::mch::io::DigitIOBaseTask::shouldProcess ( ) const

Decide, depending on the current TFid being processed, if it should be processed or not.

Definition at line 64 of file DigitIOBaseTask.cxx.

Member Data Documentation

◆ mFirstTF

size_t o2::mch::io::DigitIOBaseTask::mFirstTF {0}
protected

Definition at line 45 of file DigitIOBaseTask.h.

◆ mMaxNofTimeFrames

size_t o2::mch::io::DigitIOBaseTask::mMaxNofTimeFrames {std::numeric_limits<size_t>::max()}
protected

Definition at line 43 of file DigitIOBaseTask.h.

◆ mNofProcessedTFs

size_t o2::mch::io::DigitIOBaseTask::mNofProcessedTFs {0}
protected

Definition at line 44 of file DigitIOBaseTask.h.

◆ mPrintDigits

bool o2::mch::io::DigitIOBaseTask::mPrintDigits = false
protected

Definition at line 47 of file DigitIOBaseTask.h.

◆ mPrintTFs

bool o2::mch::io::DigitIOBaseTask::mPrintTFs = false
protected

Definition at line 48 of file DigitIOBaseTask.h.

◆ mTFid

size_t o2::mch::io::DigitIOBaseTask::mTFid {0}
protected

Definition at line 46 of file DigitIOBaseTask.h.


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