Go to the documentation of this file.
12 #include "FairRootManager.h"
14 #include "TClonesArray.h"
33 : fArrayTrdHit(0), fVerbose(1), fPid(211), fKfTrack(0) {
41 : fArrayTrdHit(0), fVerbose(verbose), fPid(pid), fKfTrack(0) {
64 FairRootManager*
rootMgr = FairRootManager::Instance();
66 cout <<
"-E- CbmTrdTrackFitterKF::Init : "
67 <<
" ROOT manager is not instantiated!" << endl;
74 cout <<
"-E- CbmTrdTrackFitterKF::Init : "
75 <<
" no TRD hit array!" << endl;
91 Int_t materialIndex = 0;
95 for (Int_t iHit = 0; iHit < pTrack->
GetNofHits(); iHit++) {
101 cout <<
"-E- CbmTrdTrackFitterKF::DoFit : "
102 <<
" empty TRD hit : " << hitIndex <<
", " << pHit << endl;
114 cout <<
" TRD hit : (" << pHit->
GetX() <<
", " << pHit->
GetY() <<
", "
115 << pHit->
GetZ() <<
") "
116 <<
" is added to track. matidx=" << materialIndex << endl;
123 *(
const_cast<FairTrackParam*
>(pTrack->
GetParamLast())));
138 *(
const_cast<FairTrackParam*
>(pTrack->
GetParamLast())));
151 vector<CbmKFHit*>::iterator it;
159 cout <<
"TRD track fitted. chi2/ndf = "
161 if (
fVerbose > 2) { cout << endl << endl; }
Double_t GetChiSq() const
const FairTrackParam * GetParamLast() const
Int_t DoFit(CbmTrdTrack *pTrack)
virtual Int_t GetNofHits() const
TClonesArray * fArrayTrdHit
void SetPID(Int_t pidHypo)
Double_t GetELoss() const
static FairRootManager * rootMgr
void GetTrackParam(FairTrackParam &track)
data class for a reconstructed Energy-4D measurement in the TRD
Double_t & GetRefChi2()
array[15] of covariance matrix
virtual ~CbmTrdTrackFitterKF()
Int_t & GetRefNDF()
Chi^2 after fit.
Int_t GetHitIndex(Int_t iHit) const
void Create(CbmTrdHit *hit)
void SetChiSq(Double_t chiSq)
Class for hits in TRD detector.
const FairTrackParam * GetParamFirst() const
ClassImp(CbmTrdTrackFitterKF)
void SetELoss(Double_t eLoss)
Int_t Fit(Bool_t downstream=1)
void SetTrackParam(const FairTrackParam &track)
std::vector< CbmKFHit * > fHits