Skip to content

Commit

Permalink
Introduce a quick workaround for collection metadata creation (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener authored Jul 18, 2023
1 parent f746971 commit 38d9d83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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
2 changes: 1 addition & 1 deletion k4FWCore/include/k4FWCore/PodioDataSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PodioDataSvc : public DataSvc {
/// Resets caches of reader and event store, increases event counter
void endOfRead();

private:
/// TODO: Make this private again after conversions have been properly solved
podio::Frame& getMetaDataFrame() { return m_metadataframe; }

private:
Expand Down

0 comments on commit 38d9d83

Please sign in to comment.