ATLAS Offline Software
Loading...
Searching...
No Matches
DeltaRMatchingTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
9
11#include "DeltaRMatchingTool.h"
13#include "TrackMatchingLookup.h"
14
15
21 TrackAnalysisCollections& trkAnaColls,
22 const std::string& chainRoIName,
23 const std::string& roiStr ) const
24{
26 bool doMatch = trkAnaColls.updateChainRois( chainRoIName, roiStr );
27
29 if( not doMatch ) {
30 ATH_MSG_WARNING( "Matching for " << chainRoIName <<
31 " was already done. Skipping" );
32 return StatusCode::SUCCESS;
33 }
34
39 trkAnaColls.matches() ) );
40
41 ATH_MSG_DEBUG( trkAnaColls.printMatchInfo() );
42
43 return StatusCode::SUCCESS;
44}
45
46
52 TrackAnalysisCollections& trkAnaColls,
53 const std::string& chainRoIName,
54 const std::string& roiStr ) const
55{
57 bool doMatch = trkAnaColls.updateChainRois( chainRoIName, roiStr );
58
60 if( not doMatch ) {
61 ATH_MSG_WARNING( "Matching for " << chainRoIName <<
62 " was already done. Skipping" );
63 return StatusCode::SUCCESS;
64 }
65
70 trkAnaColls.matches() ) );
71
72 ATH_MSG_DEBUG( trkAnaColls.printMatchInfo() );
73
74 return StatusCode::SUCCESS;
75}
76
77
83 TrackAnalysisCollections& trkAnaColls,
84 const std::string& chainRoIName,
85 const std::string& roiStr ) const
86{
88 bool doMatch = trkAnaColls.updateChainRois( chainRoIName, roiStr );
89
91 if( not doMatch ) {
92 ATH_MSG_WARNING( "Matching for " << chainRoIName <<
93 " was already done. Skipping" );
94 return StatusCode::SUCCESS;
95 }
96
101 trkAnaColls.matches() ) );
102
103 ATH_MSG_DEBUG( trkAnaColls.printMatchInfo() );
104
105 return StatusCode::SUCCESS;
106}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
Tool to perform matching of tracks and/or truth particles based on their ditance in DeltaR or in thei...
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.
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition hcg.cxx:357