GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FitModelGauss2.h
Go to the documentation of this file.
1 // $Id: TGo4FitModelGauss2.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 TGO4FITMODELGAUSS2_H
15 #define TGO4FITMODELGAUSS2_H
16 
17 #include "TGo4FitModel.h"
18 
40  public:
41 
46 
52  TGo4FitModelGauss2(const char* iName, Double_t iPos1 = 1., Double_t iPos2 = 1.,
53  Double_t iWidth1 = 1., Double_t iWidth2 = 1., Double_t iCov12 = 0.,
54  Int_t iNaxis1 = 0, Int_t iNaxis2 = 1);
55 
59  virtual ~TGo4FitModelGauss2();
60 
64  Int_t GetNumAxis1() { return fiNaxis1; }
65 
69  Int_t GetNumAxis2() { return fiNaxis2; }
70 
74  Int_t SetNumAxis1(Int_t n) { return fiNaxis1 = n; }
75 
79  Int_t SetNumAxis2(Int_t n) { return fiNaxis2 = n; }
80 
84  virtual void Print(Option_t* option) const;
85 
86  virtual Bool_t BeforeEval(Int_t ndim);
87  virtual Double_t EvalN(const Double_t* v);
88 
89  protected:
90  virtual Int_t GetPosParIndex(Int_t naxis) { return (naxis==fiNaxis1) ? 1 : (naxis==fiNaxis2) ? 2 : -1; }
91  virtual Int_t GetWidthParIndex(Int_t naxis) { return (naxis==fiNaxis1) ? 3 : (naxis==fiNaxis2) ? 4 : -1; }
92 
93 
97  Int_t fiNaxis1;
98 
102  Int_t fiNaxis2;
103 
104  private:
105 
109  Double_t Par_mu1;
110 
111 
115  Double_t Par_mu2;
116 
117 
121  Double_t Par_sig1;
122 
123 
127  Double_t Par_sig2;
128 
129 
133  Double_t Par_ro;
134 
135 
139  Double_t Par_mult;
140 
142 };
143 #endif // TGO4FITMODELGAUSS2_H
virtual Double_t EvalN(const Double_t *v)
Int_t SetNumAxis1(Int_t n)
Int_t SetNumAxis2(Int_t n)
ClassDef(TGo4FitSlotList, 1)
virtual void Print(Option_t *option) const
virtual Int_t GetWidthParIndex(Int_t naxis)
virtual Int_t GetPosParIndex(Int_t naxis)
virtual Bool_t BeforeEval(Int_t ndim)