Skip to content

Commit

Permalink
Use edm4hep::labels::CellIDEncoding instead of "CellIDEncoding"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 17, 2024
1 parent 15eeabc commit b1e36a5
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 @@ -25,6 +25,7 @@
#include <edm4hep/CaloHitContributionCollection.h>
#include <edm4hep/SimCalorimeterHitCollection.h>
#include <edm4hep/EDM4hepVersion.h>
#include <edm4hep/Constants.h>
/// podio include files
#include <podio/CollectionBase.h>
#include <podio/podioVersion.h>
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit b1e36a5

Please sign in to comment.