Skip to content

Commit c7bb1c9

Browse files
committed
Move metadata handle name function upstream to podio
Where it belongs
1 parent 5d15e02 commit c7bb1c9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

k4FWCore/include/k4FWCore/MetaDataHandle.h

+1-9
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111

1212
#include <type_traits>
1313

14-
namespace k4FWCore {
15-
16-
static std::string metaDataHandleDescriptor(const std::string& collectionName, const std::string& key) {
17-
return collectionName + "__" + key;
18-
}
19-
20-
} // namespace k4FWCore
21-
2214
template <typename T> class MetaDataHandle {
2315
public:
2416
MetaDataHandle();
@@ -88,7 +80,7 @@ template <typename T> void MetaDataHandle<T>::put(T value) {
8880
template <typename T> std::string MetaDataHandle<T>::fullDescriptor() {
8981
std::string full_descriptor;
9082
if (nullptr != m_dataHandle) {
91-
full_descriptor = k4FWCore::metaDataHandleDescriptor(m_dataHandle->objKey(), m_descriptor);
83+
full_descriptor = podio::collMetadataParamName(m_dataHandle->objKey(), m_descriptor);
9284
// remove the "/Event/" part of the collections' object key if in read mode
9385
if (m_mode == Gaudi::DataHandle::Reader) {
9486
full_descriptor.erase(0, 7);

0 commit comments

Comments
 (0)