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