TGo4FitModelGauss1.h

Go to the documentation of this file.
00001 // $Id: TGo4FitModelGauss1.h 478 2009-10-29 12:26:09Z linev $
00002 //-----------------------------------------------------------------------
00003 //       The GSI Online Offline Object Oriented (Go4) Project
00004 //         Experiment Data Processing at EE department, GSI
00005 //-----------------------------------------------------------------------
00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
00007 //                     Planckstr. 1, 64291 Darmstadt, Germany
00008 // Contact:            http://go4.gsi.de
00009 //-----------------------------------------------------------------------
00010 // This software can be used under the license agreements as stated
00011 // in Go4License.txt file which is part of the distribution.
00012 //-----------------------------------------------------------------------
00013 
00014 #ifndef TGO4FITMODELGAUSS1_H
00015 #define TGO4FITMODELGAUSS1_H
00016 
00017 #include "TGo4FitModel.h"
00018 
00032 class TGo4FitModelGauss1 : public TGo4FitModel {
00033    public:
00034 
00038       TGo4FitModelGauss1();
00039 
00044       TGo4FitModelGauss1(const char* iName, Double_t iPosition = 1., Double_t iWidth = 1., Int_t iNaxis = 0);
00045 
00049       virtual ~TGo4FitModelGauss1();
00050 
00054       Int_t GetNumAxis() { return fiNaxis; }
00055 
00059       void SetNumAxis(Int_t n) { if(n>=0) fiNaxis = n; }
00060 
00064       virtual void Print(Option_t* option) const;
00065 
00066       virtual Double_t Integral();
00067 
00068       virtual Bool_t BeforeEval(Int_t ndim);
00069       virtual Double_t EvalN(const Double_t* v);
00070 
00071    protected:
00072       virtual Int_t GetPosParIndex(Int_t naxis) { return (naxis==fiNaxis) ? 1 : -1; }
00073       virtual Int_t GetWidthParIndex(Int_t naxis) { return (naxis==fiNaxis) ? 2 : -1; }
00074 
00075 
00079       Int_t fiNaxis;
00080 
00081    private:
00082 
00086       Double_t Par_x0;            
00087 
00088 
00092       Double_t Par_k;             
00093 
00094    ClassDef(TGo4FitModelGauss1,1)
00095 };
00096 #endif // TGO4FITMODELGAUSS1_H

Generated on Thu Oct 28 15:54:12 2010 for Go4-Fitpackagev4.04-2 by  doxygen 1.5.1