PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <ROOTReader.h>
Public Member Functions | |
ROOTReader ()=default | |
~ROOTReader () | |
ROOTReader (const ROOTReader &)=delete | |
ROOTReader & | operator= (const ROOTReader &)=delete |
void | openFile (const std::string &filename) override |
void | openFiles (const std::vector< std::string > &filenames) |
void | closeFile () override |
void | closeFiles () |
void | readEvent () override |
Read all collections requested. | |
std::shared_ptr< CollectionIDTable > | getCollectionIDTable () override |
Read CollectionIDTable from ROOT file. | |
unsigned | getEntries () const override |
Returns number of entries in the TTree. | |
void | endOfEvent () override |
Preparing to read next event. | |
void | goToEvent (unsigned evnum) override |
Preparing to read a given event. | |
podio::version::Version | currentFileVersion () const override |
Get the podio version with which the current file has been written. | |
bool | isValid () const override |
Check if TFile is valid. | |
Public Member Functions inherited from podio::IReader | |
virtual | ~IReader ()=default |
virtual CollectionBase * | readCollection (const std::string &name)=0 |
virtual std::shared_ptr< CollectionIDTable > | getCollectionIDTable ()=0 |
Get CollectionIDTable of read-in data. | |
virtual GenericParameters * | readEventMetaData ()=0 |
read event meta data from file | |
virtual std::map< int, GenericParameters > * | readCollectionMetaData ()=0 |
virtual std::map< int, GenericParameters > * | readRunMetaData ()=0 |
virtual unsigned | getEntries () const =0 |
get the number of events available from this reader | |
virtual void | endOfEvent ()=0 |
Prepare the reader to read the next event. | |
virtual bool | isValid () const =0 |
Check if reader is valid. | |
virtual void | openFile (const std::string &filename)=0 |
virtual void | closeFile ()=0 |
virtual void | readEvent ()=0 |
virtual void | goToEvent (unsigned iEvent)=0 |
virtual podio::version::Version | currentFileVersion () const =0 |
Get the podio version with which the current file has been written. | |
This class has the function to read available data from disk and to prepare collections and buffers.
Definition at line 33 of file ROOTReader.h.
|
default |
podio::ROOTReader::~ROOTReader | ( | ) |
Definition at line 20 of file ROOTReader.cc.
|
delete |
|
overridevirtual |
Implements podio::IReader.
Definition at line 188 of file ROOTReader.cc.
void podio::ROOTReader::closeFiles | ( | ) |
Definition at line 192 of file ROOTReader.cc.
Referenced by closeFile().
|
inlineoverridevirtual |
Get the podio version with which the current file has been written.
Implements podio::IReader.
Definition at line 67 of file ROOTReader.h.
|
overridevirtual |
Preparing to read next event.
Implements podio::IReader.
Definition at line 212 of file ROOTReader.cc.
Referenced by testWithIO().
|
inlineoverridevirtual |
Read CollectionIDTable from ROOT file.
Implements podio::IReader.
Definition at line 54 of file ROOTReader.h.
|
overridevirtual |
Returns number of entries in the TTree.
Implements podio::IReader.
Definition at line 217 of file ROOTReader.cc.
|
overridevirtual |
Preparing to read a given event.
Implements podio::IReader.
Definition at line 221 of file ROOTReader.cc.
|
overridevirtual |
Check if TFile is valid.
Implements podio::IReader.
Definition at line 208 of file ROOTReader.cc.
|
overridevirtual |
Implements podio::IReader.
Definition at line 140 of file ROOTReader.cc.
Referenced by testWithIO().
void podio::ROOTReader::openFiles | ( | const std::vector< std::string > & | filenames | ) |
Definition at line 144 of file ROOTReader.cc.
Referenced by openFile().
|
delete |
|
overridevirtual |
Read all collections requested.
Implements podio::IReader.
Definition at line 196 of file ROOTReader.cc.