13 int GetID()
const {
return ID; }
15 bool GetXYZ(
double *p)
const
17 for(
int i=0; i<6; i++)
21 bool GetCovarianceXYZPxPyPz(
double cv[21])
const
23 for (
int i=0; i<21; i++)
29 void XvYvZv(
double *position)
const {position[0] = fP[0]; position[1] = fP[1]; position[2] = fP[2];}
30 void PxPyPz(
double *position)
const {position[0] = fP[3]; position[1] = fP[4]; position[2] = fP[5];}
32 double GetX()
const {
return fP[0]; }
33 double GetY()
const {
return fP[1]; }
34 double GetZ()
const {
return fP[2]; }
35 double GetPx()
const {
return fP[3]; }
36 double GetPy()
const {
return fP[4]; }
37 double GetPz()
const {
return fP[5]; }
38 void GetCovarianceMatrix(
double *covmatrix)
40 for (
int i=0; i<21; i++)
43 double GetParameter(
int i)
const {
return fP[i]; }
44 double GetCovariance(
int i)
const {
return fC[i]; }
46 int Charge()
const {
return fQ; }
47 double GetChi2perNDF()
const {
return fChi2/fNDF; }
48 double GetChi2()
const {
return fChi2; }
49 int GetNDF()
const {
return fNDF; }
51 void SetParameters(
double *position)
53 for(
int i=0; i<6; i++)
56 void SetParameters(
double x,
double y,
double z,
double px,
double py,
double pz)
58 fP[0] = x; fP[1] = y; fP[2] = z;
59 fP[3] = px; fP[4] = py; fP[5] = pz;
61 void SetXYZ(
double x,
double y,
double z)
63 fP[0] = x; fP[1] = y; fP[2] = z;
65 void SetPxPyPz(
double px,
double py,
double pz)
67 fP[3] = px; fP[4] = py; fP[5] = pz;
69 void SetID(
int id) {
ID = id;}
71 void SetX(
double x) { fP[0] = x; }
72 void SetY(
double y) { fP[1] = y; }
73 void SetZ(
double z) { fP[2] = z; }
74 void SetCharge(
int q) { fQ = q; }
75 void SetChi2(
double chi) { fChi2 = chi; }
76 void SetNDF(
int ndf) { fNDF = ndf; }
78 void SetCovarianceMatrix(
double *C)
80 for (
int i=0; i<21; i++)