#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 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 }
|
|
||||||||||||||||||||||||||||
|
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 }
|
|
|
Definition at line 30 of file FitResult.h. 00030 {};
|
|
|
Definition at line 41 of file FitResult.h. Referenced by FitContext::FillNtpFitSA(). 00041 { return fChi2; };
|
|
|
Definition at line 42 of file FitResult.h. 00042 { return fdchi2; };
|
|
|
Definition at line 87 of file FitResult.cxx. References fFitErrM, and ftrackout. 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 }
|
|
||||||||||||
|
Definition at line 35 of file FitResult.h. 00035 { return fFitErrM(i,j); };
|
|
|
Definition at line 32 of file FitResult.h. Referenced by FitContext::FillNtpFitSA(). 00032 { return fFitErrM; };
|
|
|
Definition at line 38 of file FitResult.h. Referenced by FitContext::FillNtpFitSA(). 00038 { return ftrackout(i); };
|
|
|
Definition at line 102 of file FitResult.cxx. References fFitErrM. Referenced by FitContext::FillNtpFitSA(). 00103 {
00104 return pow( TMath::Max(TinyNumber,fFitErrM(i,i)), 0.5 );
00105 }
|
|
|
Definition at line 53 of file FitResult.h. Referenced by FitContext::FillNtpFitSA(). 00053 { return fNHits-5; };
|
|
|
Definition at line 51 of file FitResult.h. 00051 { return fNHits; };
|
|
|
Definition at line 48 of file FitResult.h. 00048 { return fNPlanes; };
|
|
|
Definition at line 73 of file FitResult.cxx. References ftrackout. 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 }
|
|
|
Definition at line 63 of file FitResult.cxx. References ftrackout, and Particle::Sign(). Referenced by FitContext::FillNtpFitSA(). 00064 {
00065 TracerSA trace("FitResult::GetQ()");
00066 return (Int_t) TMath::Sign(1., ftrackout[kQoverP]);
00067 }
|
|
|
Definition at line 36 of file FitResult.h. 00036 { return ftrackout(i); };
|
|
|
Definition at line 33 of file FitResult.h. Referenced by FitContext::FillNtpFitSA(), and FitContext::SetFromLastGoodFit(). 00033 { return ftrackout; };
|
|
|
Definition at line 52 of file FitResult.h. 00052 { fNHits = nhits; };
|
|
|
Definition at line 49 of file FitResult.h. 00049 { fNPlanes = nplanes; };
|
|
|
Definition at line 55 of file FitResult.h. Referenced by FitContext::SetLastGoodFitParams(). 00055 { ftrackout = fit; };
|
|
|
chisquare of the fit Definition at line 72 of file FitResult.h. |
|
|
chisquare between trackin and trackout Definition at line 77 of file FitResult.h. |
|
|
error matrix of the fit parameters (inverse of fFitCovM) Definition at line 62 of file FitResult.h. Referenced by GetEP(), and GetFitParameterError(). |
|
|
number of hit planes Definition at line 87 of file FitResult.h. |
|
|
number of planes Definition at line 82 of file FitResult.h. |
|
|
solution vector (u, du/dz, v, dv/dz, q/p) Definition at line 67 of file FitResult.h. |
1.3.9.1