BmnRoot
Loading...
Searching...
No Matches
BmnVertex.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- BmnVertex header file -----
3// ----- Created 13.12.2018 by D. Baranov -----
4// -------------------------------------------------------------------------
5
6
16#ifndef BMNVERTEX_H
17#define BMNVERTEX_H 1
18
19
20#include <string>
21#include "TMatrixFSym.h"
22#include "TNamed.h"
23#include "TVector3.h"
24
25
26class BmnVertex : public TNamed
27{
28
29 public:
30
33
34
36 BmnVertex(const char* name, const char* title);
37
38
50 BmnVertex(const char* name, const char* title,
51 Double_t x, Double_t y, Double_t z, Double_t chi2,
52 Int_t ndf, Int_t nTracks, const TMatrixFSym& covMat);
53
54
56 virtual ~BmnVertex();
57
58
60 virtual void Print(Option_t* opt = "") const ;
61
62
64 Double_t GetX() const { return fX; }; // x position [cm]
65 Double_t GetY() const { return fY; }; // y position [cm]
66 Double_t GetZ() const { return fZ; }; // z posiiton [cm]
67 Double_t GetChi2() const { return fChi2; }; // chi2
68 Int_t GetNDF() const { return fNDF; }; // nof degrees of freedom
69 Int_t GetNTracks() const { return fNTracks; }; // nof tracks used
70 void Position(TVector3& pos) const { pos.SetXYZ(fX,fY,fZ); };
71 void CovMatrix(TMatrixFSym& covMat) const;
72 Double_t GetCovariance(Int_t i, Int_t j) const;
73
74
76 void Reset();
77
78
88 void SetVertex(Double_t x, Double_t y, Double_t z, Double_t chi2,
89 Int_t ndf, Int_t nTracks, const TMatrixFSym& covMat);
90
91
93 virtual std::string ToString() const;
94
95
96
97 private:
98
100 Double32_t fX, fY, fZ;
101
103 Double32_t fChi2;
104
106 Int_t fNDF;
107
109 Int_t fNTracks;
110
114 Double32_t fCovMatrix[6];
115
116
117 ClassDef(BmnVertex,1);
118
119};
120
121
122#endif
int i
Definition P4_F32vec4.h:22
Int_t GetNTracks() const
Definition BmnVertex.h:69
Double_t GetX() const
Definition BmnVertex.h:64
Int_t GetNDF() const
Definition BmnVertex.h:68
virtual ~BmnVertex()
void Position(TVector3 &pos) const
Definition BmnVertex.h:70
virtual std::string ToString() const
Double_t GetChi2() const
Definition BmnVertex.h:67
Double_t GetZ() const
Definition BmnVertex.h:66
void Print()
Definition BmnVertex.cxx:56
Double_t GetY() const
Definition BmnVertex.h:65
void CovMatrix(TMatrixFSym &covMat) const
Double_t GetCovariance(Int_t i, Int_t j) const
void Reset()
void SetVertex(Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat, Int_t flag, vector< Int_t > idxs)
Definition BmnVertex.cxx:92