GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FitModelGauss2.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 TGO4FITMODELGAUSS2_H
15#define TGO4FITMODELGAUSS2_H
16
17#include "TGo4FitModel.h"
18
43 public:
44
49
55 TGo4FitModelGauss2(const char *iName, Double_t iPos1 = 1., Double_t iPos2 = 1.,
56 Double_t iWidth1 = 1., Double_t iWidth2 = 1., Double_t iCov12 = 0.,
57 Int_t iNaxis1 = 0, Int_t iNaxis2 = 1);
58
62 virtual ~TGo4FitModelGauss2();
63
67 Int_t GetNumAxis1() const { return fiNaxis1; }
68
72 Int_t GetNumAxis2() const { return fiNaxis2; }
73
77 Int_t SetNumAxis1(Int_t n) { return fiNaxis1 = n; }
78
82 Int_t SetNumAxis2(Int_t n) { return fiNaxis2 = n; }
83
87 void Print(Option_t *option = "") const override;
88
89 Bool_t BeforeEval(Int_t ndim) override;
90 Double_t EvalN(const Double_t *v) override;
91
92 protected:
93 Int_t GetPosParIndex(Int_t naxis) override { return (naxis == fiNaxis1) ? 1 : (naxis == fiNaxis2) ? 2 : -1; }
94 Int_t GetWidthParIndex(Int_t naxis) override { return (naxis == fiNaxis1) ? 3 : (naxis == fiNaxis2) ? 4 : -1; }
95
99 Int_t fiNaxis1{0};
100
104 Int_t fiNaxis2{0};
105
106 private:
107
111 Double_t Par_mu1{0};
112
116 Double_t Par_mu2{0};
117
121 Double_t Par_sig1{0};
122
126 Double_t Par_sig2{0};
127
131 Double_t Par_ro{0};
132
136 Double_t Par_mult{0};
137
138 ClassDefOverride(TGo4FitModelGauss2,1)
139};
140#endif // TGO4FITMODELGAUSS2_H
Two dimensional gaussian peak.
void Print(Option_t *option="") const override
Prints information to standard output.
Double_t Par_sig2
Temporary variable for EvalN() function.
Double_t Par_mu2
Temporary variable for EvalN() function.
Double_t Par_ro
Temporary variable for EvalN() function.
Double_t Par_sig1
Temporary variable for EvalN() function.
Int_t fiNaxis2
Number of second selected axis.
Bool_t BeforeEval(Int_t ndim) override
Prepares (if necessary) some intermediate variables to be able calculate values of model via EvalN() ...
Int_t GetNumAxis2() const
Return number of second selected axis.
Int_t GetWidthParIndex(Int_t naxis) override
Return index of parameter (if exist), which represent width of model component for given axis.
Int_t SetNumAxis2(Int_t n)
Sets number of second selected axis.
TGo4FitModelGauss2()
Default constructor.
Int_t fiNaxis1
Number of first selected axis.
virtual ~TGo4FitModelGauss2()
Destroys TGo4FitModelGauss2 object.
Double_t Par_mu1
Temporary variable for EvalN() function.
Double_t EvalN(const Double_t *v) override
Calculates value of model according current parameters values and provided axes values.
Double_t Par_mult
Temporary variable for EvalN() function.
Int_t GetPosParIndex(Int_t naxis) override
Return index of parameter (if exist), which represent position of model for given axis.
Int_t GetNumAxis1() const
Return number of first selected axis.
Int_t SetNumAxis1(Int_t n)
Sets number of first selected axis.
TGo4FitModel()
Default constructor.