|
ATLAS Offline Software
|
Go to the documentation of this file.
24 const std::string&
name ) :
37 return StatusCode::SUCCESS;
46 const std::string& chainRoIName,
47 const std::string& roiStr )
const
55 " was already done. Skipping" );
56 return StatusCode::SUCCESS;
67 return StatusCode::SUCCESS;
75 const std::vector< const xAOD::TrackParticle* >& vTest,
76 const std::vector< const xAOD::TruthParticle* >& vRef,
79 ATH_MSG_DEBUG(
"Doing Track->Truth matching via truthParticleLink" );
85 *track_particle, m_truthProbCut.value() );
88 if( not truth_particle )
continue;
91 pT( *truth_particle ) <<
" and prob = " <<
97 truth_particle ) == vRef.end() ) {
98 ATH_MSG_DEBUG(
"Truth particle is not in selected reference. Skipping." );
109 return StatusCode::SUCCESS;
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb
std::string find(const std::string &s)
return a remapped string
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 track matching information
const std::vector< const xAOD::TrackParticle * > & testTrackVec(Stage stage=FULL)
TEST = Track.
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()
get track matching information
float pT(const U &p)
Accessor utility function for getting the value of pT.
#define ATH_MSG_WARNING(x)
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
const std::vector< const xAOD::TruthParticle * > & refTruthVec(Stage stage=FULL)
get REFERENCE track vectors