00001 // @(#)root/mathcore:$Id: TFitResult.h 31261 2009-11-18 07:31:51Z moneta $ 00002 // Author: David Gonzalez Maline Tue Nov 10 15:01:24 2009 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TFitResult 00013 #define ROOT_TFitResult 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TFitResult // 00018 // // 00019 // Provides a way to view the fit result and to store them. // 00020 // // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_TNamed 00025 #include "TNamed.h" 00026 #endif 00027 00028 #ifndef ROOT_FIT_FitResult 00029 #include "Fit/FitResult.h" 00030 #endif 00031 00032 #ifndef ROOT_TMatrixDSym 00033 #include "TMatrixDSym.h" 00034 #endif 00035 00036 class TFitResult:public TNamed, public ROOT::Fit::FitResult { 00037 00038 public: 00039 00040 // Default constructor for I/O 00041 TFitResult(int status = 0): TNamed("TFitResult","TFitResult"), 00042 ROOT::Fit::FitResult() { 00043 fStatus = status; 00044 }; 00045 00046 // constructor from an IFitResult 00047 TFitResult(const ROOT::Fit::FitResult& f): TNamed("TFitResult","TFitResult"), 00048 ROOT::Fit::FitResult(f) {}; 00049 00050 virtual ~TFitResult() {} 00051 00052 00053 virtual void Print(Option_t *option="") const; 00054 00055 TMatrixDSym GetCovarianceMatrix() const; 00056 00057 TMatrixDSym GetCorrelationMatrix() const; 00058 00059 private: 00060 ClassDef(TFitResult,1) // Class holding the result of the fit 00061 }; 00062 00063 #endif