Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to newer podio versions #2606

Merged
merged 10 commits into from
Nov 22, 2023
2 changes: 1 addition & 1 deletion Examples/Io/EDM4hep/src/EDM4hepParticleReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ProcessCode EDM4hepParticleReader::read(const AlgorithmContext& ctx) {
EDM4hepUtil::readParticle(mcParticle, [](const edm4hep::MCParticle& p) {
ActsFatras::Barcode result;
// TODO dont use podio internal id
result.setParticle(p.id());
result.setParticle(p.id().index);
return result;
});
unordered.push_back(particle);
Expand Down
4 changes: 2 additions & 2 deletions Examples/Io/EDM4hep/src/EDM4hepSimHitReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ProcessCode EDM4hepSimHitReader::read(const AlgorithmContext& ctx) {
mcParticle, [](const edm4hep::MCParticle& p) {
ActsFatras::Barcode result;
// TODO dont use podio internal id
result.setParticle(p.id());
result.setParticle(p.id().index);
return result;
});
unordered.push_back(particle);
Expand All @@ -78,7 +78,7 @@ ProcessCode EDM4hepSimHitReader::read(const AlgorithmContext& ctx) {
[](const edm4hep::MCParticle& particle) {
ActsFatras::Barcode result;
// TODO dont use podio internal id
result.setParticle(particle.id());
result.setParticle(particle.id().index);
return result;
},
[&](std::uint64_t cellId) {
Expand Down
2 changes: 1 addition & 1 deletion Examples/Io/EDM4hep/src/EDM4hepUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Measurement EDM4hepUtil::readMeasurement(
// no need for digitization as we only want to identify the sensor
Acts::GeometryIdentifier geometryId = geometryMapper(from.getCellID());

IndexSourceLink sourceLink{geometryId, from.id()};
IndexSourceLink sourceLink{geometryId, static_cast<Index>(from.id().index)};

auto pos = from.getPosition();
auto cov = from.getCovMatrix();
Expand Down
Loading