CbmRoot
CbmLitFitNode.h
Go to the documentation of this file.
1 
8 #ifndef CBMLITFITNODE_H_
9 #define CBMLITFITNODE_H_
10 
11 #include "data/CbmLitTrackParam.h"
12 #include <vector>
13 using std::vector;
14 
22 public:
27  : fF(25, 0.)
28  , fPredictedParam()
29  , fUpdatedParam()
30  , fSmoothedParam()
31  , fChiSqFiltered(0.)
32  , fChiSqSmoothed(0.) {}
33 
37  virtual ~CbmLitFitNode() {};
38 
39  /* Getters */
40  const vector<litfloat>& GetF() const { return fF; }
42  const CbmLitTrackParam* GetUpdatedParam() const { return &fUpdatedParam; }
43  const CbmLitTrackParam* GetSmoothedParam() const { return &fSmoothedParam; }
46 
47  /* Setters */
48  void SetF(const vector<litfloat>& F) { fF.assign(F.begin(), F.end()); }
50  fPredictedParam = *par;
51  }
52  void SetUpdatedParam(const CbmLitTrackParam* par) { fUpdatedParam = *par; }
53  void SetSmoothedParam(const CbmLitTrackParam* par) { fSmoothedParam = *par; }
54  void SetChiSqFiltered(litfloat chiSq) { fChiSqFiltered = chiSq; }
55  void SetChiSqSmoothed(litfloat chiSq) { fChiSqSmoothed = chiSq; }
56 
57 private:
58  vector<litfloat> fF; // Transport matrix.
59 
60  CbmLitTrackParam fPredictedParam; // Predicted track parameters.
61  CbmLitTrackParam fUpdatedParam; // Updated with KF track parameters.
62  CbmLitTrackParam fSmoothedParam; // Smoothed track parameters.
63 
64  litfloat
65  fChiSqFiltered; // Contribution to chi-square of updated track parameters and hit.
66  litfloat
67  fChiSqSmoothed; // Contribution to chi-square of smoothed track parameters and hit.
68 };
69 
70 #endif /*CBMLITFITNODE_H_*/
CbmLitFitNode::fF
vector< litfloat > fF
Definition: CbmLitFitNode.h:58
CbmLitTrackParam.h
Data class for track parameters.
CbmLitFitNode::SetSmoothedParam
void SetSmoothedParam(const CbmLitTrackParam *par)
Definition: CbmLitFitNode.h:53
litfloat
double litfloat
Definition: CbmLitFloat.h:15
CbmLitFitNode::GetUpdatedParam
const CbmLitTrackParam * GetUpdatedParam() const
Definition: CbmLitFitNode.h:42
CbmLitFitNode::GetPredictedParam
const CbmLitTrackParam * GetPredictedParam() const
Definition: CbmLitFitNode.h:41
CbmLitTrackParam
Data class for track parameters.
Definition: CbmLitTrackParam.h:29
CbmLitFitNode::SetUpdatedParam
void SetUpdatedParam(const CbmLitTrackParam *par)
Definition: CbmLitFitNode.h:52
CbmLitFitNode::SetF
void SetF(const vector< litfloat > &F)
Definition: CbmLitFitNode.h:48
CbmLitFitNode::fChiSqFiltered
litfloat fChiSqFiltered
Definition: CbmLitFitNode.h:65
CbmLitFitNode::GetSmoothedParam
const CbmLitTrackParam * GetSmoothedParam() const
Definition: CbmLitFitNode.h:43
CbmLitFitNode::fPredictedParam
CbmLitTrackParam fPredictedParam
Definition: CbmLitFitNode.h:60
CbmLitFitNode::GetF
const vector< litfloat > & GetF() const
Definition: CbmLitFitNode.h:40
CbmLitFitNode::~CbmLitFitNode
virtual ~CbmLitFitNode()
Destructor.
Definition: CbmLitFitNode.h:37
CbmLitFitNode
Data class for storage of fitted track parameters, transport matrix and chi-square on each detector s...
Definition: CbmLitFitNode.h:21
CbmLitFitNode::fChiSqSmoothed
litfloat fChiSqSmoothed
Definition: CbmLitFitNode.h:67
CbmLitFitNode::fSmoothedParam
CbmLitTrackParam fSmoothedParam
Definition: CbmLitFitNode.h:62
CbmLitFitNode::GetChiSqFiltered
litfloat GetChiSqFiltered() const
Definition: CbmLitFitNode.h:44
CbmLitFitNode::GetChiSqSmoothed
litfloat GetChiSqSmoothed() const
Definition: CbmLitFitNode.h:45
CbmLitFitNode::SetChiSqFiltered
void SetChiSqFiltered(litfloat chiSq)
Definition: CbmLitFitNode.h:54
CbmLitFitNode::fUpdatedParam
CbmLitTrackParam fUpdatedParam
Definition: CbmLitFitNode.h:61
CbmLitFitNode::SetPredictedParam
void SetPredictedParam(const CbmLitTrackParam *par)
Definition: CbmLitFitNode.h:49
CbmLitFitNode::SetChiSqSmoothed
void SetChiSqSmoothed(litfloat chiSq)
Definition: CbmLitFitNode.h:55
CbmLitFitNode::CbmLitFitNode
CbmLitFitNode()
Constructor.
Definition: CbmLitFitNode.h:26