Vee.cxx
Go to the documentation of this file.
1 /*
2  * Vee.cxx
3  *
4  * Created on: Feb 23, 2021
5  * Author: chilgenb
6  */
7 
9 
10 using namespace garana;
11 using std::vector;
12 
14  fChisqr = FLT_MAX;
15  fPosition.SetXYZT(FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX);
16  for(size_t i=0; i<3; i++){
17 
18  //fMomPerHypoth[i].SetPxPyPzE(FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX);
19  //fCovar = new float*[3];
20 
21  for(size_t j=0; j<3; j++){
22  //fCovar[i] = new float[3];
23  fCovar[i][j] = FLT_MAX;
24  }
25  }
26 } //
27 
28 Vee::Vee(const TLorentzVector& vertex, const vector<TLorentzVector>& moms, const float& chisqr, const float* covar) {
29 
30  fChisqr = chisqr;
31  fPosition = vertex;
32 
33  for(size_t i=0; i<3; i++){
34 
35  //fMomPerHypoth[i] = moms[i];
36  fMomPerHypoth.push_back(moms[i]);
37  //fCovar = new float*[3];
38 
39  for(size_t j=0; j<3; j++){
40  // fCovar[i] = new float[3];
41  fCovar[i][j] = covar[0]; //TODO check input array dimensions
42 
43  }
44  }
45 } //
46 
47 float const& Vee::GetChiSqr() const {
48  return fChisqr;
49 }
50 
51 const vector<TLorentzVector>* Vee::GetMomentaPerHypothesis() const {
52  return &fMomPerHypoth;
53 }
struct vector vector
float const & GetChiSqr() const
Definition: Vee.cxx:47
float fCovar[3][3]
Definition: Vee.h:36
const vector< TLorentzVector > * GetMomentaPerHypothesis() const
Definition: Vee.cxx:51
TLorentzVector fPosition
4-position of vertex [cm,ns]
Definition: Vertex.h:33
vector< TLorentzVector > fMomPerHypoth
four-momentum of vee, one per hypothesis [GeV]
Definition: Vee.h:34
float fChisqr
Definition: Vee.h:35
vertex reconstruction