Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Fit/TGo4FitModelGauss2.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4FITMODELGAUSS2_H
00017 #define TGO4FITMODELGAUSS2_H
00018 #include "TGo4FitModel.h"
00019 
00040 class TGo4FitModelGauss2 : public TGo4FitModel {
00041    public:
00042 
00046       TGo4FitModelGauss2();
00047 
00053       TGo4FitModelGauss2(const char* iName, Double_t iPos1 = 1., Double_t iPos2 = 1.,
00054                                        Double_t iWidth1 = 1., Double_t iWidth2 = 1., Double_t iCov12 = 0.,
00055                                        Int_t iNaxis1 = 0, Int_t iNaxis2 = 1);
00056 
00060       virtual ~TGo4FitModelGauss2();
00061 
00065       Int_t GetNumAxis1() { return fiNaxis1; }
00066 
00070       Int_t GetNumAxis2() { return fiNaxis2; }
00071 
00075       Int_t SetNumAxis1(Int_t n) { return fiNaxis1 = n; }
00076 
00080       Int_t SetNumAxis2(Int_t n) { return fiNaxis2 = n; }
00081 
00085       virtual void Print(Option_t* option) const;
00086 
00087       virtual Bool_t BeforeEval(Int_t ndim);
00088       virtual Double_t EvalN(const Double_t* v);
00089 
00090    protected:
00091       virtual Int_t GetPosParIndex(Int_t naxis) { return (naxis==fiNaxis1) ? 1 : (naxis==fiNaxis2) ? 2 : -1; }
00092       virtual Int_t GetWidthParIndex(Int_t naxis) { return (naxis==fiNaxis1) ? 3 : (naxis==fiNaxis2) ? 4 : -1; }
00093 
00094 
00098       Int_t fiNaxis1;
00099 
00103       Int_t fiNaxis2;
00104 
00105    private:
00106 
00110       Double_t mu1;                
00111 
00112 
00116       Double_t mu2;                
00117 
00118 
00122       Double_t sig1;               
00123 
00124 
00128       Double_t sig2;               
00129 
00130 
00134       Double_t ro;                 
00135 
00136 
00140       Double_t mult;               
00141 
00142    ClassDef(TGo4FitModelGauss2,1)
00143 };
00144 #endif // TGO4FITMODELGAUSS2_H
00145 
00146 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:56 2005 for Go4-v2.10-5 by doxygen1.2.15