From 7231b87626cf46274940d20ba05c5abfaaa79ef0 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 17 Oct 2024 13:58:05 +0200 Subject: [PATCH] Use edm4hep::labels::CellIDEncoding instead of "CellIDEncoding" --- 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 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");