Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garana
garana
DataProducts
Vertex.cxx
Go to the documentation of this file.
1
/*
2
* Vertex.cxx
3
*
4
* Created on: Feb 23, 2021
5
* Author: chilgenb
6
*/
7
8
#include "
garana/DataProducts/Vertex.h
"
9
10
using namespace
garana
;
11
12
Vertex::Vertex
() {
13
14
fPosition
.SetXYZT(FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX);
15
for
(
size_t
i=0; i<3; i++){
16
//fCovar = new float*[3];
17
for
(
size_t
j=0; j<3; j++){
18
//fCovar[i] = new float[3];
19
fCovar
[i][j] = FLT_MAX;
20
}
21
}
22
}
//
23
24
Vertex::Vertex
(
const
TLorentzVector&
position
,
const
float
* covar) {
25
26
fPosition
=
position
;
27
for
(
size_t
i=0; i<3; i++){
28
//fCovar = new float*[3];
29
for
(
size_t
j=0; j<3; j++){
30
//fCovar[i] = new float[3];
31
fCovar
[i][j] = covar[i];
//TODO check input array dimensions
32
}
33
}
34
}
//
35
36
TLorentzVector*
Vertex::GetVertex
() {
37
return
&
fPosition
;
38
}
39
40
void
Vertex::GetCovar
(
float
covar[][3]) {
41
for
(
size_t
i=0; i<3; i++){
42
for
(
size_t
j=0; j<3; j++){
43
covar[i][j] =
fCovar
[i][j];
44
}
45
}
46
}
garana::Vertex::fCovar
float fCovar[3][3]
vertex 3-position fit uncertainties [cm]
Definition:
Vertex.h:34
MakeVectorFile.position
position
Definition:
MakeVectorFile.py:80
garana
Definition:
FlatDetTree.h:15
Vertex.h
garana::Vertex::GetCovar
void GetCovar(float covar[][3])
Definition:
Vertex.cxx:40
garana::Vertex::fPosition
TLorentzVector fPosition
4-position of vertex [cm,ns]
Definition:
Vertex.h:33
garana::Vertex::GetVertex
TLorentzVector * GetVertex()
Definition:
Vertex.cxx:36
garana::Vertex::Vertex
Vertex()
Definition:
Vertex.cxx:12
Generated by
1.8.11