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

Constructor & Destructor Documentation

◆ KFPVertex()

KFPVertex::KFPVertex ( )
inline

Definition at line 6 of file KFPVertex.h.

6 {}

◆ ~KFPVertex()

KFPVertex::~KFPVertex ( )
inline

Definition at line 7 of file KFPVertex.h.

7 {}

Member Function Documentation

◆ GetChi2()

float KFPVertex::GetChi2 ( ) const
inline

Definition at line 40 of file KFPVertex.h.

40 { return fChi2; }

◆ GetChi2perNDF()

float KFPVertex::GetChi2perNDF ( ) const
inline

Definition at line 39 of file KFPVertex.h.

39 { return fChi2 / fNDF; }

◆ GetCovariance()

float KFPVertex::GetCovariance ( int  i) const
inline

Definition at line 45 of file KFPVertex.h.

References i.

45 { return fC[i]; }
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetCovarianceMatrix() [1/2]

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

Definition at line 28 of file KFPVertex.h.

References i.

29  {
30  for (int i = 0; i < 6; i++)
31  covmatrix[i] = fC[i];
32  }
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetCovarianceMatrix() [2/2]

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

Definition at line 33 of file KFPVertex.h.

References i.

34  {
35  for (int i = 0; i < 6; i++)
36  covmatrix[i] = fC[i];
37  }
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetNContributors()

int KFPVertex::GetNContributors ( ) const
inline

Definition at line 42 of file KFPVertex.h.

42 { return fNContributors; }

◆ GetNDF()

int KFPVertex::GetNDF ( ) const
inline

Definition at line 41 of file KFPVertex.h.

41 { return fNDF; }

◆ GetParameter()

float KFPVertex::GetParameter ( int  i) const
inline

Definition at line 44 of file KFPVertex.h.

References i.

44 { return fP[i]; }
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetX()

float KFPVertex::GetX ( ) const
inline

Definition at line 12 of file KFPVertex.h.

12 { return fP[0]; }

◆ GetXYZ() [1/2]

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

Definition at line 16 of file KFPVertex.h.

17  {
18  position[0] = fP[0];
19  position[1] = fP[1];
20  position[2] = fP[2];
21  }

◆ GetXYZ() [2/2]

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

Definition at line 22 of file KFPVertex.h.

23  {
24  position[0] = fP[0];
25  position[1] = fP[1];
26  position[2] = fP[2];
27  }

◆ GetY()

float KFPVertex::GetY ( ) const
inline

Definition at line 13 of file KFPVertex.h.

13 { return fP[1]; }

◆ GetZ()

float KFPVertex::GetZ ( ) const
inline

Definition at line 14 of file KFPVertex.h.

14 { return fP[2]; }

◆ SetChi2()

void KFPVertex::SetChi2 ( float  chi)
inline

Definition at line 62 of file KFPVertex.h.

62 { fChi2 = chi; }

◆ SetCovarianceMatrix() [1/2]

void KFPVertex::SetCovarianceMatrix ( float *  C)
inline

Definition at line 66 of file KFPVertex.h.

References i.

67  {
68  for (int i = 0; i < 6; i++)
69  fC[i] = C[i];
70  }
unsigned int i
Definition: P4_F32vec4.h:21

◆ SetCovarianceMatrix() [2/2]

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

Definition at line 72 of file KFPVertex.h.

73  {
74  fC[0] = C00;
75  fC[1] = C10;
76  fC[2] = C11;
77  fC[3] = C20;
78  fC[4] = C21;
79  fC[5] = C22;
80  }

◆ SetNContributors()

void KFPVertex::SetNContributors ( int  nc)
inline

Definition at line 64 of file KFPVertex.h.

64 { fNContributors = nc; }

◆ SetNDF()

void KFPVertex::SetNDF ( int  ndf)
inline

Definition at line 63 of file KFPVertex.h.

63 { fNDF = ndf; }

◆ SetX()

void KFPVertex::SetX ( float  x)
inline

Definition at line 59 of file KFPVertex.h.

59 { fP[0] = x; }

◆ SetXYZ() [1/2]

void KFPVertex::SetXYZ ( float *  position)
inline

Definition at line 47 of file KFPVertex.h.

48  {
49  fP[0] = position[0];
50  fP[1] = position[1];
51  fP[2] = position[2];
52  }

◆ SetXYZ() [2/2]

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

Definition at line 53 of file KFPVertex.h.

54  {
55  fP[0] = x;
56  fP[1] = y;
57  fP[2] = z;
58  }

◆ SetY()

void KFPVertex::SetY ( float  y)
inline

Definition at line 60 of file KFPVertex.h.

60 { fP[1] = y; }

◆ SetZ()

void KFPVertex::SetZ ( float  z)
inline

Definition at line 61 of file KFPVertex.h.

61 { fP[2] = z; }

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