laura is hosted by Hepforge, IPPP Durham
Laura++  v3r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.
Lau2DSplineDPPdf.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2004 - 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 
24 #ifndef LAU_2DSPLINE_DP_PDF
25 #define LAU_2DSPLINE_DP_PDF
26 
27 #include "Lau2DAbsHistDPPdf.hh"
28 
29 class TH2;
30 class Lau2DCubicSpline;
31 class LauKinematics;
32 class LauVetoes;
33 
35 
36  public:
38 
47  Lau2DSplineDPPdf(const TH2* hist, LauKinematics* kinematics, const LauVetoes* vetoes,
48  Bool_t fluctuateBins = kFALSE, Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
49 
51  virtual ~Lau2DSplineDPPdf();
52 
54 
57  Double_t getHistNorm() const {return norm_;}
58 
60 
65  Double_t interpolateXY(Double_t x, Double_t y) const;
66 
68 
73  Double_t interpolateXYNorm(Double_t x, Double_t y) const;
74 
75  protected:
77  void calcHistNorm();
78 
79  private:
81  Lau2DSplineDPPdf( const Lau2DSplineDPPdf& rhs );
82 
85 
87  Double_t maxHeight_;
88 
90  Double_t norm_;
91 
94 
95  ClassDef(Lau2DSplineDPPdf,0) // 2D Spline utility class for DP analyses
96 };
97 
98 #endif
Double_t interpolateXYNorm(Double_t x, Double_t y) const
Perform the interpolation and divide by the normalisation.
virtual ~Lau2DSplineDPPdf()
Destructor.
Lau2DCubicSpline * spline_
A 2D cubic spline generated from the histogram.
Class for defining a 2D cubic spline based on an input histogram.
Abstract base class for defining a variation across a 2D DP based on a histogram. ...
Double_t getHistNorm() const
Retrieve PDF normalisation.
Class for defining a 2D DP spline PDF.
void calcHistNorm()
Calculate the PDF normalisation.
File containing declaration of Lau2DAbsHistDPPdf class.
Lau2DSplineDPPdf & operator=(const Lau2DSplineDPPdf &rhs)
Copy assignment operator - not implemented.
Double_t maxHeight_
The maximum height of 2D histogram.
Class for calculating 3-body kinematic quantities.
Double_t interpolateXY(Double_t x, Double_t y) const
Perform the interpolation (unnormalised)
Double_t norm_
The histogram normalisation.
Class for defining vetoes within the Dalitz plot.
Definition: LauVetoes.hh:36
Lau2DSplineDPPdf(const TH2 *hist, LauKinematics *kinematics, const LauVetoes *vetoes, Bool_t fluctuateBins=kFALSE, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE)
Constructor.