28 TGo4FitModel(iName,
"Template for user model",AddAmplitude)
30 for (Int_t n=0;n<iNPars;n++) {
31 TString s(
"Par"); s+=n;
38 Double_t pos = Parameters[0];
39 Double_t width = Parameters[1];
40 Double_t x = Coordinates[0];
41 return TMath::Exp(-0.5*(x-pos)*(x-pos)/width/width);
TGo4FitParameter * NewParameter(const char *Name, const char *Title, Double_t iValue=0., Bool_t Fixed=kFALSE, Int_t AtIndx=-1)
virtual Double_t UserFunction(Double_t *Coordinates, Double_t *Parameters)
TModelTemplate(const char *iName, Int_t iNPars, Bool_t AddAmplitude=kFALSE)