25 for (
int i=0; i<15; i++) {
fCovMatrix[i] = 0; }
33 Double_t tx, Double_t ty, Double_t qp,
34 const TMatrixFSym& covMat)
44 for (
int i=0; i<5; i++) {
45 for (
int j=i; j<5; j++) {
fCovMatrix[index++] = covMat[i][j]; }
71 cout <<
"Position : (";
73 cout <<
fX <<
", " <<
fY <<
", " <<
fZ <<
")" << endl;
74 cout <<
"Slopes : dx/dz = " <<
fTx <<
", dy/dz = " <<
fTy << endl;
75 cout <<
"q/p = " <<
fQp << endl;
85 Double_t
p = ( TMath::Abs(
fQp)>1.e-4 ) ?1./TMath::Abs(
fQp) :1.e4;
86 Double_t pz = TMath::Sqrt( p*p / (
fTx*
fTx +
fTy*
fTy + 1 ) );
87 Double_t px =
fTx * pz;
88 Double_t py =
fTy * pz;
89 mom.SetXYZ(px, py, pz);
99 for (Int_t i=0; i<15; i++) { cov[i] =
fCovMatrix[i]; }
109 for (
int i=0; i<5; i++) {
110 for (
int j=i; j<5; j++) {
124 if ( i<0 || j<0 || i>4 || j>4 ) {
125 cout <<
"-E- FairTrackParam::GetCovariance: Invalid index pair ("
126 << i <<
"," << j <<
") !" << endl;
135 if (i==0) { index = j; }
136 else if (i==1) { index = 4 + j; }
137 else if (i==2) { index = 7 + j; }
138 else if (i==3) { index = 9 + j; }
139 else if (i==4) { index = 10 + j; }
160 for (Int_t i=0; i<15; i++) {
fCovMatrix[i] = cov[i]; }
170 for (
int i=0; i<5; i++) {
171 for (
int j=i; j<5; j++) {
fCovMatrix[index++] = covMat[i][j]; }
181 if (i < 0 || i > 4) {
182 cout <<
"-W- FairTrackParam::SetCovariance: "
183 <<
"First index out of range! " << i << endl;
186 if (j < 0 || j > 4) {
187 cout <<
"-W- FairTrackParam::SetCovariance: "
188 <<
"Second index out of range! " << j << endl;
197 if (i==0) { index = j; }
198 else if (i==1) { index = 4 + j; }
199 else if (i==2) { index = 7 + j; }
200 else if (i==3) { index = 9 + j; }
201 else if (i==4) { index = 10 + j; }