laura is hosted by Hepforge, IPPP Durham
Laura++  v3r1
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  // Setup a struct to store information on constrained fit parameters
78  TString formula_;
80  std::vector<TString> conPars_;
82  Double_t mean_;
84  Double_t width_;
85  };
86 
87  private:
89  LauFitObject(const LauFitObject& rhs);
90 
92  LauFitObject& operator=(const LauFitObject& rhs);
93 
94  ClassDef(LauFitObject,0)
95 };
96 
97 #endif
98 
Double_t width_
The width of the Gaussian constraint to be applied.
Definition: LauFitObject.hh:84
Double_t mean_
The mean value of the Gaussian constraint to be applied.
Definition: LauFitObject.hh:82
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.
TString formula_
The formula to be used in the LauFormulaPar.
Definition: LauFitObject.hh:78
Struct to store constraint information until the fit is run.
Definition: LauFitObject.hh:76
virtual void withinAsymErrorCalc(Bool_t inAsymErrCalc)=0
Mark that the fit is calculating asymmetric errors.
LauFitObject & operator=(const LauFitObject &rhs)
Copy assignment operator (not implemented)
std::vector< TString > conPars_
The list of LauParameter names to be used in the LauFormulaPar.
Definition: LauFitObject.hh:80
The abstract interface for the objects that control the calculation of the likelihood.
Definition: LauFitObject.hh:26