BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFitNode.h
Go to the documentation of this file.
1/**
2 * \file BmnFitNode.h
3 * \author Andrey Lebedev <andrey.lebedev@gsi.de>
4 * \date 2008
5 * \brief Data class for storage of fitted track parameters, transport matrix and chi-square on each detector station.
6 */
7
8#ifndef BMNFITNODE_H_
9#define BMNFITNODE_H_
10
11#include "FairTrackParam.h"
12#include "TMatrixD.h"
13
14#include <vector>
15using namespace std;
16
17/**
18 * \class CbmLitFitNode
19 * \author Andrey Lebedev <andrey.lebedev@gsi.de>
20 * \date 2008
21 * \brief Data class for storage of fitted track parameters, transport matrix and chi-square on each detector station.
22 */
23class BmnFitNode
24{
25 public:
26 /**
27 * \brief Constructor.
28 */
30 : fF(25, 0.)
34 , fChiSqFiltered(0.)
35 , fChiSqSmoothed(0.)
36 {
37 fF_matr.ResizeTo(5, 5);
38 }
39
40 /**
41 * \brief Destructor.
42 */
43 virtual ~BmnFitNode() {};
44
45 /* Getters */
46 const vector<Double_t>& GetF() const { return fF; }
47 const TMatrixD GetF_matr() const { return fF_matr; }
48 const FairTrackParam* GetPredictedParam() const { return &fPredictedParam; }
49 FairTrackParam* GetUpdatedParam() { return &fUpdatedParam; }
50 FairTrackParam* GetSmoothedParam() { return &fSmoothedParam; }
53
54 /* Setters */
55 void SetF(const vector<Double_t>& F) { fF.assign(F.begin(), F.end()); }
56 void SetF_matr(const TMatrixD& F) { fF_matr = F; }
57 void SetPredictedParam(const FairTrackParam* par) { fPredictedParam = *par; }
58 void SetUpdatedParam(const FairTrackParam* par) { fUpdatedParam = *par; }
59 void SetSmoothedParam(const FairTrackParam* par) { fSmoothedParam = *par; }
60 void SetChiSqFiltered(Float_t chiSq) { fChiSqFiltered = chiSq; }
61 void SetChiSqSmoothed(Float_t chiSq) { fChiSqSmoothed = chiSq; }
62
63 private:
64 vector<Double_t> fF; // Transport matrix.
65
66 TMatrixD fF_matr; // Transport matrix.
67
68 FairTrackParam fPredictedParam; // Predicted track parameters.
69 FairTrackParam fUpdatedParam; // Updated with KF track parameters.
70 FairTrackParam fSmoothedParam; // Smoothed track parameters.
71
72 Float_t fChiSqFiltered; // Contribution to chi-square of updated track parameters and hit.
73 Float_t fChiSqSmoothed; // Contribution to chi-square of smoothed track parameters and hit.
74};
75
76#endif /*BMNFITNODE_H_*/
float Float_t
TMatrixT< Double_t > TMatrixD
Float_t fChiSqSmoothed
Definition BmnFitNode.h:73
void SetF(const vector< Double_t > &F)
Definition BmnFitNode.h:55
virtual ~BmnFitNode()
Destructor.
Definition BmnFitNode.h:43
void SetPredictedParam(const FairTrackParam *par)
Definition BmnFitNode.h:57
void SetChiSqSmoothed(Float_t chiSq)
Definition BmnFitNode.h:61
FairTrackParam fUpdatedParam
Definition BmnFitNode.h:69
Float_t fChiSqFiltered
Definition BmnFitNode.h:72
FairTrackParam fPredictedParam
Definition BmnFitNode.h:68
Float_t GetChiSqSmoothed() const
Definition BmnFitNode.h:52
vector< Double_t > fF
Definition BmnFitNode.h:64
FairTrackParam * GetSmoothedParam()
Definition BmnFitNode.h:50
void SetSmoothedParam(const FairTrackParam *par)
Definition BmnFitNode.h:59
BmnFitNode()
Constructor.
Definition BmnFitNode.h:29
Float_t GetChiSqFiltered() const
Definition BmnFitNode.h:51
void SetUpdatedParam(const FairTrackParam *par)
Definition BmnFitNode.h:58
TMatrixD fF_matr
Definition BmnFitNode.h:66
const vector< Double_t > & GetF() const
Definition BmnFitNode.h:46
void SetF_matr(const TMatrixD &F)
Definition BmnFitNode.h:56
void SetChiSqFiltered(Float_t chiSq)
Definition BmnFitNode.h:60
const FairTrackParam * GetPredictedParam() const
Definition BmnFitNode.h:48
const TMatrixD GetF_matr() const
Definition BmnFitNode.h:47
FairTrackParam fSmoothedParam
Definition BmnFitNode.h:70
FairTrackParam * GetUpdatedParam()
Definition BmnFitNode.h:49
Definition json.hpp:4446