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;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Utility methods to access offline object decorations.
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...
Utility methods to access track/truth particles parmeters in a consitent way in this package.
virtual StatusCode update(const xAOD::TrackParticle &t, const xAOD::TrackParticle &r, float dist=0.)=0
update lookup tables with a new entry Track -> Track
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 * > & refTrackVec(Stage stage=FULL)
TEST = Track.
bool match(std::string s1, std::string s2)
match the individual directories of two strings
float pT(const U &p)
Accessor utility function for getting the value of pT.
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb
const xAOD::TruthParticle * getLinkedTruth(const xAOD::TrackParticle &track, const float truthProbCut)
getLinkedTruth
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.