20 #ifndef TSFUNCTION1D_H_
21 #define TSFUNCTION1D_H_
29 #include "TSVariable.h"
30 #include "TSParameter.h"
33 #include "TSBaseFunction.h"
53 virtual double Eval(
double x,
double y=0)
const;
54 virtual double Eval()
const;
55 virtual double Evaluate()
const {
return 0;};
56 virtual double EvalFunc(
double *x,
double *p)
const {
return Eval(x[0]);}
58 TGraph*
BuildGraphX(
double xmin,
double xmax,
int npts=300)
const;
59 TGraph*
BuildGraphX(
int npts=300,
double y=0)
const;
60 TF1* BuildTF1(TString name=
"",
int npx=300)
const;
62 virtual double ComputeIntegral()
const;
63 virtual double ComputeIntegral(
double xmin,
double xmax)
const;
65 TString GetAxisTitles()
const;
72 virtual double GetSigmaSpread()
const {
return 0;}
79 void fCacheX(
double val)
const {cached_x=val;}
80 double fGetCachedX()
const {
return cached_x;}
83 mutable double cached_x;
Definition: TSVariable.h:55
Definition: TSFunction1D.h:43
Definition: TSBaseFunction.h:48
TGraph * BuildGraphX(double xmin, double xmax, int npts=300) const
Definition: TSFunction1D.cc:122