GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FitModelGauss1.h
Go to the documentation of this file.
1 // $Id$
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 fuer 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() const { return fiNaxis; }
55 
59  void SetNumAxis(Int_t n) { if(n >= 0) fiNaxis = n; }
60 
64  void Print(Option_t *option = "") const override;
65 
66  Double_t Integral() override;
67 
68  Bool_t BeforeEval(Int_t ndim) override;
69  Double_t EvalN(const Double_t *v) override;
70 
71  protected:
72  Int_t GetPosParIndex(Int_t naxis) override { return (naxis==fiNaxis) ? 1 : -1; }
73  Int_t GetWidthParIndex(Int_t naxis) override { return (naxis==fiNaxis) ? 2 : -1; }
74 
78  Int_t fiNaxis{0};
79 
80  private:
81 
85  Double_t Par_x0{0.};
86 
90  Double_t Par_k{0.};
91 
92  ClassDefOverride(TGo4FitModelGauss1,1)
93 };
94 
95 #endif // TGO4FITMODELGAUSS1_H
void Print(Option_t *option="") const override
Double_t EvalN(const Double_t *v) override
Int_t GetPosParIndex(Int_t naxis) override
Int_t GetWidthParIndex(Int_t naxis) override
Int_t GetNumAxis() const
Double_t Integral() override
void SetNumAxis(Int_t n)
Bool_t BeforeEval(Int_t ndim) override