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 4 of file KFPartMatch.h.

Constructor & Destructor Documentation

◆ KFPartMatch()

KFPartMatch::KFPartMatch ( )
inline

Definition at line 6 of file KFPartMatch.h.

6 : ids(), idsMI(){};
vector< int > idsMI
Definition: KFPartMatch.h:27
vector< int > ids
Definition: KFPartMatch.h:25

Member Function Documentation

◆ GetBestMatch()

int KFPartMatch::GetBestMatch ( ) const
inline

Definition at line 10 of file KFPartMatch.h.

References ids, and idsMI.

11  {
12  if (ids.size() != 0)
13  return ids[0];
14  else if (idsMI.size() != 0)
15  return idsMI[0];
16  else
17  return -1;
18  };
vector< int > idsMI
Definition: KFPartMatch.h:27
vector< int > ids
Definition: KFPartMatch.h:25

◆ GetBestMatchWithPdg()

int KFPartMatch::GetBestMatchWithPdg ( ) const
inline

Definition at line 19 of file KFPartMatch.h.

References ids.

20  {
21  if (ids.size() != 0)
22  return ids[0];
23  else
24  return -1;
25  };
vector< int > ids
Definition: KFPartMatch.h:25

◆ IsMatched()

bool KFPartMatch::IsMatched ( ) const
inline

Definition at line 8 of file KFPartMatch.h.

References ids, and idsMI.

8 { return ids.size() != 0 || idsMI.size() != 0; };
vector< int > idsMI
Definition: KFPartMatch.h:27
vector< int > ids
Definition: KFPartMatch.h:25

◆ IsMatchedWithPdg()

bool KFPartMatch::IsMatchedWithPdg ( ) const
inline

Definition at line 9 of file KFPartMatch.h.

References ids.

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

Member Data Documentation

◆ ids

vector<int> KFPartMatch::ids

Definition at line 25 of file KFPartMatch.h.

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

◆ idsMI

vector<int> KFPartMatch::idsMI

Definition at line 27 of file KFPartMatch.h.

Referenced by GetBestMatch(), and IsMatched().


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