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 
9 
10 using namespace garana;
11 
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 
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 }
float fCovar[3][3]
vertex 3-position fit uncertainties [cm]
Definition: Vertex.h:34
void GetCovar(float covar[][3])
Definition: Vertex.cxx:40
TLorentzVector fPosition
4-position of vertex [cm,ns]
Definition: Vertex.h:33
TLorentzVector * GetVertex()
Definition: Vertex.cxx:36