00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ROOT_TF1Helper
00014 #define ROOT_TF1Helper
00015
00016 #include "TF1.h"
00017
00018 namespace ROOT {
00019
00020 namespace TF1Helper {
00021
00022 double IntegralError(TF1 * func, int dim, const double * a, const double * b, const double * params, const double * covmat, double eps);
00023
00024
00025
00026
00027 class TGradientParFunction {
00028
00029 public:
00030
00031 TGradientParFunction(int ipar, TF1 * f) :
00032 fPar(ipar),
00033 fFunc(f)
00034 {}
00035
00036 double operator() (double * x, double *) const
00037 {
00038
00039 return fFunc->GradientPar(fPar,x);
00040 }
00041
00042 private:
00043
00044 unsigned int fPar;
00045 mutable TF1 * fFunc;
00046 };
00047
00048
00049 }
00050
00051 }
00052
00053 #endif