ATLAS Offline Software
TrackScoringTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef TRKTRACKSCORINGTOOL_H
7 #define TRKTRACKSCORINGTOOL_H
8 
9 #include "GaudiKernel/ToolHandle.h"
13 #include <vector>
14 
15 namespace Trk
16 {
17 
18 class Track;
19 class TrackSummary;
20 
22  class TrackScoringTool final: virtual public ITrackScoringTool, public AthAlgTool{
23 
24  public:
25  TrackScoringTool(const std::string&,const std::string&,const IInterface*);
26  virtual ~TrackScoringTool () = default;
28  TrackScore score( const Track& track ) const override;
29 
31  TrackScore simpleScore( const Track& track, const TrackSummary& trackSummary ) const override;
32 
33  private:
35  std::vector<TrackScore> m_summaryTypeScore;
36  };
37 }
38 #endif
Trk::TrackScoringTool::simpleScore
TrackScore simpleScore(const Track &track, const TrackSummary &trackSummary) const override
create a score based on how good the passed TrackSummary is
Definition: TrackScoringTool.cxx:62
Trk::ITrackScoringTool
Interface for tool to return a score from a given track.
Definition: ITrackScoringTool.h:23
Trk::TrackScoringTool::TrackScoringTool
TrackScoringTool(const std::string &, const std::string &, const IInterface *)
Definition: TrackScoringTool.cxx:16
ITrackScoringTool.h
Trk::TrackScoringTool::m_summaryTypeScore
std::vector< TrackScore > m_summaryTypeScore
holds the scores assigned to each Trk::SummaryType from the track's Trk::TrackSummary
Definition: TrackScoringTool.h:35
Trk::TrackScoringTool
Concrete implementation of the ITrackScoringTool pABC.
Definition: TrackScoringTool.h:22
AthAlgTool.h
Trk::TrackScore
float TrackScore
Definition: TrackScore.h:10
Trk::TrackScoringTool::score
TrackScore score(const Track &track) const override
create a score based on how good the passed track is
Definition: TrackScoringTool.cxx:52
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::TrackSummary
A summary of the information contained by a track.
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:287
TrackScore.h
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
AthAlgTool
Definition: AthAlgTool.h:26
Trk::TrackScoringTool::~TrackScoringTool
virtual ~TrackScoringTool()=default
xAOD::TrackSummary
TrackSummary_v1 TrackSummary
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackSummary.h:10