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 TGO4FITMODELGAUSS1_H 00017 #define TGO4FITMODELGAUSS1_H 00018 #include "TGo4FitModel.h" 00019 00033 class TGo4FitModelGauss1 : public TGo4FitModel { 00034 public: 00035 00039 TGo4FitModelGauss1(); 00040 00045 TGo4FitModelGauss1(const char* iName, Double_t iPosition = 1., Double_t iWidth = 1., Int_t iNaxis = 0); 00046 00050 virtual ~TGo4FitModelGauss1(); 00051 00055 Int_t GetNumAxis() { return fiNaxis; } 00056 00060 void SetNumAxis(Int_t n) { if(n>=0) fiNaxis = n; } 00061 00065 virtual void Print(Option_t* option) const; 00066 00067 virtual Double_t Integral(); 00068 00069 virtual Bool_t BeforeEval(Int_t ndim); 00070 virtual Double_t EvalN(const Double_t* v); 00071 00072 protected: 00073 virtual Int_t GetPosParIndex(Int_t naxis) { return (naxis==fiNaxis) ? 1 : -1; } 00074 virtual Int_t GetWidthParIndex(Int_t naxis) { return (naxis==fiNaxis) ? 2 : -1; } 00075 00076 00080 Int_t fiNaxis; 00081 00082 private: 00083 00087 Double_t Par_x0; 00088 00089 00093 Double_t Par_k; 00094 00095 ClassDef(TGo4FitModelGauss1,1) 00096 }; 00097 #endif // TGO4FITMODELGAUSS1_H 00098 00099 //----------------------------END OF GO4 SOURCE FILE ---------------------