![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
21 const std::string&
name ) :
34 return StatusCode::SUCCESS;
43 const std::string& chainRoIName,
44 const std::string& roiStr )
const
52 " was already done. Skipping" );
53 return StatusCode::SUCCESS;
64 return StatusCode::SUCCESS;
72 const std::vector< const xAOD::TruthParticle* >& vTest,
73 const std::vector< const xAOD::TrackParticle* >& vRef,
76 ATH_MSG_DEBUG(
"Doing Truth->Track matching via truthParticleLink" );
92 if( ( not truth_particle_tmp ) or
93 ( truth_particle_tmp != truth_particle ) )
continue;
98 if( prob_tmp >
prob ) {
99 matched_track_particle = track_particle;
109 if( not matched_track_particle )
continue;
112 pT( *matched_track_particle ) <<
113 " and prob = " <<
prob );
116 float dist = 1 -
prob;
119 ATH_CHECK( matches.
update( *truth_particle, *matched_track_particle, dist ) );
123 return StatusCode::SUCCESS;
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb
bool updateChainRois(const std::string &chainRoi, const std::string &roiStr)
update chainRois map
const xAOD::TruthParticle * getLinkedTruth(const xAOD::TrackParticle &track, const float truthProbCut)
getLinkedTruth
Class to hold for each event collections needed in the TrkAnalsis.
std::string printMatchInfo()
print matching information
Utility methods to access track/truth particles parmeters in a consitent way in this package.
Look-up table (templated) class to store (internally to IDTPM) all the matches between test and refer...
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
ITrackMatchingLookup & matches()
return matching information
float pT(const U &p)
Accessor utility function for getting the value of pT.
const std::vector< const xAOD::TrackParticle * > & refTrackVec(Stage stage=FULL)
TEST = Track.
#define ATH_MSG_WARNING(x)
const std::vector< const xAOD::TruthParticle * > & testTruthVec(Stage stage=FULL)
get TEST track vectors
virtual StatusCode update(const xAOD::TrackParticle &t, const xAOD::TrackParticle &r, float dist=0.)=0
update lookup tables with a new entry Track -> Track
Class describing a TrackParticle.
Utility methods to access offline object decorations.
bool match(std::string s1, std::string s2)
match the individual directories of two strings