BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
17
#include "
CbmKFVertexInterface.h
"
18
19
#include "CbmVertex.h"
20
21
static
Double_t
gTempD
[11];
22
static
Int_t
gTempI
[2];
23
24
Double_t
&
CbmKFVertexInterface::GetRefX
()
25
{
26
return
gTempD
[0];
27
}
28
Double_t
&
CbmKFVertexInterface::GetRefY
()
29
{
30
return
gTempD
[1];
31
}
32
Double_t
&
CbmKFVertexInterface::GetRefZ
()
33
{
34
return
gTempD
[2];
35
}
36
Double_t
*
CbmKFVertexInterface::GetCovMatrix
()
37
{
38
return
gTempD
+ 3;
39
}
40
Double_t
&
CbmKFVertexInterface::GetRefChi2
()
41
{
42
return
gTempD
[9];
43
}
44
Int_t
&
CbmKFVertexInterface::GetRefNDF
()
45
{
46
return
gTempI
[0];
47
}
48
Int_t
&
CbmKFVertexInterface::GetRefNTracks
()
49
{
50
return
gTempI
[1];
51
}
52
53
void
CbmKFVertexInterface::SetVertex
(
CbmVertex
&
v
)
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
68
void
CbmKFVertexInterface::GetVertex
(
CbmVertex
&
v
)
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
}
v
__m128 v
Definition
P4_F32vec4.h:1
i
int i
Definition
P4_F32vec4.h:22
Int_t
int Int_t
Double_t
double Double_t
TMatrixFSym
TMatrixTSym< Float_t > TMatrixFSym
CbmKFVertexInterface::GetRefY
virtual Double_t & GetRefY()
Definition
CbmKFVertexInterface.cxx:28
CbmKFVertexInterface::GetRefX
virtual Double_t & GetRefX()
I/O parameters for vertex fit routines.
Definition
CbmKFVertexInterface.cxx:24
CbmKFVertexInterface::GetRefNTracks
virtual Int_t & GetRefNTracks()
Number of Degrees of Freedom after fit.
Definition
CbmKFVertexInterface.cxx:48
CbmKFVertexInterface::GetRefZ
virtual Double_t & GetRefZ()
Definition
CbmKFVertexInterface.cxx:32
CbmKFVertexInterface::GetRefChi2
virtual Double_t & GetRefChi2()
Array[6] of covariance matrix.
Definition
CbmKFVertexInterface.cxx:40
CbmKFVertexInterface::GetRefNDF
virtual Int_t & GetRefNDF()
Chi^2 after fit.
Definition
CbmKFVertexInterface.cxx:44
CbmKFVertexInterface::SetVertex
void SetVertex(CbmVertex &v)
Number of tracks used during fit.
Definition
CbmKFVertexInterface.cxx:53
CbmKFVertexInterface::GetVertex
void GetVertex(CbmVertex &v)
Definition
CbmKFVertexInterface.cxx:68
CbmKFVertexInterface::GetCovMatrix
virtual Double_t * GetCovMatrix()
Definition
CbmKFVertexInterface.cxx:36
CbmVertex
CbmVertex.h.
Definition
CbmVertex.h:21
CbmKFVertexInterface.h
reconstruction
KF
CbmKFVertexInterface.cxx
Generated on
for BmnRoot by
1.17.0