Skip to content

Commit

Permalink
podio: support PODIO 00-16 (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Feb 8, 2023
1 parent 5d41734 commit 80b964b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/services/io/podio/EventStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ bool EventStore::collectionRegistered(const std::string& name) const {

void EventStore::setReader(podio::IReader* reader) {
m_reader = reader;
setCollectionIDTable(reader->getCollectionIDTable());
setCollectionIDTable(std::shared_ptr<podio::CollectionIDTable>(reader->getCollectionIDTable()));
}

} // namespace podio
6 changes: 3 additions & 3 deletions src/services/io/podio/EventStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ class EventStore : public podio::ICollectionProvider, public podio::IMetaDataPro
bool doGet(const std::string& name, podio::CollectionBase*& collection, bool setReferences = true) const;
/// check if a collection of given name already exists
bool collectionRegistered(const std::string& name) const;
void setCollectionIDTable(podio::CollectionIDTable* table) {
m_table.reset(table);
void setCollectionIDTable(std::shared_ptr<podio::CollectionIDTable> table) {
m_table = std::move(table);
}

// members
mutable std::set<int> m_retrievedIDs{};
mutable CollContainer m_collections{};
mutable std::vector<podio::CollectionBase*> m_cachedCollections{};
podio::IReader* m_reader{nullptr};
std::unique_ptr<podio::CollectionIDTable> m_table;
std::shared_ptr<podio::CollectionIDTable> m_table;

podio::GenericParameters m_evtMD{};
RunMDMap m_runMDMap{};
Expand Down

0 comments on commit 80b964b

Please sign in to comment.