ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
IDTPM::ITrackMatchingLookup Class Referenceabstract

#include <ITrackMatchingLookup.h>

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

Public Member Functions

virtual ~ITrackMatchingLookup ()=default
 Destructor. More...
 
virtual unsigned getNmatches (bool getRefN=false) const =0
 get overall number of matches More...
 
const std::string & anaTag () const
 matching properties More...
 
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 More...
 
virtual const xAOD::TrackParticlegetMatchedRefTrack (const xAOD::TruthParticle &t) const =0
 Truth -> Track. More...
 
virtual const xAOD::TruthParticlegetMatchedRefTruth (const xAOD::TrackParticle &t) const =0
 Track -> Truth. More...
 
const xAOD::TruthParticlegetMatchedRefTruth (const xAOD::TruthParticle &) const
 Truth -> Truth // to avoid compilation errors. More...
 
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks (const xAOD::TrackParticle &r) const =0
 get matched test vector (1 to 1+) vec Track <- Track More...
 
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks (const xAOD::TruthParticle &r) const =0
 vec Track <- Truth More...
 
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TrackParticle &r) const =0
 vec Truth <- Track More...
 
const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TruthParticle &) const
 vec Truth <- Truth // to avoid compilation errors More...
 
const xAOD::TrackParticlegetBestMatchedTestTrack (const xAOD::TrackParticle &r) const
 get best matched test, i.e. More...
 
const xAOD::TrackParticlegetBestMatchedTestTrack (const xAOD::TruthParticle &r) const
 best Track <- Truth More...
 
virtual const xAOD::TruthParticlegetBestMatchedTestTruth (const xAOD::TrackParticle &r) const
 best Truth <- Track More...
 
const xAOD::TruthParticlegetBestMatchedTestTruth (const xAOD::TruthParticle &) const
 best Truth <- Truth // to avoid compilation errors More...
 
virtual bool isTestMatched (const xAOD::TrackParticle &t) const =0
 return true if test is matched More...
 
virtual bool isTestMatched (const xAOD::TruthParticle &t) const =0
 
virtual bool isRefMatched (const xAOD::TrackParticle &r) const =0
 return true if reference is matched More...
 
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 More...
 
virtual StatusCode update (const xAOD::TrackParticle &t, const xAOD::TruthParticle &r, float dist=0.)=0
 Track -> Truth. More...
 
virtual StatusCode update (const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist=0.)=0
 Truth -> Track. More...
 
virtual void clear ()=0
 clear lookup tables More...
 
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 More...
 
virtual std::string printInfo (const std::vector< const xAOD::TrackParticle * > &testVec, const std::vector< const xAOD::TruthParticle * > &refVec) const =0
 Track -> Truth. More...
 
virtual std::string printInfo (const std::vector< const xAOD::TruthParticle * > &testVec, const std::vector< const xAOD::TrackParticle * > &refVec) const =0
 Truth -> Track. More...
 

Protected Attributes

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

Private Attributes

std::string m_anaTag
 Lookup table properties. More...
 
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; }

◆ 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.

45 { return m_chainRoiName; }

◆ 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  }

◆ 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  }

◆ 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; }

◆ 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_truthTrk, and IDTPM::TrackMatchingLookup_trkTruth.

◆ 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.

◆ m_nullTruthVec

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

Definition at line 151 of file ITrackMatchingLookup.h.


The documentation for this class was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:676
IDTPM::ITrackMatchingLookup::getMatchedTestTruths
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths(const xAOD::TrackParticle &r) const =0
vec Truth <- Track
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
IDTPM::ITrackMatchingLookup::getMatchedTestTracks
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks(const xAOD::TrackParticle &r) const =0
get matched test vector (1 to 1+) vec Track <- Track
IDTPM::ITrackMatchingLookup::m_anaTag
std::string m_anaTag
Lookup table properties.
Definition: ITrackMatchingLookup.h:156
IDTPM::ITrackMatchingLookup::m_nullTruthVec
std::vector< const xAOD::TruthParticle * > m_nullTruthVec
Definition: ITrackMatchingLookup.h:151
IDTPM::ITrackMatchingLookup::m_chainRoiName
std::string m_chainRoiName
Definition: ITrackMatchingLookup.h:157