ATLAS Offline Software
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 
17 #include "AsgTools/AsgTool.h"
19 
21 #include "ITrackMatchingTool.h"
22 
23 namespace IDTPM {
24 
26  public virtual ITrackMatchingTool,
27  public asg::AsgTool {
28 
29  public:
30 
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
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
IDTPM::TrackAnalysisCollections
Definition: TrackAnalysisCollections.h:46
IDTPM::ITrackMatchingTool
Definition: InnerDetector/InDetValidation/InDetTrackPerfMon/src/ITrackMatchingTool.h:32
IDTPM::TruthTrackMatchingTool
Definition: TruthTrackMatchingTool.h:27
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::TruthTrackMatchingTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition: TruthTrackMatchingTool.cxx:28
ITrackMatchingTool.h
IDTPM::TruthTrackMatchingTool::m_truthProbCut
FloatProperty m_truthProbCut
Definition: TruthTrackMatchingTool.h:75
IDTPM::TruthTrackMatchingTool::TruthTrackMatchingTool
TruthTrackMatchingTool(const std::string &name)
Constructor.
Definition: TruthTrackMatchingTool.cxx:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
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::ITrackMatchingLookup
Definition: ITrackMatchingLookup.h:30
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
AsgTool.h
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::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
IDTPM::TruthTrackMatchingTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(TruthTrackMatchingTool, ITrackMatchingTool)