BmnRoot
Loading...
Searching...
No Matches
BmnFitNode.h
Go to the documentation of this file.
1
8#ifndef BMNFITNODE_H_
9#define BMNFITNODE_H_
10
11#include "FairTrackParam.h"
12#include "TMatrixD.h"
13#include <vector>
14using namespace std;
15
22class BmnFitNode
23{
24public:
29 fF(25, 0.),
30 fPredictedParam(),
31 fUpdatedParam(),
32 fSmoothedParam(),
33 fChiSqFiltered(0.),
34 fChiSqSmoothed(0.) {
35 fF_matr.ResizeTo(5, 5);
36 }
37
41 virtual ~BmnFitNode() {};
42
43 /* Getters */
44 const vector<Double_t>& GetF() const { return fF; }
45 const TMatrixD GetF_matr() const { return fF_matr; }
46 const FairTrackParam* GetPredictedParam() const { return &fPredictedParam; }
47 FairTrackParam* GetUpdatedParam() { return &fUpdatedParam; }
48 FairTrackParam* GetSmoothedParam() { return &fSmoothedParam; }
49 Float_t GetChiSqFiltered() const { return fChiSqFiltered; }
50 Float_t GetChiSqSmoothed() const { return fChiSqSmoothed; }
51
52 /* Setters */
53 void SetF(const vector<Double_t>& F) { fF.assign(F.begin(), F.end()); }
54 void SetF_matr(const TMatrixD& F) { fF_matr = F; }
55 void SetPredictedParam(const FairTrackParam* par) { fPredictedParam = *par;}
56 void SetUpdatedParam(const FairTrackParam* par) { fUpdatedParam = *par;}
57 void SetSmoothedParam(const FairTrackParam* par) { fSmoothedParam = *par;}
58 void SetChiSqFiltered(Float_t chiSq) { fChiSqFiltered = chiSq; }
59 void SetChiSqSmoothed(Float_t chiSq) { fChiSqSmoothed = chiSq; }
60
61private:
62 vector<Double_t> fF; // Transport matrix.
63
64 TMatrixD fF_matr; // Transport matrix.
65
66 FairTrackParam fPredictedParam; // Predicted track parameters.
67 FairTrackParam fUpdatedParam; // Updated with KF track parameters.
68 FairTrackParam fSmoothedParam; // Smoothed track parameters.
69
70 Float_t fChiSqFiltered; // Contribution to chi-square of updated track parameters and hit.
71 Float_t fChiSqSmoothed; // Contribution to chi-square of smoothed track parameters and hit.
72};
73
74#endif /*BMNFITNODE_H_*/
void SetF(const vector< Double_t > &F)
Definition BmnFitNode.h:53
virtual ~BmnFitNode()
Destructor.
Definition BmnFitNode.h:41
void SetPredictedParam(const FairTrackParam *par)
Definition BmnFitNode.h:55
void SetChiSqSmoothed(Float_t chiSq)
Definition BmnFitNode.h:59
Float_t GetChiSqSmoothed() const
Definition BmnFitNode.h:50
FairTrackParam * GetSmoothedParam()
Definition BmnFitNode.h:48
void SetSmoothedParam(const FairTrackParam *par)
Definition BmnFitNode.h:57
BmnFitNode()
Constructor.
Definition BmnFitNode.h:28
Float_t GetChiSqFiltered() const
Definition BmnFitNode.h:49
void SetUpdatedParam(const FairTrackParam *par)
Definition BmnFitNode.h:56
const vector< Double_t > & GetF() const
Definition BmnFitNode.h:44
void SetF_matr(const TMatrixD &F)
Definition BmnFitNode.h:54
void SetChiSqFiltered(Float_t chiSq)
Definition BmnFitNode.h:58
const FairTrackParam * GetPredictedParam() const
Definition BmnFitNode.h:46
const TMatrixD GetF_matr() const
Definition BmnFitNode.h:45
FairTrackParam * GetUpdatedParam()
Definition BmnFitNode.h:47
STL namespace.