PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <ROOTLegacyReader.h>
Public Member Functions | |
ROOTLegacyReader ()=default | |
~ROOTLegacyReader ()=default | |
ROOTLegacyReader (const ROOTLegacyReader &)=delete | |
ROOTLegacyReader & | operator= (const ROOTLegacyReader &)=delete |
void | openFile (const std::string &filename) |
void | openFiles (const std::vector< std::string > &filenames) |
std::unique_ptr< podio::ROOTFrameData > | readNextEntry (const std::string &) |
std::unique_ptr< podio::ROOTFrameData > | readEntry (const std::string &, const unsigned entry) |
unsigned | getEntries (const std::string &) const |
Returns number of entries for a given category. | |
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 root reader for reading legacy podio root 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 the 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 48 of file ROOTLegacyReader.h.
|
default |
|
default |
|
delete |
|
inline |
Get the build version of podio that has been used to write the current file.
Definition at line 84 of file ROOTLegacyReader.h.
std::vector< std::string_view > podio::ROOTLegacyReader::getAvailableCategories | ( | ) | const |
Get the names of all the availalable Frame categories in the current file(s)
Definition at line 233 of file ROOTLegacyReader.cc.
unsigned podio::ROOTLegacyReader::getEntries | ( | const std::string & | name | ) | const |
Returns number of entries for a given category.
Definition at line 178 of file ROOTLegacyReader.cc.
void podio::ROOTLegacyReader::openFile | ( | const std::string & | filename | ) |
Definition at line 131 of file ROOTLegacyReader.cc.
void podio::ROOTLegacyReader::openFiles | ( | const std::vector< std::string > & | filenames | ) |
Definition at line 135 of file ROOTLegacyReader.cc.
Referenced by openFile().
|
delete |
std::unique_ptr< podio::ROOTFrameData > podio::ROOTLegacyReader::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 29 of file ROOTLegacyReader.cc.
Referenced by operator=(), readEntry(), and readNextEntry().
std::unique_ptr< ROOTFrameData > podio::ROOTLegacyReader::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 22 of file ROOTLegacyReader.cc.