From 0dd4383f4efb264255694884bd6ab15cfe7e37a3 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 17 Oct 2024 14:53:52 +0200 Subject: [PATCH] Use podio::collMetadataParamName for finding the parameter name --- DDG4/edm4hep/Geant4Output2EDM4hep.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp index 03b46c525..1ceb1e00c 100644 --- a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp +++ b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #if PODIO_BUILD_VERSION >= PODIO_VERSION(0, 99, 0) #include #else @@ -268,7 +269,7 @@ void Geant4Output2EDM4hep::endRun(const G4Run* run) { void Geant4Output2EDM4hep::saveFileMetaData() { podio::Frame metaFrame{}; for (const auto& [name, encodingStr] : m_cellIDEncodingStrings) { - metaFrame.putParameter(name + "__" + edm4hep::labels::CellIDEncoding, encodingStr); + metaFrame.putParameter(podio::collMetadataParamName(name, edm4hep::labels::CellIDEncoding), encodingStr); } m_file->writeFrame(metaFrame, "metadata");