laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.

The interface to the Minuit fitter. More...

#include <LauMinuit.hh>

Inheritance diagram for LauMinuit:
LauAbsFitter

Public Member Functions

virtual ~LauMinuit ()=default
 Destructor.
 
virtual void initialise (LauFitObject *fitObj, const std::vector< LauParameter * > &parameters)
 Initialise the fitter, setting the information on the parameters. More...
 
virtual LauFitObjectgetFitObject ()
 Get the object that controls the calculation of the likelihood.
 
virtual UInt_t nParameters () const
 Get the total number of fit parameters.
 
virtual UInt_t nFreeParameters () const
 Get the number of floating fit parameters.
 
virtual Bool_t twoStageFit () const
 Determine whether the two-stage fit is enabled.
 
virtual void twoStageFit (Bool_t doTwoStageFit)
 Turn on or off the two stage fit. More...
 
virtual Bool_t useAsymmFitErrors () const
 Determine whether calculation of asymmetric errors is enabled.
 
virtual void useAsymmFitErrors (Bool_t useAsymmErrors)
 Turn on or off the computation of asymmetric errors (i.e. the MINOS routine) More...
 
virtual const FitStatusminimise ()
 Perform the minimisation of the fit function. More...
 
virtual void fixSecondStageParameters ()
 Fix parameters marked as "second stage".
 
virtual void releaseSecondStageParameters ()
 Release parameters marked as "second stage".
 
virtual void updateParameters ()
 Update the values and errors of the parameters based on the fit minimum.
 
virtual const TMatrixD & covarianceMatrix () const
 Retrieve the fit covariance matrix.
 
- Public Member Functions inherited from LauAbsFitter
virtual ~LauAbsFitter ()=default
 Destructor.
 

Private Member Functions

 LauMinuit (const UInt_t maxPar=100, const LauOutputLevel verbosity=LauOutputLevel::Standard)
 Constructor.
 
 LauMinuit (const LauMinuit &)=delete
 Copy constructor - private and not implemented.
 
 LauMinuit (LauMinuit &&)=delete
 Move constructor - private and not implemented.
 
LauMinuitoperator= (const LauMinuit &)=delete
 Copy assignment operator - private and not implemented.
 
LauMinuitoperator= (LauMinuit &&)=delete
 Move assignment operator - private and not implemented.
 

Private Attributes

TVirtualFitter * minuit_ { nullptr }
 The interface to Minuit.
 
const UInt_t maxPar_ { 100 }
 The maximum number of parameters.
 
const LauOutputLevel outputLevel_ { LauOutputLevel::Standard }
 The verbosity level of the fitter.
 
std::vector< LauParameter * > params_
 The fit parameters.
 
UInt_t nParams_ { 0 }
 The total number of parameters.
 
UInt_t nFreeParams_ { 0 }
 The number of free parameters.
 
Bool_t twoStageFit_ { kFALSE }
 Option to perform a two stage fit.
 
Bool_t useAsymmFitErrors_ { kFALSE }
 Option to use asymmetric errors.
 
FitStatus fitStatus_ { -1, 0.0, 0.0 }
 The status of the fit.
 
TMatrixD covMatrix_
 The covariance matrix.
 

Friends

class LauFitter
 Allow the factory class to access private methods.
 

Additional Inherited Members

- Protected Member Functions inherited from LauAbsFitter
 LauAbsFitter ()=default
 Constructor.
 

Detailed Description

The interface to the Minuit fitter.

The singleton interface to the Minuit fitter.

Definition at line 50 of file LauMinuit.hh.

Member Function Documentation

◆ initialise()

void LauMinuit::initialise ( LauFitObject fitObj,
const std::vector< LauParameter * > &  parameters 
)
virtual

Initialise the fitter, setting the information on the parameters.

Parameters
[in]fitObjthe object that controls the likelihood calculation
[in]parametersthe list of parameters of the fit

Implements LauAbsFitter.

Definition at line 67 of file LauMinuit.cc.

◆ minimise()

const LauAbsFitter::FitStatus & LauMinuit::minimise ( )
virtual

Perform the minimisation of the fit function.

Returns
the status code of the fit and the minimised value

Implements LauAbsFitter.

Definition at line 159 of file LauMinuit.cc.

◆ twoStageFit()

virtual void LauMinuit::twoStageFit ( Bool_t  doTwoStageFit)
inlinevirtual

Turn on or off the two stage fit.

The two-stage fit allows certain parameters to be fixed in one stage and floated in another stage of the fit. Can be used, for example, in a CP fit where the CP-parameters are fixed to zero in the first stage (while the CP-average parameters are determined), then floated in the second.

Parameters
[in]doTwoStageFitboolean specifying whether or not the two-stage fit should be enabled

Implements LauAbsFitter.

Definition at line 86 of file LauMinuit.hh.

◆ useAsymmFitErrors()

virtual void LauMinuit::useAsymmFitErrors ( Bool_t  useAsymmErrors)
inlinevirtual

Turn on or off the computation of asymmetric errors (i.e. the MINOS routine)

Parameters
[in]useAsymmErrorsboolean specifying whether or not the computation of asymmetric errors is enabled

Implements LauAbsFitter.

Definition at line 95 of file LauMinuit.hh.


The documentation for this class was generated from the following files:
  • /home/epp/phsdba/Development/Laura++/master-dev/laura/inc/LauMinuit.hh
  • /home/epp/phsdba/Development/Laura++/master-dev/laura/src/LauMinuit.cc