GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FitModelFromData.h
Go to the documentation of this file.
1 // $Id: TGo4FitModelFromData.h 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4FITMODELFROMDATA_H
15 #define TGO4FITMODELFROMDATA_H
16 
17 #include "TGo4FitModel.h"
18 
19 #include "TGo4FitSlot.h"
20 
21 class TGo4FitData;
22 class TH1;
23 
42  public:
43 
48 
53  TGo4FitModelFromData(const char* iName, TGo4FitData* iDataAsModel = 0, Bool_t Amplitude = kTRUE);
54 
60  TGo4FitModelFromData(const char* iName, TH1*, Bool_t iOwned = kFALSE, Bool_t Amplitude = kTRUE);
61 
66 
70  TGo4FitData* GetDataAsModel() const;
71 
75  void SetDataAsModel(TGo4FitData* iData, Bool_t iOwned);
76 
80  virtual void FillSlotList(TSeqCollection* list);
81 
85  virtual void Print(Option_t* option) const;
86 
87  virtual Bool_t BeforeEval(Int_t);
88  virtual Double_t EvalN(const Double_t* v) { return 0; }
89 
90  virtual Double_t EvaluateAtPoint(TGo4FitData* data, Int_t nbin, Bool_t UseRanges = kTRUE);
91  virtual Double_t EvaluateAtPoint(TGo4FitDataIter* iter, Bool_t UseRanges = kTRUE);
92  virtual void AfterEval();
93 
94  protected:
95 
99  virtual Bool_t Initialize(Int_t UseBuffers = -1);
100 
101  Double_t FindDataPoint(Int_t NumIndexes, const Int_t* Indexes);
102 
103 
109 
110  private:
112 
114 };
115 #endif // TGO4FITMODELFROMDATA_H
TGo4FitDataIter * fxIter
virtual void Print(Option_t *option) const
virtual Bool_t Initialize(Int_t UseBuffers=-1)
void SetDataAsModel(TGo4FitData *iData, Bool_t iOwned)
ClassDef(TGo4FitSlotList, 1)
virtual Double_t EvaluateAtPoint(TGo4FitData *data, Int_t nbin, Bool_t UseRanges=kTRUE)
virtual void FillSlotList(TSeqCollection *list)
Double_t FindDataPoint(Int_t NumIndexes, const Int_t *Indexes)
virtual Double_t EvalN(const Double_t *v)
TGo4FitData * GetDataAsModel() const
virtual Bool_t BeforeEval(Int_t)