laura is hosted by Hepforge, IPPP Durham
Laura++  v3r0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauLinearPdf.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2006 - 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 
21 #ifndef LAU_LINEAR_PDF
22 #define LAU_LINEAR_PDF
23 
24 #include <vector>
25 
26 #include "TString.h"
27 #include "LauAbsPdf.hh"
28 
29 
30 class LauLinearPdf : public LauAbsPdf {
31 
32  public:
34 
40  LauLinearPdf(const TString& theVarName, const std::vector<LauAbsRValue*>& params, Double_t minAbscissa, Double_t maxAbscissa);
41 
43  virtual ~LauLinearPdf();
44 
46 
49  virtual void calcLikelihoodInfo(const LauAbscissas& abscissas);
50 
52 
54  virtual void calcNorm();
55 
57 
60  virtual void calcPDFHeight( const LauKinematics* kinematics );
61 
62 
63  protected:
64 
65  private:
67  LauLinearPdf(const LauLinearPdf& rhs);
68 
70  LauLinearPdf& operator=(const LauLinearPdf& rhs);
71 
74 
75  Bool_t posflag_;
76 
77  ClassDef(LauLinearPdf,0) // Define the Linear PDF
78 };
79 
80 #endif
Bool_t posflag_
Definition: LauLinearPdf.hh:75
virtual ~LauLinearPdf()
Destructor.
Definition: LauLinearPdf.cc:52
LauAbsRValue * slope_
Line slope.
Definition: LauLinearPdf.hh:73
virtual void calcNorm()
Calculate the normalisation.
Definition: LauLinearPdf.cc:88
Class for defining a straight line PDF.
Definition: LauLinearPdf.hh:30
LauLinearPdf & operator=(const LauLinearPdf &rhs)
Copy assignment operator (not implemented)
File containing declaration of LauAbsPdf class.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
Definition: LauLinearPdf.cc:94
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)=0
Calculate the likelihood (and all associated information) given value(s) of the abscissa(s) ...
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:41
Class for calculating 3-body kinematic quantities.
LauLinearPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, Double_t minAbscissa, Double_t maxAbscissa)
Constructor.
Pure abstract base class for defining a parameter containing an R value.
Definition: LauAbsRValue.hh:29
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:45
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
Definition: LauLinearPdf.cc:57