20 #ifndef TSFUNCTION1D_H_
21 #define TSFUNCTION1D_H_
29 #include "TSVariable.h"
30 #include "TSParameter.h"
33 #include "TSBaseFunction.h"
54 virtual double Eval(
double x,
double y=0)
const;
55 virtual double Eval()
const;
56 virtual double Evaluate()
const {
return 0;};
57 virtual double EvalFunc(
double *x,
double *p)
const {
return Eval(x[0]);}
59 TGraph*
BuildGraphX(
double xmin,
double xmax,
int npts=300)
const;
60 TGraph*
BuildGraphX(
int npts=300,
double y=0)
const;
61 TF1* BuildTF1(TString name=
"",
int npx=300)
const;
63 virtual double ComputeIntegral()
const;
64 virtual double ComputeIntegral(
double xmin,
double xmax)
const;
66 TString GetAxisTitles()
const;
73 virtual double GetSigmaSpread()
const {
return 0;}
80 void fCacheX(
double val)
const {cached_x=val;}
81 double fGetCachedX()
const {
return cached_x;}
84 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