22 :
TGo4FitModel(), fxExpression(), fxPosIndex(), fxWidthIndex(), fxFormula(nullptr)
32 for (Int_t n = 0; n < iNPars; n++)
61 if ((num < 0) || (oldnum == num))
64 for (Int_t n = oldnum - 1; n >= num; n--)
67 for (Int_t n = oldnum; n < num; n++)
78 if (naxis >= oldsize) {
80 for (Int_t n = oldsize; n <
fxPosIndex.GetSize(); n++)
91 if (naxis >= oldsize) {
101 if ((naxis < 0) || (naxis >=
fxPosIndex.GetSize()))
116 res.Form(
"Par%d", n);
133 for (Int_t n = 0; n <
NumPars(); n++)
143 case 2:
return fxFormula->Eval(v[0], v[1]);
144 case 3:
return fxFormula->Eval(v[0], v[1], v[2]);
145 default:
return fxFormula->EvalPar(v,
nullptr);
163 std::cout <<
" Expression = " << *
fxExpression << std::endl;
164 for (Int_t naxis = 0; naxis <
fxPosIndex.GetSize(); naxis++) {
167 std::cout <<
" Position on " << naxis <<
" axis is " << par->GetName() << std::endl;
169 for (Int_t naxis = 0; naxis <
fxWidthIndex.GetSize(); naxis++) {
172 std::cout <<
" Width on " << naxis <<
" axis is " << par->GetName() << std::endl;
181 for (Int_t n = 0; n <
NumPars(); n++) {
187 fxFormula =
new TFormula(
"Expression", Expr);
191 std::cerr <<
"Error in formula: " <<
fxExpression.Data() <<
" code " << err << std::endl;
TGo4FitParameter * GetPar(Int_t n)
Int_t GetAmplIndex() const
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 RemovePar(const char *name)
virtual Bool_t Initialize(Int_t UseBuffers=-1)
Int_t GetParIndex(const TGo4FitParameter *par)
const char * GetParName(Int_t n)
TGo4FitParameter * GetAmplPar()