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

TGo4FitModelFromData.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 TGO4FITMODELFROMDATA_H
00017 #define TGO4FITMODELFROMDATA_H
00018 
00019 #include "TGo4FitModel.h"
00020 
00021 #include "TGo4FitSlot.h"
00022 
00023 class TGo4FitData;
00024 class TH1;
00025 
00043 class TGo4FitModelFromData : public TGo4FitModel {
00044    public:
00045 
00049       TGo4FitModelFromData();
00050 
00055       TGo4FitModelFromData(const char* iName, TGo4FitData* iDataAsModel = 0, Bool_t Amplitude = kTRUE);
00056 
00062       TGo4FitModelFromData(const char* iName, TH1*, Bool_t iOwned = kFALSE, Bool_t Amplitude = kTRUE);
00063 
00067       ~TGo4FitModelFromData();
00068 
00072       TGo4FitData* GetDataAsModel() const;
00073 
00077       void SetDataAsModel(TGo4FitData* iData, Bool_t iOwned);
00078 
00082       virtual void FillSlotList(TSeqCollection* list);
00083 
00087       virtual void Print(Option_t* option) const;
00088 
00089       virtual Bool_t BeforeEval(Int_t);
00090       virtual Double_t EvalN(const Double_t* v) { return 0; }
00091 
00092       virtual Double_t EvaluateAtPoint(TGo4FitData* data, Int_t nbin, Bool_t UseRanges = kTRUE);
00093       virtual Double_t EvaluateAtPoint(TGo4FitDataIter* iter, Bool_t UseRanges = kTRUE);
00094       virtual void AfterEval();
00095 
00096    protected:
00097 
00101       virtual Bool_t Initialize(Int_t UseBuffers = -1);
00102 
00103       Double_t FindDataPoint(Int_t NumIndexes, const Int_t* Indexes);
00104 
00105 
00110       TGo4FitSlot fxData;
00111 
00112    private:
00113      TGo4FitDataIter* fxIter;       
00114 
00115    ClassDef(TGo4FitModelFromData,1)
00116 };
00117 #endif // TGO4FITMODELFROMDATA_H
00118 
00119 //----------------------------END OF GO4 SOURCE FILE ---------------------

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