![]() |
Project
|
#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 |
DigitIOBaseTask implements the commonalities between reader and writer tasks, like the handling of the common options.
Definition at line 40 of file DigitIOBaseTask.h.
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.
void o2::mch::io::DigitIOBaseTask::incTFid | ( | ) |
Increment the timeframe id (last one that has been processed).
Definition at line 74 of file DigitIOBaseTask.cxx.
void o2::mch::io::DigitIOBaseTask::init | ( | o2::framework::InitContext & | ic | ) |
Init data members from options
Definition at line 30 of file DigitIOBaseTask.cxx.
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.
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.
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.
|
protected |
Definition at line 45 of file DigitIOBaseTask.h.
|
protected |
Definition at line 43 of file DigitIOBaseTask.h.
|
protected |
Definition at line 44 of file DigitIOBaseTask.h.
|
protected |
Definition at line 47 of file DigitIOBaseTask.h.
|
protected |
Definition at line 48 of file DigitIOBaseTask.h.
|
protected |
Definition at line 46 of file DigitIOBaseTask.h.