ATLAS Offline Software
Loading...
Searching...
No Matches
IDTPM::ITrackMatchingLookup Class Referenceabstract

#include <ITrackMatchingLookup.h>

Inheritance diagram for IDTPM::ITrackMatchingLookup:
Collaboration diagram for IDTPM::ITrackMatchingLookup:

Public Member Functions

virtual ~ITrackMatchingLookup ()=default
 Destructor.
virtual unsigned getNmatches (bool getRefN=false) const =0
 get overall number of matches
const std::string & anaTag () const
 matching properties
void anaTag (std::string_view anaTag_s)
const std::string & chainRoiName () const
void chainRoiName (std::string_view chainRoiName_s)
virtual const xAOD::TrackParticlegetMatchedRefTrack (const xAOD::TrackParticle &t) const =0
 get matched reference (1 to 1) Track -> Track
virtual const xAOD::TrackParticlegetMatchedRefTrack (const xAOD::TruthParticle &t) const =0
 Truth -> Track.
virtual const xAOD::TruthParticlegetMatchedRefTruth (const xAOD::TrackParticle &t) const =0
 Track -> Truth.
const xAOD::TruthParticlegetMatchedRefTruth (const xAOD::TruthParticle &) const
 Truth -> Truth // to avoid compilation errors.
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks (const xAOD::TrackParticle &r) const =0
 get matched test vector (1 to 1+) vec Track <- Track
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks (const xAOD::TruthParticle &r) const =0
 vec Track <- Truth
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TrackParticle &r) const =0
 vec Truth <- Track
const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TruthParticle &) const
 vec Truth <- Truth // to avoid compilation errors
const xAOD::TrackParticlegetBestMatchedTestTrack (const xAOD::TrackParticle &r) const
 get best matched test, i.e.
const xAOD::TrackParticlegetBestMatchedTestTrack (const xAOD::TruthParticle &r) const
 best Track <- Truth
virtual const xAOD::TruthParticlegetBestMatchedTestTruth (const xAOD::TrackParticle &r) const
 best Truth <- Track
const xAOD::TruthParticlegetBestMatchedTestTruth (const xAOD::TruthParticle &) const
 best Truth <- Truth // to avoid compilation errors
virtual bool isTestMatched (const xAOD::TrackParticle &t) const =0
 return true if test is matched
virtual bool isTestMatched (const xAOD::TruthParticle &t) const =0
virtual bool isRefMatched (const xAOD::TrackParticle &r) const =0
 return true if reference is matched
virtual bool isRefMatched (const xAOD::TruthParticle &r) const =0
virtual StatusCode update (const xAOD::TrackParticle &t, const xAOD::TrackParticle &r, float dist=0.)=0
 update lookup tables with a new entry Track -> Track
virtual StatusCode update (const xAOD::TrackParticle &t, const xAOD::TruthParticle &r, float dist=0.)=0
 Track -> Truth.
virtual StatusCode update (const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist=0.)=0
 Truth -> Track.
virtual void clear ()=0
 clear lookup tables
virtual std::string printInfo (const std::vector< const xAOD::TrackParticle * > &testVec, const std::vector< const xAOD::TrackParticle * > &refVec) const =0
 print info about matching and reverse matchings Track -> Track
virtual std::string printInfo (const std::vector< const xAOD::TrackParticle * > &testVec, const std::vector< const xAOD::TruthParticle * > &refVec) const =0
 Track -> Truth.
virtual std::string printInfo (const std::vector< const xAOD::TruthParticle * > &testVec, const std::vector< const xAOD::TrackParticle * > &refVec) const =0
 Truth -> Track.

Protected Attributes

std::vector< const xAOD::TrackParticle * > m_nullTrackVec {}
 null vectors
std::vector< const xAOD::TruthParticle * > m_nullTruthVec {}

Private Attributes

std::string m_anaTag
 Lookup table properties.
std::string m_chainRoiName

Detailed Description

Definition at line 30 of file ITrackMatchingLookup.h.

Constructor & Destructor Documentation

◆ ~ITrackMatchingLookup()

virtual IDTPM::ITrackMatchingLookup::~ITrackMatchingLookup ( )
virtualdefault

Destructor.

Member Function Documentation

◆ anaTag() [1/2]

const std::string & IDTPM::ITrackMatchingLookup::anaTag ( ) const
inline

matching properties

Definition at line 41 of file ITrackMatchingLookup.h.

41{ return m_anaTag; }
std::string m_anaTag
Lookup table properties.

◆ anaTag() [2/2]

void IDTPM::ITrackMatchingLookup::anaTag ( std::string_view anaTag_s)
inline

Definition at line 42 of file ITrackMatchingLookup.h.

42 {
43 m_anaTag = anaTag_s;
44 }

◆ chainRoiName() [1/2]

const std::string & IDTPM::ITrackMatchingLookup::chainRoiName ( ) const
inline

Definition at line 45 of file ITrackMatchingLookup.h.

◆ chainRoiName() [2/2]

void IDTPM::ITrackMatchingLookup::chainRoiName ( std::string_view chainRoiName_s)
inline

Definition at line 46 of file ITrackMatchingLookup.h.

46 {
47 m_chainRoiName = chainRoiName_s;
48 }

◆ clear()

virtual void IDTPM::ITrackMatchingLookup::clear ( )
pure virtual

◆ getBestMatchedTestTrack() [1/2]

const xAOD::TrackParticle * IDTPM::ITrackMatchingLookup::getBestMatchedTestTrack ( const xAOD::TrackParticle & r) const
inline

get best matched test, i.e.

the one with the shortest dist parameter from the reference best Track <- Track

Definition at line 81 of file ITrackMatchingLookup.h.

83 {
84 const std::vector< const xAOD::TrackParticle* >& vec =
86 return vec.empty() ? nullptr : vec[0];
87 }
std::vector< size_t > vec
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks(const xAOD::TrackParticle &r) const =0
get matched test vector (1 to 1+) vec Track <- Track
int r
Definition globals.cxx:22

◆ getBestMatchedTestTrack() [2/2]

const xAOD::TrackParticle * IDTPM::ITrackMatchingLookup::getBestMatchedTestTrack ( const xAOD::TruthParticle & r) const
inline

best Track <- Truth

Definition at line 89 of file ITrackMatchingLookup.h.

91 {
92 const std::vector< const xAOD::TrackParticle* >& vec =
94 return vec.empty() ? nullptr : vec[0];
95 }

◆ getBestMatchedTestTruth() [1/2]

virtual const xAOD::TruthParticle * IDTPM::ITrackMatchingLookup::getBestMatchedTestTruth ( const xAOD::TrackParticle & r) const
inlinevirtual

best Truth <- Track

Definition at line 97 of file ITrackMatchingLookup.h.

99 {
100 const std::vector< const xAOD::TruthParticle* >& vec =
102 return vec.empty() ? nullptr : vec[0];
103 }
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths(const xAOD::TrackParticle &r) const =0
vec Truth <- Track

◆ getBestMatchedTestTruth() [2/2]

const xAOD::TruthParticle * IDTPM::ITrackMatchingLookup::getBestMatchedTestTruth ( const xAOD::TruthParticle & ) const
inline

best Truth <- Truth // to avoid compilation errors

Definition at line 105 of file ITrackMatchingLookup.h.

106 { return nullptr; };

◆ getMatchedRefTrack() [1/2]

virtual const xAOD::TrackParticle * IDTPM::ITrackMatchingLookup::getMatchedRefTrack ( const xAOD::TrackParticle & t) const
pure virtual

◆ getMatchedRefTrack() [2/2]

virtual const xAOD::TrackParticle * IDTPM::ITrackMatchingLookup::getMatchedRefTrack ( const xAOD::TruthParticle & t) const
pure virtual

◆ getMatchedRefTruth() [1/2]

virtual const xAOD::TruthParticle * IDTPM::ITrackMatchingLookup::getMatchedRefTruth ( const xAOD::TrackParticle & t) const
pure virtual

◆ getMatchedRefTruth() [2/2]

const xAOD::TruthParticle * IDTPM::ITrackMatchingLookup::getMatchedRefTruth ( const xAOD::TruthParticle & ) const
inline

Truth -> Truth // to avoid compilation errors.

Definition at line 61 of file ITrackMatchingLookup.h.

62 { return nullptr; };

◆ getMatchedTestTracks() [1/2]

virtual const std::vector< const xAOD::TrackParticle * > & IDTPM::ITrackMatchingLookup::getMatchedTestTracks ( const xAOD::TrackParticle & r) const
pure virtual

◆ getMatchedTestTracks() [2/2]

virtual const std::vector< const xAOD::TrackParticle * > & IDTPM::ITrackMatchingLookup::getMatchedTestTracks ( const xAOD::TruthParticle & r) const
pure virtual

◆ getMatchedTestTruths() [1/2]

virtual const std::vector< const xAOD::TruthParticle * > & IDTPM::ITrackMatchingLookup::getMatchedTestTruths ( const xAOD::TrackParticle & r) const
pure virtual

◆ getMatchedTestTruths() [2/2]

const std::vector< const xAOD::TruthParticle * > & IDTPM::ITrackMatchingLookup::getMatchedTestTruths ( const xAOD::TruthParticle & ) const
inline

vec Truth <- Truth // to avoid compilation errors

Definition at line 75 of file ITrackMatchingLookup.h.

76 { return m_nullTruthVec; }
std::vector< const xAOD::TruthParticle * > m_nullTruthVec

◆ getNmatches()

virtual unsigned IDTPM::ITrackMatchingLookup::getNmatches ( bool getRefN = false) const
pure virtual

◆ isRefMatched() [1/2]

virtual bool IDTPM::ITrackMatchingLookup::isRefMatched ( const xAOD::TrackParticle & r) const
pure virtual

◆ isRefMatched() [2/2]

virtual bool IDTPM::ITrackMatchingLookup::isRefMatched ( const xAOD::TruthParticle & r) const
pure virtual

◆ isTestMatched() [1/2]

virtual bool IDTPM::ITrackMatchingLookup::isTestMatched ( const xAOD::TrackParticle & t) const
pure virtual

◆ isTestMatched() [2/2]

virtual bool IDTPM::ITrackMatchingLookup::isTestMatched ( const xAOD::TruthParticle & t) const
pure virtual

◆ printInfo() [1/3]

virtual std::string IDTPM::ITrackMatchingLookup::printInfo ( const std::vector< const xAOD::TrackParticle * > & testVec,
const std::vector< const xAOD::TrackParticle * > & refVec ) const
pure virtual

print info about matching and reverse matchings Track -> Track

Implemented in IDTPM::TrackMatchingLookup_trk, IDTPM::TrackMatchingLookup_trkTruth, and IDTPM::TrackMatchingLookup_truthTrk.

◆ printInfo() [2/3]

virtual std::string IDTPM::ITrackMatchingLookup::printInfo ( const std::vector< const xAOD::TrackParticle * > & testVec,
const std::vector< const xAOD::TruthParticle * > & refVec ) const
pure virtual

◆ printInfo() [3/3]

virtual std::string IDTPM::ITrackMatchingLookup::printInfo ( const std::vector< const xAOD::TruthParticle * > & testVec,
const std::vector< const xAOD::TrackParticle * > & refVec ) const
pure virtual

◆ update() [1/3]

virtual StatusCode IDTPM::ITrackMatchingLookup::update ( const xAOD::TrackParticle & t,
const xAOD::TrackParticle & r,
float dist = 0. )
pure virtual

◆ update() [2/3]

virtual StatusCode IDTPM::ITrackMatchingLookup::update ( const xAOD::TrackParticle & t,
const xAOD::TruthParticle & r,
float dist = 0. )
pure virtual

◆ update() [3/3]

virtual StatusCode IDTPM::ITrackMatchingLookup::update ( const xAOD::TruthParticle & t,
const xAOD::TrackParticle & r,
float dist = 0. )
pure virtual

Member Data Documentation

◆ m_anaTag

std::string IDTPM::ITrackMatchingLookup::m_anaTag
private

Lookup table properties.

Definition at line 156 of file ITrackMatchingLookup.h.

◆ m_chainRoiName

std::string IDTPM::ITrackMatchingLookup::m_chainRoiName
private

Definition at line 157 of file ITrackMatchingLookup.h.

◆ m_nullTrackVec

std::vector< const xAOD::TrackParticle* > IDTPM::ITrackMatchingLookup::m_nullTrackVec {}
protected

null vectors

Definition at line 150 of file ITrackMatchingLookup.h.

150{};

◆ m_nullTruthVec

std::vector< const xAOD::TruthParticle* > IDTPM::ITrackMatchingLookup::m_nullTruthVec {}
protected

Definition at line 151 of file ITrackMatchingLookup.h.

151{};

The documentation for this class was generated from the following file: