ATLAS Offline Software
Loading...
Searching...
No Matches
EFTrackMatchingTool.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_EFTrackMatchingTool_H
6#define INDETTRACKPERFMON_EFTrackMatchingTool_H
7
14
16#include "AsgTools/AsgTool.h"
17
19#include "ITrackMatchingTool.h"
20
21namespace IDTPM {
22
24 public virtual ITrackMatchingTool,
25 public asg::AsgTool {
26
27 public:
28
30
32 EFTrackMatchingTool( const std::string& name );
33
35 virtual StatusCode initialize() override;
36
38 virtual StatusCode match(
39 TrackAnalysisCollections& trkAnaColls,
40 const std::string& chainRoIName,
41 const std::string& roiStr ) const override;
42
44
46 virtual StatusCode match(
47 const std::vector< const xAOD::TrackParticle* >&,
48 const std::vector< const xAOD::TrackParticle* >&,
49 ITrackMatchingLookup& ) const override;
50
52 virtual StatusCode match(
53 const std::vector< const xAOD::TrackParticle* >&,
54 const std::vector< const xAOD::TruthParticle* >&,
55 ITrackMatchingLookup& ) const override
56 {
57 ATH_MSG_DEBUG( "track -> truth matching disabled" );
58 return StatusCode::SUCCESS;
59 }
60
62 virtual StatusCode match(
63 const std::vector< const xAOD::TruthParticle* >&,
64 const std::vector< const xAOD::TrackParticle* >&,
65 ITrackMatchingLookup& ) const override
66 {
67 ATH_MSG_DEBUG( "truth -> track matching disabled" );
68 return StatusCode::SUCCESS;
69 }
70
71 private:
72
73 FloatProperty m_truthProbCut {
74 this, "MatchingTruthProb", 0.5, "Minimal truthProbability for valid matching" };
75
76 }; // class EFTrackMatchingTool
77
78} // namespace IDTPM
79
80#endif // > !INDETTRACKPERFMON_EFTrackMatchingTool_H
#define ATH_MSG_DEBUG(x)
interface for track matching tools in this package
virtual StatusCode match(const std::vector< const xAOD::TruthParticle * > &, const std::vector< const xAOD::TrackParticle * > &, ITrackMatchingLookup &) const override
truth -> track matching (disabled)
virtual StatusCode initialize() override
Initialize.
virtual StatusCode match(const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TruthParticle * > &, ITrackMatchingLookup &) const override
track -> truth matching (disabled)
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
EFTrackMatchingTool(const std::string &name)
Constructor.
ASG_TOOL_CLASS(EFTrackMatchingTool, ITrackMatchingTool)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Athena include(s).