Commit fa539623 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

gaudi@36.5 has no more DataObjectHandle::setRead

parent 713ccfbc
......@@ -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() +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment