laura is hosted by Hepforge, IPPP Durham
Laura++  v2r2p1
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauFitObject.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2013 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
19 #ifndef LAU_FIT_OBJECT
20 #define LAU_FIT_OBJECT
21 
22 #include "TObject.h"
23 #include "TVirtualFitter.h"
24 
25 
26 class LauFitObject : public TObject {
27 
28  public:
30  virtual ~LauFitObject() {}
31 
33 
39  virtual void withinAsymErrorCalc(Bool_t inAsymErrCalc) = 0;
40 
42 
49  virtual void setParsFromMinuit(Double_t* par, Int_t npar) = 0;
50 
52 
56  virtual Double_t getTotNegLogLikelihood() = 0;
57 
59 
65  virtual void addConstraint(const TString& formula, const std::vector<TString>& pars, const Double_t mean, const Double_t width) = 0;
66 
67  protected:
69  LauFitObject() : TObject() {}
70 
71  private:
72  ClassDef(LauFitObject,0)
73 };
74 
75 #endif
76 
virtual Double_t getTotNegLogLikelihood()=0
Calculate the new value of the negative log likelihood.
LauFitObject()
Constructor.
Definition: LauFitObject.hh:69
virtual void setParsFromMinuit(Double_t *par, Int_t npar)=0
This function sets the parameter values from Minuit.
virtual ~LauFitObject()
Destructor.
Definition: LauFitObject.hh:30
virtual void addConstraint(const TString &formula, const std::vector< TString > &pars, const Double_t mean, const Double_t width)=0
Store constraint information for fit parameters.
virtual void withinAsymErrorCalc(Bool_t inAsymErrCalc)=0
Mark that the fit is calculating asymmetric errors.
The abstract interface for the objects that control the calculation of the likelihood.
Definition: LauFitObject.hh:26