ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTrackScoringTool.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#ifndef MUONTRACKSCORINGTOOL_H
6#define MUONTRACKSCORINGTOOL_H
7
8#include <string>
9#include <vector>
10
12#include "GaudiKernel/ToolHandle.h"
17
18namespace Trk {
19 class Track;
20 class TrackSummary;
21} // namespace Trk
22
23namespace Muon {
24
27 public:
28 MuonTrackScoringTool(const std::string&, const std::string&, const IInterface*);
29 virtual ~MuonTrackScoringTool() = default;
30 virtual StatusCode initialize() override;
32 virtual bool passBasicSelections( const Trk::Track& ) const override {return true;}
33
35 virtual Trk::TrackScore score(const Trk::Track& track, bool checkBasicSel) const override;
36
38 virtual Trk::TrackScore simpleScore(const Trk::Track& track, const Trk::TrackSummary& trackSummary) const override;
39
40 private:
42 ToolHandle<Trk::IExtendedTrackSummaryTool> m_trkSummaryTool{this, "SumHelpTool", "Trk::TrackSummaryTool"};
43 PublicToolHandle<MuonEDMPrinterTool> m_printer{this, "EDMPrinter", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool",
44 "helper to nicely print out tracks"};
45
47 std::vector<Trk::TrackScore> m_summaryTypeScore;
48 };
49
50} // namespace Muon
51#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
PublicToolHandle< MuonEDMPrinterTool > m_printer
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
MuonTrackScoringTool(const std::string &, const std::string &, const IInterface *)
virtual Trk::TrackScore simpleScore(const Trk::Track &track, const Trk::TrackSummary &trackSummary) const override
create a score based on how good the passed TrackSummary is
virtual bool passBasicSelections(const Trk::Track &) const override
check track selections independent from TrackSummary
std::vector< Trk::TrackScore > m_summaryTypeScore
holds the scores assigned to each Trk::SummaryType from the track's Trk::TrackSummary
virtual Trk::TrackScore score(const Trk::Track &track, bool checkBasicSel) const override
create a score based on how good the passed track is
virtual ~MuonTrackScoringTool()=default
virtual StatusCode initialize() override
Interface for tool to return a score from a given track.
A summary of the information contained by a track.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Ensure that the ATLAS eigen extensions are properly loaded.
float TrackScore
Definition TrackScore.h:10