ATLAS Offline Software
TrackTruthMatchingTool.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_TRACKTRUTHMATCHINGTOOL_H
6 #define INDETTRACKPERFMON_TRACKTRUTHMATCHINGTOOL_H
7 
15 #include "AsgTools/AsgTool.h"
17 
19 #include "ITrackMatchingTool.h"
20 
21 namespace IDTPM {
22 
24  public virtual ITrackMatchingTool,
25  public asg::AsgTool {
26 
27  public:
28 
30 
32  TrackTruthMatchingTool( 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  {
51  ATH_MSG_DEBUG( "track -> track matching disabled" );
52  return StatusCode::SUCCESS;
53  }
54 
56  virtual StatusCode match(
57  const std::vector< const xAOD::TrackParticle* >& vTest,
58  const std::vector< const xAOD::TruthParticle* >& vRef,
59  ITrackMatchingLookup& matches ) const override;
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 TrackTruthMatchingTool
77 
78 } // namespace IDTPM
79 
80 #endif // > !INDETTRACKPERFMON_TRACKTRUTHMATCHINGTOOL_H
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
IDTPM::TrackTruthMatchingTool::match
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
Definition: TrackTruthMatchingTool.cxx:44
IDTPM::TrackAnalysisCollections
Definition: TrackAnalysisCollections.h:41
IDTPM::ITrackMatchingTool
Definition: InnerDetector/InDetValidation/InDetTrackPerfMon/src/ITrackMatchingTool.h:32
IDTPM::TrackTruthMatchingTool
Definition: TrackTruthMatchingTool.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
IDTPM::TrackTruthMatchingTool::m_truthProbCut
FloatProperty m_truthProbCut
Definition: TrackTruthMatchingTool.h:73
IDTPM::TrackTruthMatchingTool::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: TrackTruthMatchingTool.h:46
IDTPM::TrackTruthMatchingTool::match
virtual StatusCode match(const std::vector< const xAOD::TruthParticle * > &, const std::vector< const xAOD::TrackParticle * > &, ITrackMatchingLookup &) const override
truth -> track matching (disabled)
Definition: TrackTruthMatchingTool.h:62
ITrackMatchingTool.h
IDTPM::TrackTruthMatchingTool::TrackTruthMatchingTool
TrackTruthMatchingTool(const std::string &name)
Constructor.
Definition: TrackTruthMatchingTool.cxx:23
IDTPM::TrackTruthMatchingTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition: TrackTruthMatchingTool.cxx:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
IDTPM::TrackTruthMatchingTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(TrackTruthMatchingTool, ITrackMatchingTool)
IDTPM::ITrackMatchingLookup
Definition: ITrackMatchingLookup.h:30
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
AsgTool.h