NC::Fitter::MinuitForCallable Class Reference

#include <NCFitter.h>

List of all members.

Public Member Functions

 MinuitForCallable (const ICallableND *f, int numPars)
virtual Int_t Eval (Int_t, Double_t *, Double_t &fval, Double_t *par, Int_t flag)
 Override TMinuit's Eval function.

Protected Attributes

const ICallableNDfFunc
int fNumPar

Detailed Description

Definition at line 324 of file NCFitter.h.


Constructor & Destructor Documentation

NC::Fitter::MinuitForCallable::MinuitForCallable ( const ICallableND f,
int  numPars 
) [inline]

Definition at line 327 of file NCFitter.h.

00328       :fFunc(f), fNumPar(numPars){}


Member Function Documentation

Int_t NC::Fitter::MinuitForCallable::Eval ( Int_t  ,
Double_t *  ,
Double_t &  fval,
Double_t *  par,
Int_t  flag 
) [virtual]

Override TMinuit's Eval function.

  • so that this gets called as the minimization function. Forward to the functoid passed in the constructor.

Definition at line 1503 of file NCFitter.cxx.

01508   {
01509     // If we are being asked to do something that isn't just
01510     // calculate the function then we don't know how...
01511     assert(flag == 4);
01512     CoordNDim r(fNumPar);
01513     for(int n = 0; n < fNumPar; ++n) r[n] = par[n];
01514     CoordNDim junk;
01515     fval = fFunc->EvalAtEx(r, &junk);
01516     return 0;
01517   }


Member Data Documentation

Definition at line 337 of file NCFitter.h.

Definition at line 338 of file NCFitter.h.


The documentation for this class was generated from the following files:

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1