Skip to content

Commit

Permalink
Gaudi v36r5 removes SetRead in DataHandle (#85)
Browse files Browse the repository at this point in the history
* gaudi v36r5 removes SetRead in DataHandle

* update ci workflows
  • Loading branch information
vvolkl committed May 26, 2022
1 parent 73edff3 commit d1061e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
fail-fast: false
matrix:
cvmfs_base: ['sft.cern.ch/lcg/views']
ENVIRONMENT: ['LCG_99/x86_64-centos7-gcc8-opt',
ENVIRONMENT: ['LCG_102rc1/x86_64-centos7-gcc11-opt',
'dev3/latest/x86_64-centos7-gcc10-opt',
'dev4/latest/x86_64-centos7-clang11-opt']
]
include:
- cvmfs_base: 'sw.hsf.org'
ENVIRONMENT: 'key4hep'
Expand Down
2 changes: 0 additions & 2 deletions k4FWCore/include/k4FWCore/DataHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,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() +
Expand Down

0 comments on commit d1061e2

Please sign in to comment.