![]() |
Project
|
#include <RawFileWriter.h>
Classes | |
struct | DetLazinessCheck |
struct | LinkData |
struct | OutputFile |
struct | PayloadCache |
===================================================================================== More... | |
Public Types | |
using | RDHAny = o2::header::RDHAny |
using | IR = o2::InteractionRecord |
using | CarryOverCallBack = std::function< int(const RDHAny *rdh, const gsl::span< char > data, const char *ptr, int size, int splitID, std::vector< char > &trailer, std::vector< char > &header)> |
using | EmptyPageCallBack = std::function< void(const RDHAny *rdh, std::vector< char > &emptyHBF)> |
using | NewRDHCallBack = std::function< void(const RDHAny *rdh, bool prevEmpty, std::vector< char > &filler)> |
Public Member Functions | |
RawFileWriter (o2::header::DataOrigin origin=o2::header::gDataOriginInvalid, bool cru=true) | |
~RawFileWriter () | |
void | useCaching () |
void | doLazinessCheck (bool v) |
void | writeConfFile (std::string_view origin="FLP", std::string_view description="RAWDATA", std::string_view cfgname="raw.cfg", bool fullPath=true) const |
void | close () |
LinkData & | registerLink (uint16_t fee, uint16_t cru, uint8_t link, uint8_t endpoint, std::string_view outFileName) |
template<typename H > | |
LinkData & | registerLink (const H &rdh, std::string_view outFileName) |
void | setOrigin (o2::header::DataOrigin origin) |
o2::header::DataOrigin | getOrigin () const |
LinkData & | getLinkWithSubSpec (LinkSubSpec_t ss) |
template<typename H > | |
LinkData & | getLinkWithSubSpec (const H &rdh) |
void | addData (uint16_t feeid, uint16_t cru, uint8_t lnk, uint8_t endpoint, const IR &ir, const gsl::span< char > data, bool preformatted=false, uint32_t trigger=0, uint32_t detField=0) |
template<typename H > | |
void | addData (const H &rdh, const IR &ir, const gsl::span< char > data, bool preformatted=false, uint32_t trigger=0) |
void | setContinuousReadout () |
void | setTriggeredReadout () |
void | setContinuousReadout (bool v) |
bool | isContinuousReadout () const |
bool | isTriggeredReadout () const |
bool | isReadOutModeSet () const |
bool | isLinkRegistered (LinkSubSpec_t ss) const |
void | setVerbosity (int v) |
int | getVerbosity () const |
int | getNOutputFiles () const |
std::string | getOutputFileName (int i) const |
OutputFile & | getOutputFileForLink (const LinkData &lnk) |
int | getSuperPageSize () const |
void | setSuperPageSize (int nbytes) |
IR | getIRMax () const |
get highest IR seen so far | |
const HBFUtils & | getHBFUtils () const |
template<class T > | |
void | setCarryOverCallBack (const T *t) |
template<class T > | |
void | setEmptyPageCallBack (const T *t) |
template<class T > | |
void | setNewRDHCallBack (const T *t) |
int | carryOverMethod (const RDHAny *, const gsl::span< char > data, const char *ptr, int maxSize, int splitID, std::vector< char > &trailer, std::vector< char > &header) const |
void | emptyHBFMethod (const RDHAny *rdh, std::vector< char > &toAdd) const |
void | newRDHMethod (const RDHAny *rdh, bool prevEmpty, std::vector< char > &toAdd) const |
int | getUsedRDHVersion () const |
void | useRDHVersion (int v) |
unsigned char | getUsedRDHDataFormat () const |
unsigned char | getAlignmentSize () const |
unsigned char | getAlignmentPaddingFiller () const |
void | useRDHDataFormat (unsigned char v) |
void | setAlignmentSize (unsigned char v) |
void | setAlignmentPaddingFiller (unsigned char v) |
bool | getDontFillEmptyHBF () const |
void | setDontFillEmptyHBF (bool v) |
bool | getAddSeparateHBFStopPage () const |
void | setAddSeparateHBFStopPage (bool v) |
void | setRORCDetector () |
void | setUseRDHStop (bool v=true) |
void | setApplyCarryOverToLastPage (bool v) |
bool | isRORCDetector () const |
bool | isCRUDetector () const |
bool | isRDHStopUsed () const |
bool | isCarryOverToLastPageApplied () const |
Definition at line 42 of file RawFileWriter.h.
using o2::raw::RawFileWriter::CarryOverCallBack = std::function<int(const RDHAny* rdh, const gsl::span<char> data, const char* ptr, int size, int splitID, std::vector<char>& trailer, std::vector<char>& header)> |
Definition at line 48 of file RawFileWriter.h.
using o2::raw::RawFileWriter::EmptyPageCallBack = std::function<void(const RDHAny* rdh, std::vector<char>& emptyHBF)> |
Definition at line 51 of file RawFileWriter.h.
Definition at line 47 of file RawFileWriter.h.
using o2::raw::RawFileWriter::NewRDHCallBack = std::function<void(const RDHAny* rdh, bool prevEmpty, std::vector<char>& filler)> |
Definition at line 52 of file RawFileWriter.h.
Definition at line 46 of file RawFileWriter.h.
|
inline |
Definition at line 168 of file RawFileWriter.h.
RawFileWriter::~RawFileWriter | ( | ) |
Definition at line 32 of file RawFileWriter.cxx.
|
inline |
Definition at line 211 of file RawFileWriter.h.
void RawFileWriter::addData | ( | uint16_t | feeid, |
uint16_t | cru, | ||
uint8_t | lnk, | ||
uint8_t | endpoint, | ||
const IR & | ir, | ||
const gsl::span< char > | data, | ||
bool | preformatted = false , |
||
uint32_t | trigger = 0 , |
||
uint32_t | detField = 0 |
||
) |
Definition at line 180 of file RawFileWriter.cxx.
|
inline |
Definition at line 323 of file RawFileWriter.h.
void RawFileWriter::close | ( | ) |
Definition at line 38 of file RawFileWriter.cxx.
|
inline |
Definition at line 176 of file RawFileWriter.h.
|
inline |
Definition at line 336 of file RawFileWriter.h.
|
inline |
Definition at line 370 of file RawFileWriter.h.
|
inline |
Definition at line 361 of file RawFileWriter.h.
|
inline |
Definition at line 360 of file RawFileWriter.h.
|
inline |
Definition at line 367 of file RawFileWriter.h.
|
inline |
Definition at line 261 of file RawFileWriter.h.
IR RawFileWriter::getIRMax | ( | ) | const |
get highest IR seen so far
Definition at line 222 of file RawFileWriter.cxx.
|
inline |
Definition at line 201 of file RawFileWriter.h.
RawFileWriter::LinkData & RawFileWriter::getLinkWithSubSpec | ( | LinkSubSpec_t | ss | ) |
Definition at line 235 of file RawFileWriter.cxx.
|
inline |
Definition at line 240 of file RawFileWriter.h.
|
inline |
Definition at line 196 of file RawFileWriter.h.
|
inline |
Definition at line 253 of file RawFileWriter.h.
|
inline |
Definition at line 241 of file RawFileWriter.h.
|
inline |
Definition at line 255 of file RawFileWriter.h.
|
inline |
Definition at line 359 of file RawFileWriter.h.
|
inline |
Definition at line 352 of file RawFileWriter.h.
|
inline |
Definition at line 238 of file RawFileWriter.h.
|
inline |
Definition at line 393 of file RawFileWriter.h.
|
inline |
Definition at line 232 of file RawFileWriter.h.
|
inline |
Definition at line 391 of file RawFileWriter.h.
|
inline |
Definition at line 235 of file RawFileWriter.h.
|
inline |
Definition at line 392 of file RawFileWriter.h.
|
inline |
Definition at line 234 of file RawFileWriter.h.
|
inline |
Definition at line 390 of file RawFileWriter.h.
|
inline |
Definition at line 233 of file RawFileWriter.h.
|
inline |
Definition at line 348 of file RawFileWriter.h.
|
inline |
Definition at line 183 of file RawFileWriter.h.
RawFileWriter::LinkData & RawFileWriter::registerLink | ( | uint16_t | fee, |
uint16_t | cru, | ||
uint8_t | link, | ||
uint8_t | endpoint, | ||
std::string_view | outFileName | ||
) |
Definition at line 136 of file RawFileWriter.cxx.
|
inline |
Definition at line 371 of file RawFileWriter.h.
Definition at line 365 of file RawFileWriter.h.
Definition at line 364 of file RawFileWriter.h.
|
inline |
Definition at line 388 of file RawFileWriter.h.
|
inline |
Definition at line 264 of file RawFileWriter.h.
|
inline |
Definition at line 217 of file RawFileWriter.h.
|
inline |
Definition at line 223 of file RawFileWriter.h.
|
inline |
Definition at line 368 of file RawFileWriter.h.
|
inline |
Definition at line 273 of file RawFileWriter.h.
|
inline |
Definition at line 281 of file RawFileWriter.h.
|
inline |
Definition at line 191 of file RawFileWriter.h.
|
inline |
Definition at line 373 of file RawFileWriter.h.
Definition at line 215 of file RawFileWriter.cxx.
|
inline |
Definition at line 218 of file RawFileWriter.h.
|
inline |
Definition at line 380 of file RawFileWriter.h.
Definition at line 237 of file RawFileWriter.h.
void RawFileWriter::useCaching | ( | ) |
Definition at line 268 of file RawFileWriter.cxx.
Definition at line 363 of file RawFileWriter.h.
Definition at line 353 of file RawFileWriter.h.
void RawFileWriter::writeConfFile | ( | std::string_view | origin = "FLP" , |
std::string_view | description = "RAWDATA" , |
||
std::string_view | cfgname = "raw.cfg" , |
||
bool | fullPath = true |
||
) | const |
Definition at line 246 of file RawFileWriter.cxx.