Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KFPartMatch Class Reference

A structure to store matching information between simulated Monte Carlo and reconstructed particles. More...

#include <KFParticle/blob/master/KFParticlePerformance/KFPartMatch.h>

+ Collaboration diagram for KFPartMatch:

Public Member Functions

 KFPartMatch ()
 
bool IsMatched () const
 Returns true if at least one link exists independently of the PDG hypothesis.
 
bool IsMatchedWithPdg () const
 Returns true is at least one link with the correct PDG exists.
 
int GetBestMatch () const
 Returns first link with correct PDG if exists, otherwise first link with incorrect PDG. If no link exists returns "-1".
 
int GetBestMatchWithPdg () const
 Returns first link with correct PDG if exists, otherwise returns "-1".
 

Public Attributes

std::vector< int > ids
 Vector of links, PDG hypothesis of the reconstructed particle is required to be the same as the PDG code of the Monte Carlo particle.
 
std::vector< int > idsMI
 Vector of links, PDG hypothesis of the reconstructed particle differs from the Monte Carlo particle.
 

Detailed Description

A structure to store matching information between simulated Monte Carlo and reconstructed particles.

Author
M.Zyzak, I.Kisel
Date
05.02.2019
Version
1.0

The class is used in both directions: to store links from Monte Carlo to reconstructed particles and vise versa. It contains two kind of links: 1) PDG hypothesis of the reconstructed and Monte Carlo particles should be the same; 2) PDG code differs.

Definition at line 39 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 39 of file KFPartMatch.h

Constructor & Destructor Documentation

KFPartMatch::KFPartMatch ( )
inline

Definition at line 41 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 41 of file KFPartMatch.h

Member Function Documentation

int KFPartMatch::GetBestMatch ( ) const
inline

Returns first link with correct PDG if exists, otherwise first link with incorrect PDG. If no link exists returns "-1".

Definition at line 45 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 45 of file KFPartMatch.h

References ids, and idsMI.

int KFPartMatch::GetBestMatchWithPdg ( ) const
inline

Returns first link with correct PDG if exists, otherwise returns "-1".

Definition at line 50 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 50 of file KFPartMatch.h

References ids.

bool KFPartMatch::IsMatched ( ) const
inline

Returns true if at least one link exists independently of the PDG hypothesis.

Definition at line 43 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 43 of file KFPartMatch.h

References ids, and idsMI.

bool KFPartMatch::IsMatchedWithPdg ( ) const
inline

Returns true is at least one link with the correct PDG exists.

Definition at line 44 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 44 of file KFPartMatch.h

References ids.

Member Data Documentation

std::vector<int> KFPartMatch::ids

Vector of links, PDG hypothesis of the reconstructed particle is required to be the same as the PDG code of the Monte Carlo particle.

Definition at line 54 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 54 of file KFPartMatch.h

Referenced by GetBestMatch(), GetBestMatchWithPdg(), IsMatched(), and IsMatchedWithPdg().

std::vector<int> KFPartMatch::idsMI

Vector of links, PDG hypothesis of the reconstructed particle differs from the Monte Carlo particle.

Definition at line 55 of file KFPartMatch.h.

View newest version in sPHENIX GitHub at line 55 of file KFPartMatch.h

Referenced by GetBestMatch(), and IsMatched().


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