ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonTrackMakers
MuonTrackMakerTools
MuonTrackFinderTools
src
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
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
#include "GaudiKernel/ToolHandle.h"
13
#include "
MuonRecHelperTools/MuonEDMPrinterTool.h
"
14
#include "
TrkEventPrimitives/TrackScore.h
"
15
#include "
TrkToolInterfaces/ITrackScoringTool.h
"
16
#include "
TrkToolInterfaces/IExtendedTrackSummaryTool.h
"
17
18
namespace
Trk
{
19
class
Track
;
20
class
TrackSummary
;
21
}
// namespace Trk
22
23
namespace
Muon
{
24
26
class
MuonTrackScoringTool
:
virtual
public
Trk::ITrackScoringTool
,
public
AthAlgTool
{
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.h
IExtendedTrackSummaryTool.h
ITrackScoringTool.h
MuonEDMPrinterTool.h
TrackScore.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Muon::MuonTrackScoringTool::m_printer
PublicToolHandle< MuonEDMPrinterTool > m_printer
Definition
MuonTrackScoringTool.h:43
Muon::MuonTrackScoringTool::m_trkSummaryTool
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
Definition
MuonTrackScoringTool.h:42
Muon::MuonTrackScoringTool::MuonTrackScoringTool
MuonTrackScoringTool(const std::string &, const std::string &, const IInterface *)
Definition
MuonTrackScoringTool.cxx:17
Muon::MuonTrackScoringTool::simpleScore
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
Definition
MuonTrackScoringTool.cxx:71
Muon::MuonTrackScoringTool::passBasicSelections
virtual bool passBasicSelections(const Trk::Track &) const override
check track selections independent from TrackSummary
Definition
MuonTrackScoringTool.h:32
Muon::MuonTrackScoringTool::m_summaryTypeScore
std::vector< Trk::TrackScore > m_summaryTypeScore
holds the scores assigned to each Trk::SummaryType from the track's Trk::TrackSummary
Definition
MuonTrackScoringTool.h:47
Muon::MuonTrackScoringTool::score
virtual Trk::TrackScore score(const Trk::Track &track, bool checkBasicSel) const override
create a score based on how good the passed track is
Definition
MuonTrackScoringTool.cxx:57
Muon::MuonTrackScoringTool::~MuonTrackScoringTool
virtual ~MuonTrackScoringTool()=default
Muon::MuonTrackScoringTool::initialize
virtual StatusCode initialize() override
Definition
MuonTrackScoringTool.cxx:50
Trk::ITrackScoringTool
Interface for tool to return a score from a given track.
Definition
ITrackScoringTool.h:23
Trk::TrackSummary
A summary of the information contained by a track.
Definition
Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:287
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TrackScore
float TrackScore
Definition
TrackScore.h:10
Generated on
for ATLAS Offline Software by
1.17.0