CbmRoot
Loading...
Searching...
No Matches
CbmLitFitNode.h
Go to the documentation of this file.
1/* Copyright (C) 2008-2012 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
12#ifndef CBMLITFITNODE_H_
13#define CBMLITFITNODE_H_
14
16
17#include <vector>
18using std::vector;
19
27 public:
32 : fF(25, 0.)
36 , fChiSqFiltered(0.)
37 , fChiSqSmoothed(0.)
38 {
39 }
40
44 virtual ~CbmLitFitNode(){};
45
46 /* Getters */
47 const vector<litfloat>& GetF() const { return fF; }
53
54 /* Setters */
55 void SetF(const vector<litfloat>& F) { fF.assign(F.begin(), F.end()); }
57 void SetUpdatedParam(const CbmLitTrackParam* par) { fUpdatedParam = *par; }
59 void SetChiSqFiltered(litfloat chiSq) { fChiSqFiltered = chiSq; }
60 void SetChiSqSmoothed(litfloat chiSq) { fChiSqSmoothed = chiSq; }
61
62 private:
63 vector<litfloat> fF; // Transport matrix.
64
65 CbmLitTrackParam fPredictedParam; // Predicted track parameters.
66 CbmLitTrackParam fUpdatedParam; // Updated with KF track parameters.
67 CbmLitTrackParam fSmoothedParam; // Smoothed track parameters.
68
69 litfloat fChiSqFiltered; // Contribution to chi-square of updated track parameters and hit.
70 litfloat fChiSqSmoothed; // Contribution to chi-square of smoothed track parameters and hit.
71};
72
73#endif /*CBMLITFITNODE_H_*/
double litfloat
Definition CbmLitFloat.h:19
Data class for track parameters.
Data class for storage of fitted track parameters, transport matrix and chi-square on each detector s...
const CbmLitTrackParam * GetPredictedParam() const
const CbmLitTrackParam * GetSmoothedParam() const
void SetChiSqFiltered(litfloat chiSq)
CbmLitTrackParam fUpdatedParam
void SetUpdatedParam(const CbmLitTrackParam *par)
litfloat fChiSqFiltered
const CbmLitTrackParam * GetUpdatedParam() const
CbmLitFitNode()
Constructor.
litfloat GetChiSqFiltered() const
void SetSmoothedParam(const CbmLitTrackParam *par)
virtual ~CbmLitFitNode()
Destructor.
void SetF(const vector< litfloat > &F)
CbmLitTrackParam fSmoothedParam
litfloat fChiSqSmoothed
litfloat GetChiSqSmoothed() const
vector< litfloat > fF
void SetPredictedParam(const CbmLitTrackParam *par)
CbmLitTrackParam fPredictedParam
void SetChiSqSmoothed(litfloat chiSq)
const vector< litfloat > & GetF() const
Data class for track parameters.