ATLAS Offline Software
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 
15 #include "TrackMatchingLookup.h"
16 
17 namespace 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 
IDTPM::TrackAnalysisCollections
Definition: TrackAnalysisCollections.h:46
IDTPM::TrackAnalysisCollections::updateChainRois
bool updateChainRois(const std::string &chainRoi, const std::string &roiStr)
update chainRois map
Definition: TrackAnalysisCollections.cxx:1155
TrackAnalysisCollections.h
Class to hold for each event collections needed in the TrkAnalsis.
IDTPM::TrackAnalysisCollections::printMatchInfo
std::string printMatchInfo()
print track matching information
Definition: TrackAnalysisCollections.cxx:1137
IDTPM::TrackAnalysisCollections::testTrackVec
const std::vector< const xAOD::TrackParticle * > & testTrackVec(Stage stage=FULL)
TEST = Track.
Definition: TrackAnalysisCollections.cxx:789
TrackMatchingLookup.h
Look-up table (templated) class to store (internally to IDTPM) all the matches between test and refer...
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::TrackAnalysisCollections::matches
ITrackMatchingLookup & matches()
get track matching information
Definition: TrackAnalysisCollections.h:277
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
IDTPM::StableDeltaRMatchingTool_trkTruth::match
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections
Definition: StableDeltaRMatchingTool.cxx:45
StableDeltaRMatchingTool.h
Derived tool to perform Delta R matching of tracks based on the stable marriage algorithm.
IDTPM::TrackAnalysisCollections::refTrackVec
const std::vector< const xAOD::TrackParticle * > & refTrackVec(Stage stage=FULL)
TEST = Track.
Definition: TrackAnalysisCollections.cxx:819
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
IDTPM::TrackAnalysisCollections::InRoI
@ InRoI
Definition: TrackAnalysisCollections.h:54
IDTPM::StableDeltaRMatchingTool_truthTrk::match
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections
Definition: StableDeltaRMatchingTool.cxx:67
IDTPM::StableDeltaRMatchingTool_trk::match
virtual StatusCode match(TrackAnalysisCollections &trkAnaColls, const std::string &chainRoIName, const std::string &roiStr) const override
General matching method, via TrackAnalysisCollections
Definition: StableDeltaRMatchingTool.cxx:23
IDTPM::TrackAnalysisCollections::testTruthVec
const std::vector< const xAOD::TruthParticle * > & testTruthVec(Stage stage=FULL)
get TEST track vectors
Definition: TrackAnalysisCollections.cxx:776
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
IDTPM::TrackAnalysisCollections::refTruthVec
const std::vector< const xAOD::TruthParticle * > & refTruthVec(Stage stage=FULL)
get REFERENCE track vectors
Definition: TrackAnalysisCollections.cxx:806