BmnRoot
Loading...
Searching...
No Matches
CbmKFVertexInterface.cxx
Go to the documentation of this file.
1
18
19#include "CbmVertex.h"
20
21static Double_t gTempD[11];
22static Int_t gTempI[2];
23
25{
26 return gTempD[0];
27}
29{
30 return gTempD[1];
31}
33{
34 return gTempD[2];
35}
37{
38 return gTempD + 3;
39}
41{
42 return gTempD[9];
43}
45{
46 return gTempI[0];
47}
49{
50 return gTempI[1];
51}
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
virtual Double_t & GetRefY()
virtual Double_t & GetRefX()
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()