Skip to content

Commit

Permalink
Move metadata handle name function upstream to podio
Browse files Browse the repository at this point in the history
Where it belongs
  • Loading branch information
tmadlener committed Jul 18, 2023
1 parent 9831478 commit 5179d70
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions k4FWCore/include/k4FWCore/MetaDataHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@

#include <type_traits>

namespace k4FWCore {

static std::string metaDataHandleDescriptor(const std::string& collectionName, const std::string& key) {
return collectionName + "__" + key;
}

} // namespace k4FWCore

template <typename T> class MetaDataHandle {
public:
MetaDataHandle();
Expand Down Expand Up @@ -88,7 +80,7 @@ template <typename T> void MetaDataHandle<T>::put(T value) {
template <typename T> std::string MetaDataHandle<T>::fullDescriptor() {
std::string full_descriptor;
if (nullptr != m_dataHandle) {
full_descriptor = k4FWCore::metaDataHandleDescriptor(m_dataHandle->objKey(), m_descriptor);
full_descriptor = podio::collMetadataParamName(m_dataHandle->objKey(), m_descriptor);
// remove the "/Event/" part of the collections' object key if in read mode
if (m_mode == Gaudi::DataHandle::Reader) {
full_descriptor.erase(0, 7);
Expand Down

0 comments on commit 5179d70

Please sign in to comment.