PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <SIOFrameReader.h>
Public Member Functions | |
SIOFrameReader () | |
~SIOFrameReader ()=default | |
SIOFrameReader (const SIOFrameReader &)=delete | |
SIOFrameReader & | operator= (const SIOFrameReader &)=delete |
std::unique_ptr< podio::SIOFrameData > | readNextEntry (const std::string &name) |
std::unique_ptr< podio::SIOFrameData > | readEntry (const std::string &name, const unsigned entry) |
unsigned | getEntries (const std::string &name) const |
Returns number of entries for the given name. | |
void | openFile (const std::string &filename) |
podio::version::Version | currentFileVersion () const |
Get the build version of podio that has been used to write the current file. | |
std::vector< std::string_view > | getAvailableCategories () const |
Get the names of all the availalable Frame categories in the current file(s) | |
const std::string_view | getDatamodelDefinition (const std::string &name) const |
Get the datamodel definition for the given name. | |
std::vector< std::string > | getAvailableDatamodels () const |
Get all names of the datamodels that ara available from this reader. | |
Definition at line 20 of file SIOFrameReader.h.
podio::SIOFrameReader::SIOFrameReader | ( | ) |
Definition at line 14 of file SIOFrameReader.cc.
|
default |
|
delete |
|
inline |
Get the build version of podio that has been used to write the current file.
Definition at line 50 of file SIOFrameReader.h.
std::vector< std::string_view > podio::SIOFrameReader::getAvailableCategories | ( | ) | const |
Get the names of all the availalable Frame categories in the current file(s)
Definition at line 58 of file SIOFrameReader.cc.
|
inline |
Get all names of the datamodels that ara available from this reader.
Definition at line 63 of file SIOFrameReader.h.
|
inline |
Get the datamodel definition for the given name.
Definition at line 58 of file SIOFrameReader.h.
unsigned podio::SIOFrameReader::getEntries | ( | const std::string & | name | ) | const |
Returns number of entries for the given name.
Definition at line 68 of file SIOFrameReader.cc.
void podio::SIOFrameReader::openFile | ( | const std::string & | filename | ) |
Definition at line 18 of file SIOFrameReader.cc.
|
delete |
std::unique_ptr< SIOFrameData > podio::SIOFrameReader::readEntry | ( | const std::string & | name, |
const unsigned | entry | ||
) |
Read the specified data entry from which a Frame can be constructed for the given name. In case the entry does not exist for this name or in case there is no data for this name, this returns a nullptr.
Definition at line 51 of file SIOFrameReader.cc.
std::unique_ptr< SIOFrameData > podio::SIOFrameReader::readNextEntry | ( | const std::string & | name | ) |
Read the next data entry from which a Frame can be constructed for the given name. In case there are no more entries left for this name or in case there is no data for this name, this returns a nullptr.
Definition at line 30 of file SIOFrameReader.cc.
Referenced by readEntry().