FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
KFMatchParticles Struct Reference

#include <KFParticleMatch.h>

Public Member Functions

 KFMatchParticles ()
 
bool IsMatched () const
 
bool IsMatchedWithPdg () const
 
int GetBestMatch () const
 
int GetBestMatchWithPdg () const
 

Public Attributes

std::vector< int > ids
 
std::vector< int > idsMI
 

Detailed Description

Definition at line 47 of file KFParticleMatch.h.

Constructor & Destructor Documentation

KFMatchParticles::KFMatchParticles ( )
inline

Definition at line 49 of file KFParticleMatch.h.

49 :ids(),idsMI(){};
std::vector< int > ids
std::vector< int > idsMI

Member Function Documentation

int KFMatchParticles::GetBestMatch ( ) const
inline

Definition at line 53 of file KFParticleMatch.h.

References ids, and idsMI.

53  {
54  if (ids.size() != 0) return ids[0];
55  else if (idsMI.size() != 0) return idsMI[0];
56  else return -1;
57  };
std::vector< int > ids
std::vector< int > idsMI
int KFMatchParticles::GetBestMatchWithPdg ( ) const
inline

Definition at line 58 of file KFParticleMatch.h.

References ids.

58  {
59  if (ids.size() != 0) return ids[0];
60  else return -1;
61  };
std::vector< int > ids
bool KFMatchParticles::IsMatched ( ) const
inline

Definition at line 51 of file KFParticleMatch.h.

References ids, and idsMI.

51 { return ids.size() != 0 || idsMI.size() != 0; };
std::vector< int > ids
std::vector< int > idsMI
bool KFMatchParticles::IsMatchedWithPdg ( ) const
inline

Definition at line 52 of file KFParticleMatch.h.

References ids.

52 { return ids.size() != 0; };
std::vector< int > ids

Member Data Documentation

std::vector<int> KFMatchParticles::ids

Definition at line 61 of file KFParticleMatch.h.

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

std::vector<int> KFMatchParticles::idsMI

Definition at line 63 of file KFParticleMatch.h.

Referenced by GetBestMatch(), and IsMatched().


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