ATLAS Offline Software
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 
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  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
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
IDTPM::EFTrackMatchingTool::match
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
Definition: EFTrackMatchingTool.cxx:44
IDTPM::TrackAnalysisCollections
Definition: TrackAnalysisCollections.h:44
IDTPM::ITrackMatchingTool
Definition: InnerDetector/InDetValidation/InDetTrackPerfMon/src/ITrackMatchingTool.h:32
IDTPM::EFTrackMatchingTool
Definition: EFTrackMatchingTool.h:25
IDTPM::EFTrackMatchingTool::EFTrackMatchingTool
EFTrackMatchingTool(const std::string &name)
Constructor.
Definition: EFTrackMatchingTool.cxx:23
IDTPM::EFTrackMatchingTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition: EFTrackMatchingTool.cxx:31
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::EFTrackMatchingTool::match
virtual StatusCode match(const std::vector< const xAOD::TruthParticle * > &, const std::vector< const xAOD::TrackParticle * > &, ITrackMatchingLookup &) const override
truth -> track matching (disabled)
Definition: EFTrackMatchingTool.h:62
ITrackMatchingTool.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
IDTPM::EFTrackMatchingTool::m_truthProbCut
FloatProperty m_truthProbCut
Definition: EFTrackMatchingTool.h:73
IDTPM::ITrackMatchingLookup
Definition: ITrackMatchingLookup.h:30
IDTPM::EFTrackMatchingTool::match
virtual StatusCode match(const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TruthParticle * > &, ITrackMatchingLookup &) const override
track -> truth matching (disabled)
Definition: EFTrackMatchingTool.h:52
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
AsgTool.h
IDTPM::EFTrackMatchingTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(EFTrackMatchingTool, ITrackMatchingTool)