Public Member Functions | Protected Attributes | List of all members
garana::Vertex Class Reference

#include <Vertex.h>

Inheritance diagram for garana::Vertex:
garana::Vee

Public Member Functions

 Vertex ()
 
 Vertex (const TLorentzVector &position, const float *covar)
 
TLorentzVector * GetVertex ()
 
void GetCovar (float covar[][3])
 

Protected Attributes

TLorentzVector fPosition
 4-position of vertex [cm,ns] More...
 
float fCovar [3][3]
 vertex 3-position fit uncertainties [cm] More...
 

Detailed Description

Definition at line 17 of file Vertex.h.

Constructor & Destructor Documentation

Vertex::Vertex ( )

Definition at line 12 of file Vertex.cxx.

12  {
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 } //
float fCovar[3][3]
vertex 3-position fit uncertainties [cm]
Definition: Vertex.h:34
TLorentzVector fPosition
4-position of vertex [cm,ns]
Definition: Vertex.h:33
Vertex::Vertex ( const TLorentzVector &  position,
const float *  covar 
)

Definition at line 24 of file Vertex.cxx.

24  {
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 } //
float fCovar[3][3]
vertex 3-position fit uncertainties [cm]
Definition: Vertex.h:34
TLorentzVector fPosition
4-position of vertex [cm,ns]
Definition: Vertex.h:33

Member Function Documentation

void Vertex::GetCovar ( float  covar[][3])

Definition at line 40 of file Vertex.cxx.

40  {
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
TLorentzVector * Vertex::GetVertex ( )

Definition at line 36 of file Vertex.cxx.

36  {
37  return &fPosition;
38 }
TLorentzVector fPosition
4-position of vertex [cm,ns]
Definition: Vertex.h:33

Member Data Documentation

float garana::Vertex::fCovar[3][3]
protected

vertex 3-position fit uncertainties [cm]

Definition at line 34 of file Vertex.h.

TLorentzVector garana::Vertex::fPosition
protected

4-position of vertex [cm,ns]

Definition at line 33 of file Vertex.h.


The documentation for this class was generated from the following files: