Analysis Software
Documentation for sPHENIX simulation software
|
A structure to store matching information between simulated Monte Carlo and reconstructed particles. More...
#include <KFParticle/blob/master/KFParticlePerformance/KFPartMatch.h>
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. | |
A structure to store matching information between simulated Monte Carlo and reconstructed particles.
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
|
inline |
Definition at line 41 of file KFPartMatch.h.
View newest version in sPHENIX GitHub at line 41 of file KFPartMatch.h
|
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
|
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.
|
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
|
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.
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().