fParam(0),
fParamLimits(0),
fCovar(0),
- fChi2(0)
+ fChi2(0),
+ fMaxCalls(0),
+ fPrecision(0)
{
//
// standard constructor
}
+AliTMinuitToolkit::AliTMinuitToolkit(const AliTMinuitToolkit&) :
+ TNamed(),
+ fFormula(0),
+ fWeightFunction(0),
+ fFitAlgorithm(0),
+ fPoints(0),
+ fParam(0),
+ fParamLimits(0),
+ fCovar(0),
+ fChi2(0),
+ fMaxCalls(0),
+ fPrecision(0)
+{
+
+
+}
+
+
+AliTMinuitToolkit& AliTMinuitToolkit::operator=(const AliTMinuitToolkit&) {
+
+ return *this;
+}
+
+
AliTMinuitToolkit::~AliTMinuitToolkit(){
//
// sort points for weighting
Double_t *sortList = new Double_t[npoints];
- Int_t *indexList = new Int_t[npoints];
+ Int_t *indexList = new Int_t[npoints];
- TVectorD *fWeight = new TVectorD(npoints);
+ TVectorD *Weight = new TVectorD(npoints);
for (Int_t ipoint=0; ipoint<npoints; ipoint++){
Double_t x[100];
Double_t t;
for (Int_t ipoint=0; ipoint<npoints; ipoint++){
t = indexList[ipoint]/(Double_t)npoints;
- (*fWeight)(ipoint) = fitter->GetWeightFunction()->Eval(t);
+ (*Weight)(ipoint) = fitter->GetWeightFunction()->Eval(t);
}
//
// calculate chisquare
Float_t funx = fitter->GetFormula()->EvalPar(x,gin);
Double_t delta = (*fitter->GetPoints())(ipoint, nvar) - funx;
- fchisq+= delta*delta*(*fWeight)(ipoint);
+ fchisq+= delta*delta*(*Weight)(ipoint);
}
- delete fWeight;
- delete [] sortList;
- delete [] indexList;
-
+ delete Weight;
+ delete sortList;
+ delete indexList;
}
TMatrixD * GetCovarianceMatrix() {return fCovar;};
private:
+ //
+ AliTMinuitToolkit(const AliTMinuitToolkit&); // fake copy constr. to suppress warnings
+ AliTMinuitToolkit& operator=(const AliTMinuitToolkit&); // fake -- suppress warnings
//
TFormula * fFormula; // formula of the fitted function
TFormula * fWeightFunction; // weight function, must be defined between 0 and 1