PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <ROOTFrameReader.h>
Public Member Functions | |
ROOTFrameReader ()=default | |
~ROOTFrameReader ()=default | |
ROOTFrameReader (const ROOTFrameReader &)=delete | |
ROOTFrameReader & | operator= (const ROOTFrameReader &)=delete |
void | openFile (const std::string &filename) |
void | openFiles (const std::vector< std::string > &filenames) |
std::unique_ptr< podio::ROOTFrameData > | readNextEntry (const std::string &name) |
std::unique_ptr< podio::ROOTFrameData > | readEntry (const std::string &name, const unsigned entry) |
unsigned | getEntries (const std::string &name) const |
Returns number of entries for the given name. | |
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. | |
This class has the function to read available data from disk and to prepare collections and buffers.
Definition at line 44 of file ROOTFrameReader.h.
|
default |
|
default |
|
delete |
|
inline |
Get the build version of podio that has been used to write the current file.
Definition at line 76 of file ROOTFrameReader.h.
std::vector< std::string_view > podio::ROOTFrameReader::getAvailableCategories | ( | ) | const |
Get the names of all the availalable Frame categories in the current file(s)
Definition at line 248 of file ROOTFrameReader.cc.
|
inline |
Get all names of the datamodels that ara available from this reader.
Definition at line 89 of file ROOTFrameReader.h.
|
inline |
Get the datamodel definition for the given name.
Definition at line 84 of file ROOTFrameReader.h.
unsigned podio::ROOTFrameReader::getEntries | ( | const std::string & | name | ) | const |
Returns number of entries for the given name.
Definition at line 240 of file ROOTFrameReader.cc.
void podio::ROOTFrameReader::openFile | ( | const std::string & | filename | ) |
Definition at line 196 of file ROOTFrameReader.cc.
void podio::ROOTFrameReader::openFiles | ( | const std::vector< std::string > & | filenames | ) |
Definition at line 200 of file ROOTFrameReader.cc.
Referenced by openFile().
|
delete |
std::unique_ptr< ROOTFrameData > podio::ROOTFrameReader::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 41 of file ROOTFrameReader.cc.
Referenced by readEntry(), and readNextEntry().
std::unique_ptr< ROOTFrameData > podio::ROOTFrameReader::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 36 of file ROOTFrameReader.cc.