14#ifndef TGO4FITMODELFROMDATA_H
15#define TGO4FITMODELFROMDATA_H
66 TGo4FitModelFromData(
const char *iName, TH1 *, Bool_t iOwned = kFALSE, Bool_t Amplitude = kTRUE);
91 void Print(Option_t *option =
"")
const override;
94 Double_t
EvalN(
const Double_t*)
override {
return 0.; }
98 Double_t
EvaluateAtPoint(std::unique_ptr<TGo4FitDataIter> &iter, Bool_t UseRanges = kTRUE)
override;
105 Bool_t
Initialize(Int_t UseBuffers = -1)
override;
107 Double_t
FindDataPoint(Int_t NumIndexes,
const Int_t *Indexes);
Basic abstract class for representing data, which should be fitted.
~TGo4FitModelFromData()
Destroy TGo4FitModelFromData object.
void AfterEval() override
Clear buffers, which were created by BeforeEval() method.
Bool_t Initialize(Int_t UseBuffers=-1) override
Initialize object.
void FillSlotList(TSeqCollection *list) override
Add pointer on slot, which should contain TGo4FitData object, to a slots list.
Double_t EvalN(const Double_t *) override
Calculates value of model according current parameters values and provided axes values.
TGo4FitModelFromData()
Default constructor.
void SetDataAsModel(TGo4FitData *iData, Bool_t iOwned)
Sets pointer on TGo4FitData object with ownership flag.
Bool_t BeforeEval(Int_t) override
Prepares (if necessary) some intermediate variables to be able calculate values of model via EvalN() ...
Double_t FindDataPoint(Int_t NumIndexes, const Int_t *Indexes)
void Print(Option_t *option="") const override
Print information on standard output.
std::unique_ptr< TGo4FitDataIter > fxIter
Double_t EvaluateAtPoint(TGo4FitData *data, Int_t nbin, Bool_t UseRanges=kTRUE) override
Evaluate model value for specified data point.
TGo4FitData * GetDataAsModel() const
Return pointer on TGo4FitData object, which is used as model component.
TGo4FitSlot fxData
Slot for TGo4FitData object, which is used as model component.
TGo4FitModel()
Default constructor.
Managing pointers on specific objects.