PandaRoot
KFPartMatch Struct Reference

#include <KFPartMatch.h>

Public Member Functions

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

Public Attributes

vector< int > ids
 
vector< int > idsMI
 

Detailed Description

Definition at line 16 of file KFPartMatch.h.

Constructor & Destructor Documentation

◆ KFPartMatch()

KFPartMatch::KFPartMatch ( )
inline

Definition at line 18 of file KFPartMatch.h.

18 : ids(), idsMI(){};
vector< int > idsMI
Definition: KFPartMatch.h:39
vector< int > ids
Definition: KFPartMatch.h:37

Member Function Documentation

◆ GetBestMatch()

int KFPartMatch::GetBestMatch ( ) const
inline

Definition at line 22 of file KFPartMatch.h.

References ids, and idsMI.

23  {
24  if (ids.size() != 0)
25  return ids[0];
26  else if (idsMI.size() != 0)
27  return idsMI[0];
28  else
29  return -1;
30  };
vector< int > idsMI
Definition: KFPartMatch.h:39
vector< int > ids
Definition: KFPartMatch.h:37

◆ GetBestMatchWithPdg()

int KFPartMatch::GetBestMatchWithPdg ( ) const
inline

Definition at line 31 of file KFPartMatch.h.

References ids.

32  {
33  if (ids.size() != 0)
34  return ids[0];
35  else
36  return -1;
37  };
vector< int > ids
Definition: KFPartMatch.h:37

◆ IsMatched()

bool KFPartMatch::IsMatched ( ) const
inline

Definition at line 20 of file KFPartMatch.h.

References ids, and idsMI.

20 { return ids.size() != 0 || idsMI.size() != 0; };
vector< int > idsMI
Definition: KFPartMatch.h:39
vector< int > ids
Definition: KFPartMatch.h:37

◆ IsMatchedWithPdg()

bool KFPartMatch::IsMatchedWithPdg ( ) const
inline

Definition at line 21 of file KFPartMatch.h.

References ids.

21 { return ids.size() != 0; };
vector< int > ids
Definition: KFPartMatch.h:37

Member Data Documentation

◆ ids

vector<int> KFPartMatch::ids

Definition at line 37 of file KFPartMatch.h.

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

◆ idsMI

vector<int> KFPartMatch::idsMI

Definition at line 39 of file KFPartMatch.h.

Referenced by GetBestMatch(), and IsMatched().


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