MINT2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MINT::MintFcn Class Reference

#include <MintFcn.h>

Inheritance diagram for MINT::MintFcn:

Public Member Functions

 MintFcn (IMinimisable *theFunction)
 
virtual double operator() (const std::vector< double > &par) const
 
void SetBestMin (const double &best_min)
 

Private Member Functions

virtual double Up () const
 

Private Attributes

IMinimisable_theFunction
 
const double _error_def = 1.0
 
double _best_min = 0.0
 

Detailed Description

Definition at line 12 of file MintFcn.h.

Constructor & Destructor Documentation

◆ MintFcn()

MINT::MintFcn::MintFcn ( IMinimisable theFunction)
inline

Constructor

Definition at line 18 of file MintFcn.h.

19  :_theFunction(theFunction)
20  {}
IMinimisable * _theFunction
Definition: MintFcn.h:53

Member Function Documentation

◆ operator()()

virtual double MINT::MintFcn::operator() ( const std::vector< double > &  par) const
inlinevirtual

Calculate test-statistic from Minuit2 fit parameter guesses

Definition at line 25 of file MintFcn.h.

26  {
27  for( unsigned int i=0; i<par.size(); ++i )
30 
31  const double negll = _theFunction->getVal()-_best_min;
32 
33  std::cout << std::setprecision(std::numeric_limits<double>::digits10);
34  std::cout << "-2logL = " << negll << std::endl;
35 
36  return negll;
37  }
double _best_min
Definition: MintFcn.h:57
IMinuitParameter * getParPtr(unsigned int i)
IMinimisable * _theFunction
Definition: MintFcn.h:53
virtual double getVal()=0
virtual MinuitParameterSet * getParSet()=0
virtual void parametersChanged()=0
virtual void setCurrentFitVal(double pval)=0

◆ SetBestMin()

void MINT::MintFcn::SetBestMin ( const double &  best_min)
inline

If minimisation fails due to edm being above tolerance, set the best known -2logL and reminimise

Definition at line 43 of file MintFcn.h.

44  { _best_min += best_min; }
double _best_min
Definition: MintFcn.h:57

◆ Up()

virtual double MINT::MintFcn::Up ( ) const
inlineprivatevirtual

Change in test-statistic that defines the uncertainty of fit parameters

Definition at line 50 of file MintFcn.h.

51  { return _error_def; }
const double _error_def
Definition: MintFcn.h:55

Member Data Documentation

◆ _best_min

double MINT::MintFcn::_best_min = 0.0
private

Definition at line 57 of file MintFcn.h.

◆ _error_def

const double MINT::MintFcn::_error_def = 1.0
private

Definition at line 55 of file MintFcn.h.

◆ _theFunction

IMinimisable* MINT::MintFcn::_theFunction
private

Definition at line 53 of file MintFcn.h.


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