ATLAS Offline Software
ITrackScoringTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef ITRKTRACKSCORINGTOOL_H
7 #define ITRKTRACKSCORINGTOOL_H
8 
9 #include "GaudiKernel/IAlgTool.h"
11 
12 static const InterfaceID IID_ITrackScoringTool("Trk::ITrackScoringTool", 1, 0);
13 
14 namespace Trk {
15 
16  class Track;
17  class TrackSummary;
18 
22  class ITrackScoringTool : virtual public IAlgTool
23  {
24  public:
25 
26  static const InterfaceID& interfaceID( ) ;
30  virtual bool passBasicSelections( const Track& track ) const = 0;
31  virtual TrackScore score( const Track& track, bool checkBasicSel = true ) const = 0;
32  virtual TrackScore simpleScore( const Track& track, const TrackSummary& summary ) const = 0;
33  };
34 
35 }//end of ns
36 
37 inline const InterfaceID& Trk::ITrackScoringTool::interfaceID()
38 {
39  return IID_ITrackScoringTool;
40 }
41 
42 #endif
Trk::ITrackScoringTool
Interface for tool to return a score from a given track.
Definition: ITrackScoringTool.h:23
Trk::ITrackScoringTool::score
virtual TrackScore score(const Track &track, bool checkBasicSel=true) const =0
Trk::TrackScore
float TrackScore
Definition: TrackScore.h:10
Trk::ITrackScoringTool::interfaceID
static const InterfaceID & interfaceID()
Definition: ITrackScoringTool.h:37
Trk::ITrackScoringTool::simpleScore
virtual TrackScore simpleScore(const Track &track, const TrackSummary &summary) const =0
Trk::ITrackScoringTool::passBasicSelections
virtual bool passBasicSelections(const Track &track) const =0
create a score based on how good the passed track is
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
xAOD::TrackSummary
TrackSummary_v1 TrackSummary
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackSummary.h:10
SCT_Monitoring::summary
@ summary
Definition: SCT_MonitoringNumbers.h:65