CbmRoot
CbmKFVertexInterface.cxx
Go to the documentation of this file.
1 
17 #include "CbmKFVertexInterface.h"
18 
19 #include "CbmVertex.h"
20 
21 #include "TMatrixTSym.h"
22 
24 
25  static Double_t gTempD[11];
26 static Int_t gTempI[2];
27 
28 Double_t& CbmKFVertexInterface::GetRefX() { return gTempD[0]; }
29 Double_t& CbmKFVertexInterface::GetRefY() { return gTempD[1]; }
30 Double_t& CbmKFVertexInterface::GetRefZ() { return gTempD[2]; }
31 Double_t* CbmKFVertexInterface::GetCovMatrix() { return gTempD + 3; }
32 Double_t& CbmKFVertexInterface::GetRefChi2() { return gTempD[9]; }
33 Int_t& CbmKFVertexInterface::GetRefNDF() { return gTempI[0]; }
35 
37  GetRefX() = v.GetX();
38  GetRefY() = v.GetY();
39  GetRefZ() = v.GetZ();
40  GetRefChi2() = v.GetChi2();
41  GetRefNDF() = v.GetNDF();
42  GetRefNTracks() = v.GetNTracks();
43  TMatrixFSym tmp(3);
44  v.CovMatrix(tmp);
45  for (int i = 0, k = 0; i < 3; i++)
46  for (int j = 0; j <= i; j++, k++)
47  GetCovMatrix()[k] = tmp(i, j);
48 }
49 
51  TMatrixFSym covMat(3);
52  for (int i = 0, k = 0; i < 3; i++)
53  for (int j = 0; j <= i; j++, k++)
54  covMat(i, j) = GetCovMatrix()[k];
55  v.SetVertex(GetRefX(),
56  GetRefY(),
57  GetRefZ(),
58  GetRefChi2(),
59  GetRefNDF(),
60  GetRefNTracks(),
61  covMat);
62 }
CbmVertex.h
CbmKFVertexInterface.h
CbmKFVertexInterface::GetRefNTracks
virtual Int_t & GetRefNTracks()
Number of Degrees of Freedom after fit.
Definition: CbmKFVertexInterface.cxx:34
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
ClassImp
ClassImp(CbmKFVertexInterface) static Double_t gTempD[11]
CbmKFVertexInterface::GetRefChi2
virtual Double_t & GetRefChi2()
Array[6] of covariance matrix.
Definition: CbmKFVertexInterface.cxx:32
CbmKFVertexInterface::GetVertex
void GetVertex(CbmVertex &v)
Definition: CbmKFVertexInterface.cxx:50
CbmKFVertexInterface::GetRefZ
virtual Double_t & GetRefZ()
Definition: CbmKFVertexInterface.cxx:30
CbmKFVertexInterface::SetVertex
void SetVertex(CbmVertex &v)
Number of tracks used during fit.
Definition: CbmKFVertexInterface.cxx:36
CbmVertex
Definition: CbmVertex.h:26
CbmKFVertexInterface
Definition: CbmKFVertexInterface.h:24
CbmKFVertexInterface::GetRefX
virtual Double_t & GetRefX()
Definition: CbmKFVertexInterface.cxx:28
CbmKFVertexInterface::GetRefY
virtual Double_t & GetRefY()
Definition: CbmKFVertexInterface.cxx:29
v
__m128 v
Definition: L1/vectors/P4_F32vec4.h:1
CbmKFVertexInterface::GetRefNDF
virtual Int_t & GetRefNDF()
Chi^2 after fit.
Definition: CbmKFVertexInterface.cxx:33
CbmKFVertexInterface::GetCovMatrix
virtual Double_t * GetCovMatrix()
Definition: CbmKFVertexInterface.cxx:31
gTempI
static Int_t gTempI[2]
Definition: CbmKFVertexInterface.cxx:26