ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TF1Helper.h
Go to the documentation of this file.
1
// @(#)root/hist:$Id$
2
// Author: Lorenzo Moneta 12/06/07
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2007 LCG ROOT Math Team, CERN/PH-SFT *
7
* *
8
* *
9
**********************************************************************/
10
11
// helper functions used internally by TF1
12
13
#ifndef ROOT_TF1Helper
14
#define ROOT_TF1Helper
15
16
#include "
TF1.h
"
17
18
namespace
ROOT {
19
20
namespace
TF1Helper {
21
22
double
IntegralError(TF1 * func,
int
dim,
const
double
* a,
const
double
* b,
const
double
* params,
const
double
* covmat,
double
eps);
23
24
/**
25
function class representing the derivative with respect a parameter of a given TF1
26
*/
27
class
TGradientParFunction {
28
29
public
:
30
31
TGradientParFunction(
int
ipar, TF1 * f) :
32
fPar(ipar),
33
fFunc(f)
34
{}
35
36
double
operator() (
double
* x,
double
*)
const
37
{
38
// evaluate gradient vector of functions at point x
39
return
fFunc->GradientPar(fPar,x);
40
}
41
42
private
:
43
44
unsigned
int
fPar;
45
mutable
TF1 * fFunc;
46
};
47
48
49
}
// end namespace TF1Helper
50
51
}
// end namespace TF1
52
53
#endif
TF1.h
hist
hist
src
TF1Helper.h
Generated on Tue May 5 2020 14:02:51 for ROOT by
1.8.5