Skip to content

Commit

Permalink
Make sure to still convert TrackerHitPlane associations
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 2, 2024
1 parent 57c3734 commit 1cbad53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,11 @@ createAssociations(const ObjectMappingT& typeMapping,
auto mc_a = createAssociationCollection<edm4hep::MCRecoTrackParticleAssociationCollection, true>(
relations, typeMapping.tracks, typeMapping.mcParticles);
assoCollVec.emplace_back(name, std::move(mc_a));
} else if (fromType == "TrackerHit" && toType == "SimTrackerHit") {
} else if ((fromType == "TrackerHit" || fromType == "TrackerHitPlane") && toType == "SimTrackerHit") {
auto mc_a = createAssociationCollection<edm4hep::MCRecoTrackerAssociationCollection, true>(
relations, typeMapping.trackerHits, typeMapping.simTrackerHits);
assoCollVec.emplace_back(name, std::move(mc_a));
} else if (fromType == "SimTrackerHit" && toType == "TrackerHit") {
} else if (fromType == "SimTrackerHit" && (toType == "TrackerHit" || fromType == "TrackerHitPlane")) {
auto mc_a = createAssociationCollection<edm4hep::MCRecoTrackerAssociationCollection, false>(
relations, typeMapping.simTrackerHits, typeMapping.trackerHits);
assoCollVec.emplace_back(name, std::move(mc_a));
Expand Down

0 comments on commit 1cbad53

Please sign in to comment.