25 :
TGo4FitModel(), fxLibraryName(), fxFunctionName(), fxUserFunction(nullptr), fxLibrary(nullptr)
34 for (Int_t n = 0; n < iNPars; n++)
39 Int_t iNPars, Bool_t AddAmplitude)
43 for (Int_t n = 0; n < iNPars; n++)
88 if ((num < 0) || (oldnum == num))
91 for (Int_t n = oldnum - 1; n >= num; n--)
94 for (Int_t n = oldnum; n < num; n++)
106 if (naxis >= oldsize) {
108 for (Int_t n = oldsize; n <
fxPosIndex.GetSize(); n++)
119 if (naxis >= oldsize) {
121 for (Int_t n = oldsize; n <
fxWidthIndex.GetSize(); n++)
129 if ((naxis < 0) || (naxis >=
fxPosIndex.GetSize()))
144 res.Form(
"Par%d", n);
186 std::cout <<
"TGo4FitModelFunction: user function not set" << std::endl;
197 std::cout <<
" TGo4FitModelFunction: failed to open " <<
fxLibraryName <<
", " << dlerror() << std::endl;
208 std::cout <<
" TGo4FitModelFunction: failed to find " <<
fxFunctionName <<
", " << dlerror() << std::endl;
248 std::cout <<
" Pointer on function " <<
fxUserFunction << std::endl;
249 for (Int_t naxis = 0; naxis <
fxPosIndex.GetSize(); naxis++) {
252 std::cout <<
" Position on " << naxis <<
" axis is " << par->GetName() << std::endl;
254 for (Int_t naxis = 0; naxis <
fxWidthIndex.GetSize(); naxis++) {
257 std::cout <<
" Width on " << naxis <<
" axis is " << par->GetName() << std::endl;
Int_t GetWidthParIndex(Int_t naxis) override
void SetUserFunction(TUserFunction iUserFunction)
Bool_t SetNumberOfFuncPar(Int_t num)
virtual ~TGo4FitModelFunction()
virtual TString GetFuncParName(Int_t n)
TGo4FitParameter * GetPar(Int_t n)
Int_t GetAmplIndex() const
void AfterEval() override
Bool_t BeforeEval(Int_t ndim) override
TGo4FitParameter * NewParameter(const char *Name, const char *Title, Double_t iValue=0., Bool_t Fixed=kFALSE, Int_t AtIndx=-1)
void Print(Option_t *option="") const override
Bool_t LoadLibrary(Bool_t CloseFirst)
Double_t UserFunction(Double_t *Coordinates, Double_t *Parameters) override
Int_t GetPosParIndex(Int_t naxis) override
Bool_t Initialize(Int_t UseBuffers=-1) override
void SetPosParIndex(Int_t naxis, Int_t indx=-1)
Double_t(* TUserFunction)(Double_t *, Double_t *)
Bool_t RemovePar(const char *name)
TGo4FitParameter * GetFuncPar(Int_t n)
void Print(Option_t *option="") const override
virtual Bool_t Initialize(Int_t UseBuffers=-1)
virtual Bool_t BeforeEval(Int_t ndim)
Int_t GetNumberOfFuncPar()
TUserFunction fxUserFunction
Int_t GetParIndex(const TGo4FitParameter *par)
void SetWidthParIndex(Int_t naxis, Int_t indx=-1)
TGo4FitParameter * GetAmplPar()