ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetTrackPerfMon
src
TruthTrackMatchingTool.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 INDETTRACKPERFMON_TRUTHTRACKMATCHINGTOOL_H
6
#define INDETTRACKPERFMON_TRUTHTRACKMATCHINGTOOL_H
7
16
18
#include "
AsgTools/AsgTool.h
"
19
21
#include "
ITrackMatchingTool.h
"
22
23
namespace
IDTPM
{
24
25
class
TruthTrackMatchingTool
:
26
public
virtual
ITrackMatchingTool
,
27
public
asg::AsgTool
{
28
29
public
:
30
31
ASG_TOOL_CLASS
(
TruthTrackMatchingTool
,
ITrackMatchingTool
);
32
34
TruthTrackMatchingTool
(
const
std::string& name );
35
37
virtual
StatusCode
initialize
()
override
;
38
40
virtual
StatusCode
match
(
41
TrackAnalysisCollections
& trkAnaColls,
42
const
std::string& chainRoIName,
43
const
std::string& roiStr )
const override
;
44
46
48
virtual
StatusCode
match
(
49
const
std::vector< const xAOD::TrackParticle* >&,
50
const
std::vector< const xAOD::TrackParticle* >&,
51
ITrackMatchingLookup
& )
const override
52
{
53
ATH_MSG_DEBUG
(
"track -> track matching disabled"
);
54
return
StatusCode::SUCCESS;
55
}
56
58
virtual
StatusCode
match
(
59
const
std::vector< const xAOD::TrackParticle* >&,
60
const
std::vector< const xAOD::TruthParticle* >&,
61
ITrackMatchingLookup
& )
const override
62
{
63
ATH_MSG_DEBUG
(
"track -> truth matching disabled"
);
64
return
StatusCode::SUCCESS;
65
}
66
68
virtual
StatusCode
match
(
69
const
std::vector< const xAOD::TruthParticle* >& vTest,
70
const
std::vector< const xAOD::TrackParticle* >& vRef,
71
ITrackMatchingLookup
& matches )
const override
;
72
73
private
:
74
75
FloatProperty
m_truthProbCut
{
76
this
,
"MatchingTruthProb"
, 0.5,
"Minimal truthProbability for valid matching"
};
77
78
};
// class TruthTrackMatchingTool
79
80
}
// namespace IDTPM
81
82
#endif
// > !INDETTRACKPERFMON_TRUTHTRACKMATCHINGTOOL_H
AsgTool.h
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
ITrackMatchingTool.h
interface for track matching tools in this package
IDTPM::ITrackMatchingLookup
Definition
ITrackMatchingLookup.h:30
IDTPM::ITrackMatchingTool
Definition
InnerDetector/InDetValidation/InDetTrackPerfMon/src/ITrackMatchingTool.h:32
IDTPM::TrackAnalysisCollections
Definition
TrackAnalysisCollections.h:46
IDTPM::TruthTrackMatchingTool::TruthTrackMatchingTool
TruthTrackMatchingTool(const std::string &name)
Constructor.
Definition
TruthTrackMatchingTool.cxx:20
IDTPM::TruthTrackMatchingTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition
TruthTrackMatchingTool.cxx:28
IDTPM::TruthTrackMatchingTool::match
virtual StatusCode match(const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TrackParticle * > &, ITrackMatchingLookup &) const override
Specific matching methods, via test/reference vectors.
Definition
TruthTrackMatchingTool.h:48
IDTPM::TruthTrackMatchingTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(TruthTrackMatchingTool, ITrackMatchingTool)
IDTPM::TruthTrackMatchingTool::match
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
Definition
TruthTrackMatchingTool.cxx:41
IDTPM::TruthTrackMatchingTool::m_truthProbCut
FloatProperty m_truthProbCut
Definition
TruthTrackMatchingTool.h:75
IDTPM::TruthTrackMatchingTool::match
virtual StatusCode match(const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TruthParticle * > &, ITrackMatchingLookup &) const override
track -> truth matching (disabled)
Definition
TruthTrackMatchingTool.h:58
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
IDTPM
Athena include(s).
Definition
IPlotsDefinitionSvc.h:25
Generated on
for ATLAS Offline Software by
1.17.0