![]() |
Project
|
#include <RawFileWriter.h>
Public Member Functions | |
| LinkData ()=default | |
| ~LinkData ()=default | |
| LinkData (const LinkData &src) | |
| LinkData & | operator= (const LinkData &src) |
| void | close (const IR &ir) |
| void | print () const |
| void | addData (const IR &ir, const gsl::span< char > data, bool preformatted=false, uint32_t trigger=0, uint32_t detField=0) |
| RDHAny * | getLastRDH () |
| int | getCurrentPageSize () const |
| bool | isNewPage () const |
| std::string | describe () const |
Public Attributes | |
| RDHAny | rdhCopy |
| IR | updateIR |
| int | lastRDHoffset = -1 |
| bool | startOfRun = true |
| uint8_t | packetCounter = 0 |
| uint16_t | pageCnt = 0 |
| LinkSubSpec_t | subspec = 0 |
| bool | discardData = false |
| size_t | nTFWritten = 0 |
| size_t | nRDHWritten = 0 |
| size_t | nBytesWritten = 0 |
| std::string | fileName {} |
| std::vector< char > | buffer |
| RawFileWriter * | writer = nullptr |
| PayloadCache | cacheBuffer |
| std::unique_ptr< TTree > | cacheTree |
| std::mutex | mtx |
Static Public Attributes | |
| static constexpr int | MarginToFlush = 10 * sizeof(RDHAny) |
Protected Member Functions | |
| void | addDataInternal (const IR &ir, const gsl::span< char > data, bool preformatted=false, uint32_t trigger=0, uint32_t detField=0, bool checkEmpty=true) |
| void | openHBFPage (const RDHAny &rdh, uint32_t trigger=0) |
| void | addHBFPage (bool stop=false) |
| void | closeHBFPage () |
| void | flushSuperPage (bool keepLastPage=false) |
| void | fillEmptyHBHs (const IR &ir, bool dataAdded) |
| void | addPreformattedCRUPage (const gsl::span< char > data) |
| void | cacheData (const IR &ir, const gsl::span< char > data, bool preformatted, uint32_t trigger=0, uint32_t detField=0) |
| size_t | expandBufferBy (size_t by) |
| expand buffer by positive increment and return old size | |
| size_t | pushBack (const char *ptr, size_t sz, bool keepLastOnFlash=true) |
| append to the end of the buffer and return the point where appended to | |
| size_t | pushBack (const RDHAny &rdh) |
| add RDH to buffer. In case this requires flushing of the superpage, do not keep the previous page | |
===================================================================================== Single GBT link helper
Definition at line 81 of file RawFileWriter.h.
|
default |
|
default |
| RawFileWriter::LinkData::LinkData | ( | const LinkData & | src | ) |
Definition at line 110 of file RawFileWriter.cxx.
| void RawFileWriter::LinkData::addData | ( | const IR & | ir, |
| const gsl::span< char > | data, | ||
| bool | preformatted = false, |
||
| uint32_t | trigger = 0, |
||
| uint32_t | detField = 0 |
||
| ) |
Definition at line 308 of file RawFileWriter.cxx.
|
protected |
Definition at line 316 of file RawFileWriter.cxx.
Add new page (RDH) to existing one for the link (possibly stop page)
Definition at line 468 of file RawFileWriter.cxx.
Definition at line 447 of file RawFileWriter.cxx.
|
protected |
Definition at line 286 of file RawFileWriter.cxx.
Definition at line 622 of file RawFileWriter.cxx.
|
protected |
Definition at line 540 of file RawFileWriter.cxx.
| std::string RawFileWriter::LinkData::describe | ( | ) | const |
Definition at line 679 of file RawFileWriter.cxx.
|
inlineprotected |
expand buffer by positive increment and return old size
Definition at line 129 of file RawFileWriter.h.
Definition at line 639 of file RawFileWriter.cxx.
Definition at line 598 of file RawFileWriter.cxx.
|
inline |
Definition at line 113 of file RawFileWriter.h.
|
inline |
Definition at line 112 of file RawFileWriter.h.
|
inline |
Definition at line 115 of file RawFileWriter.h.
create 1st page of the new HBF
Definition at line 562 of file RawFileWriter.cxx.
| RawFileWriter::LinkData & RawFileWriter::LinkData::operator= | ( | const LinkData & | src | ) |
Definition at line 115 of file RawFileWriter.cxx.
| void RawFileWriter::LinkData::print | ( | ) | const |
Definition at line 689 of file RawFileWriter.cxx.
|
protected |
append to the end of the buffer and return the point where appended to
Definition at line 695 of file RawFileWriter.cxx.
|
inlineprotected |
add RDH to buffer. In case this requires flushing of the superpage, do not keep the previous page
Definition at line 140 of file RawFileWriter.h.
| std::vector<char> o2::raw::RawFileWriter::LinkData::buffer |
Definition at line 97 of file RawFileWriter.h.
| PayloadCache o2::raw::RawFileWriter::LinkData::cacheBuffer |
Definition at line 100 of file RawFileWriter.h.
| std::unique_ptr<TTree> o2::raw::RawFileWriter::LinkData::cacheTree |
Definition at line 101 of file RawFileWriter.h.
Definition at line 90 of file RawFileWriter.h.
| std::string o2::raw::RawFileWriter::LinkData::fileName {} |
Definition at line 96 of file RawFileWriter.h.
| int o2::raw::RawFileWriter::LinkData::lastRDHoffset = -1 |
Definition at line 85 of file RawFileWriter.h.
|
staticconstexpr |
Definition at line 82 of file RawFileWriter.h.
| std::mutex o2::raw::RawFileWriter::LinkData::mtx |
Definition at line 103 of file RawFileWriter.h.
| size_t o2::raw::RawFileWriter::LinkData::nBytesWritten = 0 |
Definition at line 94 of file RawFileWriter.h.
| size_t o2::raw::RawFileWriter::LinkData::nRDHWritten = 0 |
Definition at line 93 of file RawFileWriter.h.
| size_t o2::raw::RawFileWriter::LinkData::nTFWritten = 0 |
Definition at line 92 of file RawFileWriter.h.
| uint8_t o2::raw::RawFileWriter::LinkData::packetCounter = 0 |
Definition at line 87 of file RawFileWriter.h.
| uint16_t o2::raw::RawFileWriter::LinkData::pageCnt = 0 |
Definition at line 88 of file RawFileWriter.h.
| RDHAny o2::raw::RawFileWriter::LinkData::rdhCopy |
Definition at line 83 of file RawFileWriter.h.
Definition at line 86 of file RawFileWriter.h.
| LinkSubSpec_t o2::raw::RawFileWriter::LinkData::subspec = 0 |
Definition at line 89 of file RawFileWriter.h.
| IR o2::raw::RawFileWriter::LinkData::updateIR |
Definition at line 84 of file RawFileWriter.h.
| RawFileWriter* o2::raw::RawFileWriter::LinkData::writer = nullptr |
Definition at line 98 of file RawFileWriter.h.