Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4FitModelGauss2.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 
00019 #include "TGo4FitModel.h"
00020 
00041 class TGo4FitModelGauss2 : public TGo4FitModel {
00042    public:
00043 
00047       TGo4FitModelGauss2();
00048 
00054       TGo4FitModelGauss2(const char* iName, Double_t iPos1 = 1., Double_t iPos2 = 1.,
00055                                        Double_t iWidth1 = 1., Double_t iWidth2 = 1., Double_t iCov12 = 0.,
00056                                        Int_t iNaxis1 = 0, Int_t iNaxis2 = 1);
00057 
00061       virtual ~TGo4FitModelGauss2();
00062 
00066       Int_t GetNumAxis1() { return fiNaxis1; }
00067 
00071       Int_t GetNumAxis2() { return fiNaxis2; }
00072 
00076       Int_t SetNumAxis1(Int_t n) { return fiNaxis1 = n; }
00077 
00081       Int_t SetNumAxis2(Int_t n) { return fiNaxis2 = n; }
00082 
00086       virtual void Print(Option_t* option) const;
00087 
00088       virtual Bool_t BeforeEval(Int_t ndim);
00089       virtual Double_t EvalN(const Double_t* v);
00090 
00091    protected:
00092       virtual Int_t GetPosParIndex(Int_t naxis) { return (naxis==fiNaxis1) ? 1 : (naxis==fiNaxis2) ? 2 : -1; }
00093       virtual Int_t GetWidthParIndex(Int_t naxis) { return (naxis==fiNaxis1) ? 3 : (naxis==fiNaxis2) ? 4 : -1; }
00094 
00095 
00099       Int_t fiNaxis1;
00100 
00104       Int_t fiNaxis2;
00105 
00106    private:
00107 
00111       Double_t Par_mu1;                
00112 
00113 
00117       Double_t Par_mu2;                
00118 
00119 
00123       Double_t Par_sig1;               
00124 
00125 
00129       Double_t Par_sig2;               
00130 
00131 
00135       Double_t Par_ro;                 
00136 
00137 
00141       Double_t Par_mult;               
00142 
00143    ClassDef(TGo4FitModelGauss2,1)
00144 };
00145 #endif // TGO4FITMODELGAUSS2_H
00146 
00147 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:12 2008 for Go4-v3.04-1 by  doxygen 1.4.2