13 double GetX()
const {
return fP[0]; }
14 double GetY()
const {
return fP[1]; }
15 double GetZ()
const {
return fP[2]; }
17 void GetXYZ(
double *position)
const {position[0] = fP[0]; position[1] = fP[1]; position[2] = fP[2];}
18 void GetCovarianceMatrix(
double *covmatrix)
const
20 for (
int i=0; i<6; i++)
24 double GetChi2perNDF()
const {
return fChi2/fNDF; }
25 double GetChi2()
const {
return fChi2; }
26 int GetNDF()
const {
return fNDF; }
27 int GetNContributors()
const {
return fNContributors; }
29 double GetParameter(
int i)
const {
return fP[i]; }
30 double GetCovariance(
int i)
const {
return fC[i]; }
33 void SetXYZ(
double *position) { fP[0] = position[0]; fP[1] = position[1]; fP[2] = position[2]; }
34 void SetXYZ(
double x,
double y,
double z) { fP[0] = x; fP[1] = y; fP[2] = z; }
35 void SetX(
double x) { fP[0] = x; }
36 void SetY(
double y) { fP[1] = y; }
37 void SetZ(
double z) { fP[2] = z; }
38 void SetChi2(
double chi) { fChi2 = chi; }
39 void SetNDF(
int ndf) { fNDF = ndf; }
40 void SetNContributors(
int nc) { fNContributors = nc; }
42 void SetCovarianceMatrix(
double *C)
44 for (
int i=0; i<6; i++)
48 void SetCovarianceMatrix(
double C00,
double C10,
double C11,
double C20,
double C21,
double C22)