CbmRoot
|
#include <CbmStsKFTrackFitter.h>
Public Member Functions | |
CbmStsKFTrackFitter () | |
~CbmStsKFTrackFitter () | |
void | Init () |
Int_t | DoFit (CbmStsTrack *track, Int_t pidHypo=211) |
void | Extrapolate (CbmStsTrack *track, Double_t z, FairTrackParam *e_track) |
void | Extrapolate (FairTrackParam *trackPar, Double_t z, FairTrackParam *e_track) |
Double_t | GetChiToVertex (CbmStsTrack *track, CbmVertex *vtx=0) |
Double_t | FitToVertex (CbmStsTrack *track, CbmVertex *vtx, FairTrackParam *v_track) |
ClassDef (CbmStsKFTrackFitter, 1) | |
Private Member Functions | |
void | SetKFHits (CbmKFTrack &T, CbmStsTrack *track) |
Bool_t | CheckTrack (CbmKFTrack &T) |
CbmStsKFTrackFitter (const CbmStsKFTrackFitter &) | |
void | operator= (const CbmStsKFTrackFitter &) |
Private Attributes | |
std::vector< CbmKFStsHit > | fHits |
TClonesArray * | fMvdHitsArray |
TClonesArray * | fStsHitsArray |
Bool_t | fIsInitialised |
Definition at line 14 of file CbmStsKFTrackFitter.h.
CbmStsKFTrackFitter::CbmStsKFTrackFitter | ( | ) |
Default constructor
Definition at line 26 of file CbmStsKFTrackFitter.cxx.
|
inline |
Destructor
Definition at line 23 of file CbmStsKFTrackFitter.h.
|
private |
|
private |
Definition at line 216 of file CbmStsKFTrackFitter.cxx.
References finite(), CbmKFTrack::GetCovMatrix(), CbmKFTrack::GetMass(), CbmKFTrack::GetRefChi2(), CbmKFTrack::GetRefNDF(), CbmKFTrack::GetTrack(), and i.
Referenced by DoFit().
CbmStsKFTrackFitter::ClassDef | ( | CbmStsKFTrackFitter | , |
1 | |||
) |
|
virtual |
Fit given track using Kalman Filter algorithm
Implements CbmStsTrackFitter.
Definition at line 79 of file CbmStsKFTrackFitter.cxx.
References CheckTrack(), CbmKFTrackInterface::Fit(), CbmKFTrack::GetCovMatrix(), CbmKFTrack::GetRefChi2(), CbmKFTrack::GetRefNDF(), CbmKFTrack::GetStsTrack(), CbmKFTrack::GetTrack(), CbmKFTrack::GetTrackParam(), i, CbmTrack::SetFlag(), SetKFHits(), CbmTrack::SetParamLast(), CbmKFTrack::SetPID(), and CbmTrack::SetPidHypo().
Referenced by LxFinderTriplet::CalcInvMass(), LxFinder::CalcInvMass(), LxFinderTriplet::Exec(), CbmL1MuchFinder::Exec(), CbmL1MuchFinderQa::Exec(), CbmL1SttTrackFinder::Exec(), CbmStsFitPerformanceTask::Exec(), LxFinder::Exec(), and CbmLitFitQa::ProcessTrackParamsAtVertex().
|
virtual |
Extrapolate track to any Z position
track | already fitted STS track |
z | new z-position |
e_track | (return value) extrapolated track parameters |
Implements CbmStsTrackFitter.
Definition at line 134 of file CbmStsKFTrackFitter.cxx.
References CbmKFTrackInterface::Extrapolate(), CbmTrack::GetParamFirst(), CbmTrack::GetParamLast(), CbmTrack::GetPidHypo(), CbmKFTrack::GetTrackParam(), CbmKFTrackInterface::Propagate(), SetKFHits(), CbmKFTrack::SetPID(), CbmKFTrack::SetTrackParam(), and CbmKFTrackInterface::Smooth().
Referenced by LxFinderTriplet::CalcInvMass(), LxFinder::CalcInvMass(), CbmRichTrackExtrapolationKF::DoExtrapolation(), CbmEcalTrackingMuch::Exec(), LxFinderTriplet::Exec(), CbmAnaDimuonAnalysis::Exec(), CbmStsFitPerformanceTask::Exec(), LxFinder::Exec(), and CbmStsFitPerformanceTask::FillTrackHisto().
void CbmStsKFTrackFitter::Extrapolate | ( | FairTrackParam * | trackPar, |
Double_t | z, | ||
FairTrackParam * | e_track | ||
) |
Extrapolate track param. to any Z position
track | already fitted STS track |
z | new z-position |
e_track | (return value) extrapolated track parameters |
Definition at line 123 of file CbmStsKFTrackFitter.cxx.
References CbmKFTrackInterface::Extrapolate(), CbmKFTrack::GetTrackParam(), and CbmKFTrack::SetTrackParam().
Double_t CbmStsKFTrackFitter::FitToVertex | ( | CbmStsTrack * | track, |
CbmVertex * | vtx, | ||
FairTrackParam * | v_track | ||
) |
Fit track to a vertex
track | already fitted STS track |
vtx | vertex |
v_track | (return value) fitted track parameters |
retrun | sqrt(Chi^2/NDF) |
Definition at line 200 of file CbmStsKFTrackFitter.cxx.
References finite(), CbmKFTrackInterface::Fit2Vertex(), CbmKFTrack::GetRefChi2(), CbmKFTrack::GetRefNDF(), CbmKFTrack::GetTrackParam(), and sqrt().
Referenced by CbmKresFunctions::ChiToVertex(), CbmStsFitPerformanceTask::Exec(), CbmHadronAnalysis::ExecEvent(), CbmKresFunctions::FitToVertex(), CbmKresFunctions::FitToVertexAndGetChi(), and CbmLitFitQa::ProcessTrackParamsAtVertex().
Double_t CbmStsKFTrackFitter::GetChiToVertex | ( | CbmStsTrack * | track, |
CbmVertex * | vtx = 0 |
||
) |
Get normalized (in sigma's) impact parameter form vertex vtx if no vtx given, return deviation from primary vertex
Definition at line 164 of file CbmStsKFTrackFitter.cxx.
References CbmVertex::CovMatrix(), CbmKFTrackInterface::Extrapolate(), CbmKFTrack::GetCovMatrix(), CbmKFMath::getDeviation(), CbmKFTrack::GetTrack(), CbmVertex::GetX(), CbmVertex::GetY(), CbmVertex::GetZ(), and CbmKFTrack::SetStsTrack().
Referenced by LxFinderTriplet::CalcInvMass(), LxFinder::CalcInvMass(), CbmKresFunctions::ChiToVertex(), LxFinderTriplet::Exec(), CbmAnaDimuonAnalysis::Exec(), LxFinder::Exec(), CbmHadronAnalysis::ExecEvent(), CbmKresFunctions::FitToVertexAndGetChi(), and CbmLitFitQa::ProcessTrackParamsAtVertex().
|
virtual |
Initialisation
Reimplemented from CbmStsTrackFitter.
Definition at line 29 of file CbmStsKFTrackFitter.cxx.
References fIsInitialised, fMvdHitsArray, fStsHitsArray, and rootMgr.
Referenced by CbmAnaDimuonAnalysis::Init(), CbmLitTofQa::Init(), CbmLitFitQa::Init(), CbmAnaDielectronTask::Init(), CbmHadronAnalysis::Init(), CbmL1MuchFinder::ReInit(), CbmL1MuchFinderQa::ReInit(), CbmL1SttTrackFinder::ReInit(), CbmStsFitPerformanceTask::ReInit(), and SetKFHits().
|
private |
|
private |
Definition at line 52 of file CbmStsKFTrackFitter.cxx.
References CbmKFTrack::fHits, fHits, fIsInitialised, fMvdHitsArray, fStsHitsArray, CbmTrack::GetHitIndex(), CbmStsTrack::GetMvdHitIndex(), CbmStsTrack::GetNofHits(), CbmStsTrack::GetNofMvdHits(), i, and Init().
Referenced by DoFit(), and Extrapolate().
|
private |
Definition at line 70 of file CbmStsKFTrackFitter.h.
Referenced by SetKFHits().
|
private |
Definition at line 75 of file CbmStsKFTrackFitter.h.
Referenced by Init(), and SetKFHits().
|
private |
Definition at line 72 of file CbmStsKFTrackFitter.h.
Referenced by Init(), and SetKFHits().
|
private |
Definition at line 73 of file CbmStsKFTrackFitter.h.
Referenced by Init(), and SetKFHits().