PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <SIOLegacyReader.h>
Public Member Functions | |
SIOLegacyReader () | |
~SIOLegacyReader ()=default | |
SIOLegacyReader (const SIOLegacyReader &)=delete | |
SIOLegacyReader & | operator= (const SIOLegacyReader &)=delete |
std::unique_ptr< podio::SIOFrameData > | readNextEntry (const std::string &) |
std::unique_ptr< podio::SIOFrameData > | readEntry (const std::string &, const unsigned entry) |
unsigned | getEntries (const std::string &name) const |
Returns the number of. | |
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) | |
A SIO reader for reading legacy podio .sio files that have been written using the legacy, non Frame based I/O model. This reader grants Frame based access to those files, by mimicking Frame I/O functionality and the interfaces of those readers.
NOTE: Since there was only one category ("events") for those legacy podio files this reader will really only work if you try to read that category, and will simply return no data if you try to read anything else.
Definition at line 28 of file SIOLegacyReader.h.
podio::SIOLegacyReader::SIOLegacyReader | ( | ) |
Definition at line 12 of file SIOLegacyReader.cc.
|
default |
|
delete |
|
inline |
Get the build version of podio that has been used to write the current file.
Definition at line 62 of file SIOLegacyReader.h.
std::vector< std::string_view > podio::SIOLegacyReader::getAvailableCategories | ( | ) | const |
Get the names of all the availalable Frame categories in the current file(s)
Definition at line 128 of file SIOLegacyReader.cc.
unsigned podio::SIOLegacyReader::getEntries | ( | const std::string & | name | ) | const |
Returns the number of.
Definition at line 69 of file SIOLegacyReader.cc.
void podio::SIOLegacyReader::openFile | ( | const std::string & | filename | ) |
Definition at line 16 of file SIOLegacyReader.cc.
|
delete |
std::unique_ptr< podio::SIOFrameData > podio::SIOLegacyReader::readEntry | ( | const std::string & | name, |
const unsigned | entry | ||
) |
Read the specified data entry from which a Frame can be constructed In case the entry does not exist, this returns a nullptr.
NOTE: the category name has to be "events" in this case, as only that category is available for legacy files.
Definition at line 51 of file SIOLegacyReader.cc.
std::unique_ptr< SIOFrameData > podio::SIOLegacyReader::readNextEntry | ( | const std::string & | name | ) |
Read the next data entry from which a Frame can be constructed. In case there are no more entries left, this returns a nullptr.
NOTE: the category name has to be "events" in this case, as only that category is available for legacy files.
Definition at line 27 of file SIOLegacyReader.cc.
Referenced by readEntry().