14 #ifndef TSFUNC1DMODEL_H_
15 #define TSFUNC1DMODEL_H_
21 #include "TSVariable.h"
22 #include "TSParameter.h"
23 #include "TSFunction1D.h"
24 #include "TSFunction2D.h"
27 #include "TSArgList.h"
47 virtual double Eval(
double x,
double y=0)
const =0;
48 virtual double Eval()
const =0;
49 virtual double Evaluate()
const =0;
51 double GetNormalization()
const {
return fNormalization;}
52 int GetNumOfFuncs()
const {
return fNFuncs;}
53 int GetNumOfCoefs()
const {
return fNCoefs;}
54 bool HasCoefs()
const {
return fHasCoefs;}
58 bool IsLinear()
const {
return fIsLinear;}
59 bool IsTFormula()
const {
return fIsTFormula;}
61 TString GetFormula()
const {
return fExpr;}
62 TString GetTF1Formula()
const {
return fTF1Formula;}
66 void ResetNormalization()
const;
67 void SetNormalization(
double integral,
double binw_width_x=1,
double bin_width_y=1)
const;
93 static const int NMAX_FORMULA_VARS=30;
95 int func2ParamIndex[NMAX_FORMULA_VARS];
96 int coef2ParamIndex[NMAX_FORMULA_VARS];
103 mutable double fNormalization;
Definition: TSArgList.h:30
int fAnalyseModelFormula(TString expr, const TSArgSet &funcs, const TSArgSet &coeff)
Definition: TSFuncModel.cc:473
void NormalizeToHistogram(const TH1 &) const
Definition: TSFuncModel.cc:252
Definition: TSFunction1D.h:43
Definition: TSFuncModel.h:33
void NormalizeToIntegral(const TH1 &) const
Definition: TSFuncModel.cc:229
int fAddCoefficients(const TSArgSet &)
Definition: TSFuncModel.cc:329
Definition: TSParameter.h:39
int fAddFunctions(const TSArgSet &)
Definition: TSFuncModel.cc:377
Definition: TSFunction2D.h:27