ATLAS Offline Software
MuonSimHitHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONTRUTHHELPERS_MUONSIMHITHELPERS_H
5 #define MUONTRUTHHELPERS_MUONSIMHITHELPERS_H
6 
9 #include <xAODMuon/MuonSegment.h>
10 
11 #include <unordered_set>
16 namespace MuonR4 {
17  class SpacePoint;
18  class CalibratedSpacePoint;
19  class Segment;
20  class SegmentSeed;
21  class SpacePointBucket;
25  std::unordered_set<const xAOD::MuonSimHit*> getTruthMatchedHits(const xAOD::MuonSegment& segment);
28  std::unordered_set<const xAOD::MuonSimHit*> getTruthMatchedHits(const std::vector<const SpacePoint*>& spacePoints);
30  std::unordered_set<const xAOD::MuonSimHit*> getTruthMatchedHits(const std::vector<const CalibratedSpacePoint*>& measurements);
32  std::unordered_set<const xAOD::MuonSimHit*> getTruthMatchedHits(const Segment& seg);
34  std::unordered_set<const xAOD::MuonSimHit*> getTruthMatchedHits(const SegmentSeed& seed);
36  std::unordered_set<const xAOD::MuonSimHit*> getTruthMatchedHits(const SpacePointBucket& bucket);
37 }
38 
39 #endif
UncalibratedMeasurement.h
xAOD::MuonSimHit_v1
Definition: MuonSimHit_v1.h:18
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
MuonR4::getTruthMatchedHits
std::unordered_set< const xAOD::MuonSimHit * > getTruthMatchedHits(const xAOD::MuonSegment &segment)
: Returns all truth hits matched to a xAOD::MuonSegment
Definition: MuonSimHitHelpers.cxx:24
MuonSegment.h
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
MuonSimHit.h
SpacePoint
Definition: Trigger/TrigAccel/TrigCudaFitter/src/SpacePoint.h:7
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
MuonR4::getTruthMatchedHit
const xAOD::MuonSimHit * getTruthMatchedHit(const xAOD::UncalibratedMeasurement &prdHit)
Returns the MuonSimHit, if there's any, matched to the uncalibrated muon measurement.
Definition: MuonSimHitHelpers.cxx:13
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5