Go to the documentation of this file.
10 #include "CbmTofHit.h"
12 #include "FairLogger.h"
13 #include "FairRootManager.h"
15 #include "TClonesArray.h"
33 : fArrayTofHit(0), fVerbose(1), fPid(211), fKfTrack(0) {
40 : fArrayTofHit(0), fVerbose(verbose), fPid(pid), fKfTrack(0) {
63 FairRootManager*
rootMgr = FairRootManager::Instance();
65 cout <<
"-E- CbmTofTrackFitterKF::Init : "
66 <<
" ROOT manager is not instantiated!" << endl;
73 cout <<
"-E- CbmTofTrackFitterKF::Init : "
74 <<
" no TOF hit array!" << endl;
84 LOG(debug1) <<
"CbmTofTrackFitterKF::DoFit starting ";
89 LOG(error) <<
"CbmTofTrackFitterKF::DoFit No fArrayTofHit ";
96 Int_t materialIndex = 0;
99 for (Int_t iHit = 0; iHit < pTrack->
GetNofHits(); iHit++) {
105 cout <<
"-E- CbmTofTrackFitterKF::DoFit : "
106 <<
" empty TOF hit : " << hitIndex <<
", " << pHit << endl;
117 LOG(debug) <<
" TOF hit : (" << pHit->
GetX() <<
", " << pHit->
GetY()
118 <<
", " << pHit->
GetZ() <<
") "
119 <<
" is added to track. matidx=" << materialIndex;
122 Double_t qpini = 0.1;
125 FairTrackParam* pParam = (FairTrackParam*) (pTrack->
GetParamLast());
126 pParam->SetQp(qpini);
128 *(
const_cast<FairTrackParam*
>(pTrack->
GetParamLast())));
142 *(
const_cast<FairTrackParam*
>(pTrack->
GetParamLast())));
150 vector<CbmKFHit*>::iterator it;
157 LOG(debug) <<
"CbmTofTrackFitterKF::DoFit: TOF track fitted. chi2/ndf = "
159 if (
fVerbose > 2) { cout << endl << endl; }
169 FairTrackParam* e_track) {
Int_t GetHitIndex(Int_t ind) const
void SetChiSq(Double_t chiSq)
void SetPID(Int_t pidHypo)
static FairRootManager * rootMgr
void GetTrackParam(FairTrackParam &track)
Provides information on attaching a TofHit to a TofTrack.
const FairTrackParam * GetParamFirst() const
Double_t & GetRefChi2()
array[15] of covariance matrix
Int_t & GetRefNDF()
Chi^2 after fit.
Int_t DoFit(CbmTofTracklet *pTrack)
void Extrapolate(const FairTrackParam *trackPar, Double_t z, FairTrackParam *e_track)
void Create(CbmTofHit *hit)
void SetKFHits(CbmKFTrack &T, CbmTofTracklet *track)
TClonesArray * fArrayTofHit
const FairTrackParam * GetParamLast() const
Double_t GetChiSq() const
ClassImp(CbmTofTrackFitterKF)
Int_t Fit(Bool_t downstream=1)
void SetTrackParam(const FairTrackParam &track)
std::vector< CbmKFHit * > fHits
Provides information on attaching a TofHit to a GlobalTrack.
virtual ~CbmTofTrackFitterKF()
Int_t Extrapolate(Double_t z, Double_t *QP0=0)
Access to i-th hit.