Skip to content

Commit

Permalink
Use podio::collMetadataParamName for finding the parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and andresailer committed Oct 17, 2024
1 parent 89c9763 commit 0dd4383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DDG4/edm4hep/Geant4Output2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <podio/CollectionBase.h>
#include <podio/podioVersion.h>
#include <podio/Frame.h>
#include <podio/FrameCategories.h>
#if PODIO_BUILD_VERSION >= PODIO_VERSION(0, 99, 0)
#include <podio/ROOTWriter.h>
#else
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 0dd4383

Please sign in to comment.