PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <SIOBlock.h>
Public Types | |
using | PositionType = sio_helpers::position_type |
Public Member Functions | |
void | addRecord (const std::string &name, PositionType startPos) |
size_t | getNRecords (const std::string &name) const |
PositionType | getPosition (const std::string &name, unsigned iEntry=0) const |
std::vector< std::string_view > | getRecordNames () const |
Friends | |
struct | SIOFileTOCRecordBlock |
Definition at line 285 of file SIOBlock.h.
Definition at line 287 of file SIOBlock.h.
void podio::SIOFileTOCRecord::addRecord | ( | const std::string & | name, |
PositionType | startPos | ||
) |
Definition at line 184 of file SIOBlock.cc.
Referenced by podio::SIOFrameWriter::finish(), podio::SIOWriter::finish(), podio::SIOWriter::writeEvent(), and podio::SIOFrameWriter::writeFrame().
size_t podio::SIOFileTOCRecord::getNRecords | ( | const std::string & | name | ) | const |
Definition at line 195 of file SIOBlock.cc.
Referenced by podio::SIOReader::getEntries(), podio::SIOFrameReader::getEntries(), and podio::SIOLegacyReader::getEntries().
SIOFileTOCRecord::PositionType podio::SIOFileTOCRecord::getPosition | ( | const std::string & | name, |
unsigned | iEntry = 0 |
||
) | const |
Get the position of the iEntry-th record with the given name. If no entry with the given name is recorded, return 0. Note there is no internal check on whether the given name actually has iEntry records. Use getNRecords to check for that if necessary.
Definition at line 204 of file SIOBlock.cc.
Referenced by podio::SIOLegacyReader::readEntry(), and podio::SIOFrameReader::readNextEntry().
std::vector< std::string_view > podio::SIOFileTOCRecord::getRecordNames | ( | ) | const |
Get all the record names that are stored in this TOC record
Definition at line 216 of file SIOBlock.cc.
Referenced by podio::SIOFrameReader::getAvailableCategories().
|
friend |
Definition at line 304 of file SIOBlock.h.