diff --git a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp index 450550546..03b46c525 100644 --- a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp +++ b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp @@ -25,6 +25,7 @@ #include #include #include +#include /// podio include files #include #include @@ -267,7 +268,7 @@ void Geant4Output2EDM4hep::endRun(const G4Run* run) { void Geant4Output2EDM4hep::saveFileMetaData() { podio::Frame metaFrame{}; for (const auto& [name, encodingStr] : m_cellIDEncodingStrings) { - metaFrame.putParameter(name + "__CellIDEncoding", encodingStr); + metaFrame.putParameter(name + "__" + edm4hep::labels::CellIDEncoding, encodingStr); } m_file->writeFrame(metaFrame, "metadata");