simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
TSFuncModel1D.h
1 /*
2  * TSFuncModel1D.h
3  *
4  * Created on: Aug 7, 2014
5  * Author: Silvestro di Luise
6  * Silvestro.Di.Luise@cern.ch
7  *
8  */
9 
10 #ifndef TSFUNCMODEL1D_H_
11 #define TSFUNCMODEL1D_H_
12 
13 #include "TSFuncModel.h"
14 
15 /*
16  *
17  */
18 class TSFuncModel1D: public TSFuncModel {
19 
20 
21 
22 public:
23 
24  TSFuncModel1D() {};
25  TSFuncModel1D(TString name,TString title);
26  TSFuncModel1D(TString name,TString title,const TSArgList& set, const TSArgSet &coefs);
27  TSFuncModel1D(TString name,TString title,const TSArgList& set);
28  TSFuncModel1D(TString name,TString title,TString formula,const TSArgList& set, const TSArgSet &coefs);
29  TSFuncModel1D(TString name,TString title,TString formula,const TSArgList& set);
30  virtual ~TSFuncModel1D();
31 
32  virtual double Eval(double x, double y=0) const;
33  virtual double Eval() const;
34  virtual double Evaluate() const;
35 
36  double operator()(const double *x) const { return 0;}
37  double EvalFunctor(const double *x) const {return 0;}
38 
39 private:
40 
41  int fCheckFunctions();
42 
43  double fEvaluateLinear() const;
44  double fEvaluateTFormula() const;
45 
46 
47 };
48 
49 #endif /* TSFUNCMODEL1D_H_ */
Definition: TSFuncModel1D.h:18
Definition: TSArgList.h:30
Definition: TSFuncModel.h:33