PandaRoot
KFPVertex Class Reference

#include <KFPVertex.h>

Public Member Functions

 KFPVertex ()
 
 ~KFPVertex ()
 
float GetX () const
 
float GetY () const
 
float GetZ () const
 
void GetXYZ (float *position) const
 
void GetXYZ (double *position) const
 
void GetCovarianceMatrix (float *covmatrix) const
 
void GetCovarianceMatrix (double *covmatrix) const
 
float GetChi2perNDF () const
 
float GetChi2 () const
 
int GetNDF () const
 
int GetNContributors () const
 
float GetParameter (int i) const
 
float GetCovariance (int i) const
 
void SetXYZ (float *position)
 
void SetXYZ (float x, float y, float z)
 
void SetX (float x)
 
void SetY (float y)
 
void SetZ (float z)
 
void SetChi2 (float chi)
 
void SetNDF (int ndf)
 
void SetNContributors (int nc)
 
void SetCovarianceMatrix (float *C)
 
void SetCovarianceMatrix (float C00, float C10, float C11, float C20, float C21, float C22)
 

Detailed Description

Definition at line 16 of file KFPVertex.h.

Constructor & Destructor Documentation

◆ KFPVertex()

KFPVertex::KFPVertex ( )
inline

Definition at line 18 of file KFPVertex.h.

18 {}

◆ ~KFPVertex()

KFPVertex::~KFPVertex ( )
inline

Definition at line 19 of file KFPVertex.h.

19 {}

Member Function Documentation

◆ GetChi2()

float KFPVertex::GetChi2 ( ) const
inline

Definition at line 52 of file KFPVertex.h.

52 { return fChi2; }

◆ GetChi2perNDF()

float KFPVertex::GetChi2perNDF ( ) const
inline

Definition at line 51 of file KFPVertex.h.

51 { return fChi2 / fNDF; }

◆ GetCovariance()

float KFPVertex::GetCovariance ( int  i) const
inline

Definition at line 57 of file KFPVertex.h.

References i.

57 { return fC[i]; }
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetCovarianceMatrix() [1/2]

void KFPVertex::GetCovarianceMatrix ( float *  covmatrix) const
inline

Definition at line 40 of file KFPVertex.h.

References i.

41  {
42  for (int i = 0; i < 6; i++)
43  covmatrix[i] = fC[i];
44  }
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetCovarianceMatrix() [2/2]

void KFPVertex::GetCovarianceMatrix ( double *  covmatrix) const
inline

Definition at line 45 of file KFPVertex.h.

References i.

46  {
47  for (int i = 0; i < 6; i++)
48  covmatrix[i] = fC[i];
49  }
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetNContributors()

int KFPVertex::GetNContributors ( ) const
inline

Definition at line 54 of file KFPVertex.h.

54 { return fNContributors; }

◆ GetNDF()

int KFPVertex::GetNDF ( ) const
inline

Definition at line 53 of file KFPVertex.h.

53 { return fNDF; }

◆ GetParameter()

float KFPVertex::GetParameter ( int  i) const
inline

Definition at line 56 of file KFPVertex.h.

References i.

56 { return fP[i]; }
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetX()

float KFPVertex::GetX ( ) const
inline

Definition at line 24 of file KFPVertex.h.

24 { return fP[0]; }

◆ GetXYZ() [1/2]

void KFPVertex::GetXYZ ( float *  position) const
inline

Definition at line 28 of file KFPVertex.h.

29  {
30  position[0] = fP[0];
31  position[1] = fP[1];
32  position[2] = fP[2];
33  }

◆ GetXYZ() [2/2]

void KFPVertex::GetXYZ ( double *  position) const
inline

Definition at line 34 of file KFPVertex.h.

35  {
36  position[0] = fP[0];
37  position[1] = fP[1];
38  position[2] = fP[2];
39  }

◆ GetY()

float KFPVertex::GetY ( ) const
inline

Definition at line 25 of file KFPVertex.h.

25 { return fP[1]; }

◆ GetZ()

float KFPVertex::GetZ ( ) const
inline

Definition at line 26 of file KFPVertex.h.

26 { return fP[2]; }

◆ SetChi2()

void KFPVertex::SetChi2 ( float  chi)
inline

Definition at line 74 of file KFPVertex.h.

74 { fChi2 = chi; }

◆ SetCovarianceMatrix() [1/2]

void KFPVertex::SetCovarianceMatrix ( float *  C)
inline

Definition at line 78 of file KFPVertex.h.

References i.

79  {
80  for (int i = 0; i < 6; i++)
81  fC[i] = C[i];
82  }
unsigned int i
Definition: P4_F32vec4.h:33

◆ SetCovarianceMatrix() [2/2]

void KFPVertex::SetCovarianceMatrix ( float  C00,
float  C10,
float  C11,
float  C20,
float  C21,
float  C22 
)
inline

Definition at line 84 of file KFPVertex.h.

85  {
86  fC[0] = C00;
87  fC[1] = C10;
88  fC[2] = C11;
89  fC[3] = C20;
90  fC[4] = C21;
91  fC[5] = C22;
92  }

◆ SetNContributors()

void KFPVertex::SetNContributors ( int  nc)
inline

Definition at line 76 of file KFPVertex.h.

76 { fNContributors = nc; }

◆ SetNDF()

void KFPVertex::SetNDF ( int  ndf)
inline

Definition at line 75 of file KFPVertex.h.

75 { fNDF = ndf; }

◆ SetX()

void KFPVertex::SetX ( float  x)
inline

Definition at line 71 of file KFPVertex.h.

71 { fP[0] = x; }

◆ SetXYZ() [1/2]

void KFPVertex::SetXYZ ( float *  position)
inline

Definition at line 59 of file KFPVertex.h.

60  {
61  fP[0] = position[0];
62  fP[1] = position[1];
63  fP[2] = position[2];
64  }

◆ SetXYZ() [2/2]

void KFPVertex::SetXYZ ( float  x,
float  y,
float  z 
)
inline

Definition at line 65 of file KFPVertex.h.

66  {
67  fP[0] = x;
68  fP[1] = y;
69  fP[2] = z;
70  }

◆ SetY()

void KFPVertex::SetY ( float  y)
inline

Definition at line 72 of file KFPVertex.h.

72 { fP[1] = y; }

◆ SetZ()

void KFPVertex::SetZ ( float  z)
inline

Definition at line 73 of file KFPVertex.h.

73 { fP[2] = z; }

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