Skip to content

Commit

Permalink
Use the new edm4hep::CellIDEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Nov 1, 2023
1 parent d008262 commit b03c1b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k4EDM4hep2LcioConv/src/k4EDM4hep2LcioConv.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h"
#include "edm4hep/Constants.h"
#include "EVENT/MCParticle.h"

namespace EDM4hep2LCIOConv {
Expand Down Expand Up @@ -33,7 +34,8 @@ namespace EDM4hep2LCIOConv {
for (const auto& name : collections) {
const auto edmCollection = edmEvent.get(name);

const auto& cellIDStr = metadata.getParameter<std::string>(podio::collMetadataParamName(name, "CellIDEncoding"));
const auto& cellIDStr =
metadata.getParameter<std::string>(podio::collMetadataParamName(name, edm4hep::CellIDEncoding));

if (auto coll = dynamic_cast<const edm4hep::TrackCollection*>(edmCollection)) {
auto lcColl = convTracks(coll, objectMappings.tracks, objectMappings.trackerHits);
Expand Down

0 comments on commit b03c1b2

Please sign in to comment.