GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FitModelGauss1.h
Go to the documentation of this file.
1 // $Id: TGo4FitModelGauss1.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 TGO4FITMODELGAUSS1_H
15 #define TGO4FITMODELGAUSS1_H
16 
17 #include "TGo4FitModel.h"
18 
33  public:
34 
39 
44  TGo4FitModelGauss1(const char* iName, Double_t iPosition = 1., Double_t iWidth = 1., Int_t iNaxis = 0);
45 
49  virtual ~TGo4FitModelGauss1();
50 
54  Int_t GetNumAxis() { return fiNaxis; }
55 
59  void SetNumAxis(Int_t n) { if(n>=0) fiNaxis = n; }
60 
64  virtual void Print(Option_t* option) const;
65 
66  virtual Double_t Integral();
67 
68  virtual Bool_t BeforeEval(Int_t ndim);
69  virtual Double_t EvalN(const Double_t* v);
70 
71  protected:
72  virtual Int_t GetPosParIndex(Int_t naxis) { return (naxis==fiNaxis) ? 1 : -1; }
73  virtual Int_t GetWidthParIndex(Int_t naxis) { return (naxis==fiNaxis) ? 2 : -1; }
74 
75 
79  Int_t fiNaxis;
80 
81  private:
82 
86  Double_t Par_x0;
87 
88 
92  Double_t Par_k;
93 
95 };
96 #endif // TGO4FITMODELGAUSS1_H
virtual Bool_t BeforeEval(Int_t ndim)
virtual Double_t EvalN(const Double_t *v)
virtual Int_t GetWidthParIndex(Int_t naxis)
void SetNumAxis(Int_t n)
ClassDef(TGo4FitSlotList, 1)
virtual void Print(Option_t *option) const
virtual Int_t GetPosParIndex(Int_t naxis)
virtual Double_t Integral()