ATLAS Offline Software
Loading...
Searching...
No Matches
StableDeltaRMatchingTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
11
15#include "TrackMatchingLookup.h"
16
17namespace IDTPM {
18
22
24 const std::string& chainRoIName,
25 const std::string& roiStr) const {
26 bool doMatch = trkAnaColls.updateChainRois(chainRoIName, roiStr);
27
28 if ( not doMatch ) {
29 ATH_MSG_WARNING("Matching for " << chainRoIName << " was already done. Skipping");
30 return StatusCode::SUCCESS;
31 }
32
35 trkAnaColls.matches()));
36
37 ATH_MSG_DEBUG(trkAnaColls.printMatchInfo());
38 return StatusCode::SUCCESS;
39 }
40
44
46 const std::string& chainRoIName,
47 const std::string& roiStr ) const {
48 bool doMatch = trkAnaColls.updateChainRois( chainRoIName, roiStr );
49
50 if( not doMatch ) {
51 ATH_MSG_WARNING( "Matching for " << chainRoIName << " was already done. Skipping" );
52 return StatusCode::SUCCESS;
53 }
54
57 trkAnaColls.matches() ) );
58
59 ATH_MSG_DEBUG( trkAnaColls.printMatchInfo() );
60 return StatusCode::SUCCESS;
61 }
62
66
68 const std::string& chainRoIName,
69 const std::string& roiStr ) const {
70 bool doMatch = trkAnaColls.updateChainRois( chainRoIName, roiStr );
71
72 if( not doMatch ) {
73 ATH_MSG_WARNING( "Matching for " << chainRoIName << " was already done. Skipping" );
74 return StatusCode::SUCCESS;
75 }
76
79 trkAnaColls.matches() ) );
80
81 ATH_MSG_DEBUG( trkAnaColls.printMatchInfo() );
82 return StatusCode::SUCCESS;
83 }
84
85} // end of namespace IDTPM
86
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
Derived tool to perform Delta R matching of tracks based on the stable marriage algorithm.
Class to hold for each event collections needed in the TrkAnalsis.
Look-up table (templated) class to store (internally to IDTPM) all the matches between test and refer...
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections.
const std::vector< const xAOD::TruthParticle * > & testTruthVec(Stage stage=FULL)
get TEST track vectors
std::string printMatchInfo()
print track matching information
bool updateChainRois(const std::string &chainRoi, const std::string &roiStr)
update chainRois map
ITrackMatchingLookup & matches()
get track matching information
const std::vector< const xAOD::TrackParticle * > & testTrackVec(Stage stage=FULL)
TEST = Track.
const std::vector< const xAOD::TruthParticle * > & refTruthVec(Stage stage=FULL)
get REFERENCE track vectors
const std::vector< const xAOD::TrackParticle * > & refTrackVec(Stage stage=FULL)
TEST = Track.
Athena include(s).