11 std::ifstream inputfile(name);
12 m_isZombie = inputfile.good() ? false :
true;
19 if (!std::string(
"root:/").compare(0, 6, name, 6)) {
27 m_reader->openFile(name);
34 m_store.get(name, coll);
40 m_reader->endOfEvent();
45 m_reader->goToEvent(ievent);
49 return m_reader->getEntries();
53 return m_store.getCollectionIDTable()->names();
void setReader(IReader *reader)
set the reader
PythonEventStore(const char *filename)
constructor from filename
void goToEvent(unsigned ievent)
go to a given event
unsigned getEntries() const
get number of entries in the tree
const podio::CollectionBase * get(const char *name)
access a collection.
const std::vector< std::string > & getCollectionNames() const
list available collections
void endOfEvent()
signify end of event
std::unique_ptr< podio::IReader > createReader(const std::string &filename)