BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmKFVertexInterface.cxx
Go to the documentation of this file.
1
2/** Abstract base class for vertex is being used by the CbmKF Kalman Filter
3 *
4 * @author S.Gorbunov
5 * @version 0.0
6 * @since 02.12.05
7 *
8 * The class members describes to the CbmKF Kalman Filter routines
9 * how to get acces to data in a derived (or user) class.
10 *
11 * To be used by high-level utilites like StsTrackFitter
12 *
13 * Usage is similar to CbmKFTrackInterface class
14 *
15 */
16
18
19#include "CbmVertex.h"
20
21static Double_t gTempD[11];
22static Int_t gTempI[2];
23
52
54{
55 GetRefX() = v.GetX();
56 GetRefY() = v.GetY();
57 GetRefZ() = v.GetZ();
58 GetRefChi2() = v.GetChi2();
59 GetRefNDF() = v.GetNDF();
60 GetRefNTracks() = v.GetNTracks();
61 TMatrixFSym tmp(3);
62 v.CovMatrix(tmp);
63 for (int i = 0, k = 0; i < 3; i++)
64 for (int j = 0; j <= i; j++, k++)
65 GetCovMatrix()[k] = tmp(i, j);
66}
67
69{
70 TMatrixFSym covMat(3);
71 // AZ-100825 for(int i=0, k=0;i<3;i++) for(int j=0; j<=i; j++,k++) covMat(i,j) = GetCovMatrix()[k];
72 for (int i = 0, k = 0; i < 3; i++) {
73 for (int j = 0; j <= i; j++, k++) {
74 if (i == j)
75 covMat(i, j) = GetCovMatrix()[k];
76 else
77 covMat(i, j) = covMat(j, i) = GetCovMatrix()[k];
78 }
79 }
80 v.SetVertex(GetRefX(), GetRefY(), GetRefZ(), GetRefChi2(), GetRefNDF(), GetRefNTracks(), covMat);
81}
__m128 v
Definition P4_F32vec4.h:1
int i
Definition P4_F32vec4.h:22
int Int_t
double Double_t
TMatrixTSym< Float_t > TMatrixFSym
virtual Double_t & GetRefY()
virtual Double_t & GetRefX()
I/O parameters for vertex fit routines.
virtual Int_t & GetRefNTracks()
Number of Degrees of Freedom after fit.
virtual Double_t & GetRefZ()
virtual Double_t & GetRefChi2()
Array[6] of covariance matrix.
virtual Int_t & GetRefNDF()
Chi^2 after fit.
void SetVertex(CbmVertex &v)
Number of tracks used during fit.
void GetVertex(CbmVertex &v)
virtual Double_t * GetCovMatrix()
CbmVertex.h.
Definition CbmVertex.h:21