Skip to content
Snippets Groups Projects
Commit d9f258d9 authored by zoujh@ihep.ac.cn's avatar zoujh@ihep.ac.cn
Browse files

Update DataSvc in step with interface changes

parent 35e11a87
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ public:
using DataSvc::registerObject;
/// Overriding standard behaviour of evt service
/// Register object with the data store.
virtual StatusCode registerObject(const std::string& fullPath, DataObject* pObject) final;
virtual StatusCode registerObject(std::string_view parentPath, std::string_view fullPath, DataObject* pObject) override final;
StatusCode readCollection(const std::string& collectionName, int collectionID);
......
......@@ -101,10 +101,10 @@ StatusCode PodioDataSvc::readCollection(const std::string& collName, int collect
collection->setID(id);
wrapper->setData(collection);
m_readCollections.emplace_back(std::make_pair(collName, collection));
return DataSvc::registerObject(collName, wrapper);
return DataSvc::registerObject("/Event", "/" + collName, wrapper);
}
StatusCode PodioDataSvc::registerObject(const std::string& fullPath, DataObject* pObject) {
StatusCode PodioDataSvc::registerObject(std::string_view parentPath, std::string_view fullPath, DataObject* pObject) {
DataWrapperBase* wrapper = dynamic_cast<DataWrapperBase*>(pObject);
if (wrapper != nullptr) {
podio::CollectionBase* coll = wrapper->collectionBase();
......@@ -116,5 +116,5 @@ StatusCode PodioDataSvc::registerObject(const std::string& fullPath, DataObject*
m_collections.emplace_back(std::make_pair(shortPath, coll));
}
}
return DataSvc::registerObject(fullPath, pObject);
return DataSvc::registerObject(parentPath, fullPath, pObject);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment