#include <FitResult.h>
Public Member Functions | |
| FitResult () | |
| FitResult (const TMatrixD &fitErrMatrix, const TVectorD &fitParams, Double_t chi2, Double_t dchi2, Int_t nplanes, Int_t nhits) | |
| virtual | ~FitResult () |
| const TMatrixD & | GetFitErrM () const |
| const TVectorD & | GetTrackOut () const |
| Double_t | GetFitErrM (int i, int j) const |
| Double_t | GetTrackOut (int i) const |
| Double_t | GetFitParameter (int i) const |
| Double_t | GetFitParameterError (int i) const |
| Double_t | GetChi2 () const |
| Double_t | GetdChi2 () const |
| Int_t | GetQ () const |
| Double_t | GetP () const |
| Double_t | GetEP () const |
| int | GetNPlanes () const |
| void | SetNPlanes (Int_t nplanes) |
| int | GetNHits () const |
| void | SetNHits (Int_t nhits) |
| int | GetNdof () const |
| void | SetTrackOut (const TVectorD &fit) |
Private Attributes | |
| TMatrixD | fFitErrM |
| TVectorD | ftrackout |
| Double_t | fChi2 |
| Double_t | fdchi2 |
| Int_t | fNPlanes |
| Int_t | fNHits |
Definition at line 23 of file FitResult.h.
| FitResult::FitResult | ( | ) |
Definition at line 36 of file FitResult.cxx.
00036 : 00037 fFitErrM(NTrackParams, NTrackParams), 00038 ftrackout(NTrackParams), fChi2(0), fdchi2(0), 00039 fNPlanes(0), fNHits(0) 00040 { 00041 TracerSA trace("FitResult::FitResult()"); 00042 }
| FitResult::FitResult | ( | const TMatrixD & | fitErrMatrix, | |
| const TVectorD & | fitParams, | |||
| Double_t | chi2, | |||
| Double_t | dchi2, | |||
| Int_t | nplanes, | |||
| Int_t | nhits | |||
| ) |
Definition at line 48 of file FitResult.cxx.
00049 : 00050 fFitErrM(fitErrMatrix), ftrackout(fitParams), 00051 fChi2(chi2), fdchi2(dchi2), 00052 fNPlanes(nplanes), fNHits(nhits) 00053 { 00054 TracerSA trace( 00055 "FitResult::FitResult(const TMatrixD&,const TVectorD&,double,double,int)" 00056 ); 00057 }
| virtual FitResult::~FitResult | ( | ) | [inline, virtual] |
| Double_t FitResult::GetChi2 | ( | ) | const [inline] |
Definition at line 41 of file FitResult.h.
References fChi2.
Referenced by FitContext::FillNtpFitSA().
00041 { return fChi2; };
| Double_t FitResult::GetdChi2 | ( | ) | const [inline] |
| Double_t FitResult::GetEP | ( | ) | const |
Definition at line 87 of file FitResult.cxx.
References fFitErrM, ftrackout, ConstFT::kQoverP, and ConstFT::TinyNumber.
Referenced by FitContext::FillNtpFitSA().
00088 { 00089 TracerSA trace("FitResult::GetEP()"); 00090 if ( fFitErrM[kQoverP][kQoverP] > TinyNumber && 00091 TMath::Abs(ftrackout[kQoverP]) > TinyNumber ) { 00092 return pow(ftrackout[kQoverP],-2)*sqrt(fFitErrM[kQoverP][kQoverP]); 00093 } else { 00094 return -1.; 00095 } 00096 }
| Double_t FitResult::GetFitErrM | ( | int | i, | |
| int | j | |||
| ) | const [inline] |
| const TMatrixD& FitResult::GetFitErrM | ( | ) | const [inline] |
Definition at line 32 of file FitResult.h.
References fFitErrM.
Referenced by FitContext::FillNtpFitSA().
00032 { return fFitErrM; };
| Double_t FitResult::GetFitParameter | ( | int | i | ) | const [inline] |
Definition at line 38 of file FitResult.h.
References ftrackout.
Referenced by FitContext::FillNtpFitSA().
00038 { return ftrackout(i); };
| Double_t FitResult::GetFitParameterError | ( | int | i | ) | const |
Definition at line 102 of file FitResult.cxx.
References fFitErrM, and ConstFT::TinyNumber.
Referenced by FitContext::FillNtpFitSA().
00103 { 00104 return pow( TMath::Max(TinyNumber,fFitErrM(i,i)), 0.5 ); 00105 }
| int FitResult::GetNdof | ( | ) | const [inline] |
Definition at line 53 of file FitResult.h.
References fNHits.
Referenced by FitContext::FillNtpFitSA().
00053 { return fNHits-5; };
| int FitResult::GetNHits | ( | ) | const [inline] |
| int FitResult::GetNPlanes | ( | ) | const [inline] |
| Double_t FitResult::GetP | ( | ) | const |
Definition at line 73 of file FitResult.cxx.
References ftrackout, ConstFT::kQoverP, and ConstFT::TinyNumber.
Referenced by FitContext::FillNtpFitSA().
00074 { 00075 TracerSA trace("FitResult::GetP()"); 00076 if ( TMath::Abs(ftrackout[kQoverP]) > TinyNumber ) { 00077 return TMath::Abs(1./ftrackout[kQoverP]); 00078 } else { 00079 return -1.; 00080 } 00081 }
| Int_t FitResult::GetQ | ( | ) | const |
Definition at line 63 of file FitResult.cxx.
References ftrackout, ConstFT::kQoverP, and Particle::Sign().
Referenced by FitContext::FillNtpFitSA().
00064 { 00065 TracerSA trace("FitResult::GetQ()"); 00066 return (Int_t) TMath::Sign(1., ftrackout[kQoverP]); 00067 }
| Double_t FitResult::GetTrackOut | ( | int | i | ) | const [inline] |
| const TVectorD& FitResult::GetTrackOut | ( | ) | const [inline] |
Definition at line 33 of file FitResult.h.
References ftrackout.
Referenced by FitContext::FillNtpFitSA(), and FitContext::SetFromLastGoodFit().
00033 { return ftrackout; };
| void FitResult::SetNHits | ( | Int_t | nhits | ) | [inline] |
| void FitResult::SetNPlanes | ( | Int_t | nplanes | ) | [inline] |
| void FitResult::SetTrackOut | ( | const TVectorD & | fit | ) | [inline] |
Definition at line 55 of file FitResult.h.
References ftrackout.
Referenced by FitContext::SetLastGoodFitParams().
00055 { ftrackout = fit; };
Double_t FitResult::fChi2 [private] |
Double_t FitResult::fdchi2 [private] |
chisquare between trackin and trackout
Definition at line 77 of file FitResult.h.
Referenced by GetdChi2().
TMatrixD FitResult::fFitErrM [private] |
error matrix of the fit parameters (inverse of fFitCovM)
Definition at line 55 of file FitResult.h.
Referenced by GetEP(), GetFitErrM(), and GetFitParameterError().
Int_t FitResult::fNHits [private] |
number of hit planes
Definition at line 87 of file FitResult.h.
Referenced by GetNdof(), GetNHits(), and SetNHits().
Int_t FitResult::fNPlanes [private] |
number of planes
Definition at line 82 of file FitResult.h.
Referenced by GetNPlanes(), and SetNPlanes().
TVectorD FitResult::ftrackout [private] |
solution vector (u, du/dz, v, dv/dz, q/p)
Definition at line 67 of file FitResult.h.
Referenced by GetEP(), GetFitParameter(), GetP(), GetQ(), GetTrackOut(), and SetTrackOut().
1.4.7