GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FitModelPolynom.h
Go to the documentation of this file.
1 // $Id: TGo4FitModelPolynom.h 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4FITMODELPOLYNOM_H
15 #define TGO4FITMODELPOLYNOM_H
16 
17 #include "TGo4FitModel.h"
18 
19 class TArrayD;
20 
51  public:
52 
57 
62  TGo4FitModelPolynom(const char* iName, Double_t iOrderX = 0.);
63 
68  TGo4FitModelPolynom(const char* iName, Double_t iOrderX, Double_t iOrderY);
69 
74  TGo4FitModelPolynom(const char* iName, Double_t iOrderX, Double_t iOrderY, Double_t iOrderZ);
75 
80  TGo4FitModelPolynom(const char* iName, const TArrayD& iPolynomOrders);
81 
85  virtual ~TGo4FitModelPolynom();
86 
90  Double_t GetPolynomOrder(Int_t naxis);
91 
95  Int_t GetMaxNumAxis();
96 
100  Bool_t SetMaxNumAxis(Int_t numaxis);
101 
105  virtual void Print(Option_t* option) const;
106 
107  virtual Bool_t BeforeEval(Int_t NDimension);
108  virtual Double_t EvalN(const Double_t* v);
109  virtual void AfterEval();
110 
111 
112  protected:
113  TString GetOrderParName(Int_t naxis);
114 
115 
116  private:
117  void CreateOrdersPars(const Double_t* orders, Int_t startaxis, Int_t maxaxis, Int_t AtIndx = -1);
118 
122  Int_t Par_ndim;
123 
124 
128  TArrayD* fxAllOrders;
129 
130 
134  Double_t* Par_orders;
135 
137 };
138 #endif // TGO4FITMODELPOLYNOM_H
TString GetOrderParName(Int_t naxis)
virtual Bool_t BeforeEval(Int_t NDimension)
ClassDef(TGo4FitSlotList, 1)
Bool_t SetMaxNumAxis(Int_t numaxis)
virtual Double_t EvalN(const Double_t *v)
void CreateOrdersPars(const Double_t *orders, Int_t startaxis, Int_t maxaxis, Int_t AtIndx=-1)
Double_t GetPolynomOrder(Int_t naxis)
virtual void Print(Option_t *option) const