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");