10 #include <AthLinks/ElementLink.h>
15 if (
acc.isAvailable(prdHit)){
25 using SimHitLinkVec = std::vector<ElementLink<xAOD::MuonSimHitContainer>>;
27 std::unordered_set<const xAOD::MuonSimHit*>
hits{};
40 std::unordered_set<const xAOD::MuonSimHit*>
getTruthMatchedHits(
const std::vector<const SpacePoint*>& spacePoints) {
41 std::unordered_set<const xAOD::MuonSimHit*>
hits{};
48 if (secHit && secHit != primHit) {
55 std::unordered_set<const xAOD::MuonSimHit*>
getTruthMatchedHits(
const std::vector<const CalibratedSpacePoint*>& measurements) {
56 std::unordered_set<const xAOD::MuonSimHit*>
hits{};
65 if (secHit && secHit != primHit) {
72 std::vector<const CalibratedSpacePoint*> calibSps{};
73 calibSps.reserve(
segment.measurements().size());
78 std::vector<const SpacePoint*> spacePoints{};
79 spacePoints.reserve(bucket.size());
80 std::ranges::transform(bucket, std::back_inserter(spacePoints), [](
const SpacePointBucket::value_type& sp){
return sp.get();});