BmnRoot
Loading...
Searching...
No Matches
BmnVertex.h
Go to the documentation of this file.
1
10#ifndef BMNVERTEX_H
11#define BMNVERTEX_H 1
12
13#include <vector>
14
15#include "TMatrixFSym.h"
16#include "TObject.h"
17#include "TVector3.h"
18
19using namespace std;
20
21class BmnVertex : public TObject {
22 public:
25
39 BmnVertex(Double_t x, Double_t y, Double_t z, Double_t chi2,
40 Int_t ndf, Int_t nTracks, const TMatrixFSym& covMat, Int_t flag, vector<Int_t> idxs);
41
43 virtual ~BmnVertex();
44
46 void Print();
47
49 Double_t GetX() const { return fX; }; // x position [cm]
50 Double_t GetY() const { return fY; }; // y position [cm]
51 Double_t GetZ() const { return fZ; }; // z posiiton [cm]
52 Double_t GetChi2() const { return fChi2; }; // chi2
53 Int_t GetNDF() const { return fNDF; }; // nof degrees of freedom
54 Int_t GetNTracks() const { return fNTracks; }; // nof tracks used
55 void Position(TVector3& pos) const { pos.SetXYZ(fX, fY, fZ); };
56 void CovMatrix(TMatrixFSym& covMat) const;
57 Double_t GetCovariance(Int_t i, Int_t j) const;
58 std::vector<Int_t>& GetTrackIdxs() { return fTrackIdxs; }
59 Int_t GetFlag() { return fFlag; }
60
62 void Reset();
63
75 void SetVertex(Double_t x, Double_t y, Double_t z, Double_t chi2,
76 Int_t ndf, Int_t nTracks, const TMatrixFSym& covMat, Int_t flag, vector<Int_t> idxs);
77
79 virtual std::string ToString() const;
80
81 private:
83 Double32_t fX, fY, fZ;
84
86 Double32_t fChi2;
87
89 Int_t fNDF;
90
92 Int_t fNTracks;
93
97 Double32_t fCovMatrix[6];
98
100 vector<Int_t> fTrackIdxs;
101
109 Int_t fFlag;
110
111 ClassDef(BmnVertex, 1);
112};
113
114#endif
int i
Definition P4_F32vec4.h:22
Int_t GetFlag()
Definition BmnVertex.h:59
std::vector< Int_t > & GetTrackIdxs()
Definition BmnVertex.h:58
Int_t GetNTracks() const
Definition BmnVertex.h:54
Double_t GetX() const
Definition BmnVertex.h:49
Int_t GetNDF() const
Definition BmnVertex.h:53
virtual ~BmnVertex()
void Position(TVector3 &pos) const
Definition BmnVertex.h:55
virtual std::string ToString() const
Double_t GetChi2() const
Definition BmnVertex.h:52
BmnVertex(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)
Double_t GetZ() const
Definition BmnVertex.h:51
void Print()
Double_t GetY() const
Definition BmnVertex.h:50
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)
STL namespace.