Skip to content
Snippets Groups Projects
Commit fa539623 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

gaudi@36.5 has no more DataObjectHandle::setRead

parent 713ccfbc
No related branches found
No related tags found
1 merge request!417gaudi@36.5 has no more DataObjectHandle::setRead
......@@ -149,13 +149,11 @@ const T* DataHandle<T>::get() {
}
}
if (LIKELY(m_isGoodType)) {
DataObjectHandle<DataWrapper<T>>::setRead();
return static_cast<DataWrapper<T>*>(dataObjectp)->getData();
} else if (m_isCollection) {
// The reader does not know the specific type of the collection. So we need a reinterpret_cast if the handle was
// created by the reader.
DataWrapper<podio::CollectionBase>* tmp = static_cast<DataWrapper<podio::CollectionBase>*>(dataObjectp);
DataObjectHandle<DataWrapper<T>>::setRead();
return reinterpret_cast<const T*>(tmp->collectionBase());
} else {
std::string errorMsg("The type provided for " + DataObjectHandle<DataWrapper<T>>::pythonRepr() +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment