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

Class for defining a 2D DP histogram PDF. More...

#include <Lau2DHistDPPdf.hh>

Inheritance diagram for Lau2DHistDPPdf:
Lau2DAbsHistDPPdf Lau2DAbsDPPdf

Public Member Functions

 Lau2DHistDPPdf (const TH2 *hist, LauKinematics *kinematics, const LauVetoes *vetoes, Bool_t useInterpolation=kTRUE, Bool_t fluctuateBins=kFALSE, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE)
 Constructor. More...
 
virtual ~Lau2DHistDPPdf ()
 Destructor.
 
Double_t getHistNorm () const
 Retrieve PDF normalisation. More...
 
Double_t interpolateXY (Double_t x, Double_t y) const
 Perform the interpolation (unnormalised) More...
 
Double_t interpolateXYNorm (Double_t x, Double_t y) const
 Perform the interpolation and divide by the normalisation. More...
 
- Public Member Functions inherited from Lau2DAbsHistDPPdf
 Lau2DAbsHistDPPdf (LauKinematics *kinematics, const LauVetoes *vetoes, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE)
 Constructor. More...
 
virtual ~Lau2DAbsHistDPPdf ()
 Destructor.
 
Double_t getMaxHeight () const
 Retrieve maximum height of the PDF. More...
 
- Public Member Functions inherited from Lau2DAbsDPPdf
 Lau2DAbsDPPdf ()
 Constructor.
 
virtual ~Lau2DAbsDPPdf ()
 Destructor.
 

Protected Member Functions

Double_t getBinHistValue (Int_t xBinNo, Int_t yBinNo) const
 Get the bin content from the histogram. More...
 
void calcHistNorm ()
 Calculate the PDF normalisation.
 
void checkNormalisation ()
 Check the normalisation calculation.
 
- Protected Member Functions inherited from Lau2DAbsHistDPPdf
const LauKinematicsgetKinematics () const
 Get the kinematics object. More...
 
const LauVetoesgetVetoes () const
 Get the vetoes object. More...
 
void calcMaxHeight (TH2 *hist)
 Calculate maximum height. More...
 
void doBinFluctuation (TH2 *hist)
 Fluctuate the histogram bin contents in accordance with their errors. More...
 
Bool_t withinDPBoundaries (Double_t x, Double_t y) const
 Check whether the given co-ordinates are within the kinematic boundary. More...
 
void updateKinematics (Double_t x, Double_t y) const
 Update the current co-ordinates in the kinematic space. More...
 
void getUpperHalf (Double_t &x, Double_t &y) const
 If only using the upper half of the (symmetric) DP then transform into the correct half. More...
 

Private Member Functions

 Lau2DHistDPPdf (const Lau2DHistDPPdf &rhs)
 Copy constructor - not implemented.
 
Lau2DHistDPPdfoperator= (const Lau2DHistDPPdf &rhs)
 Copy assignment operator - not implemented.
 

Private Attributes

TH2 * hist_
 The underlying histogram.
 
Double_t minX_
 The histogram x-axis minimum.
 
Double_t maxX_
 The histogram x-axis maximum.
 
Double_t minY_
 The histogram y-axis minimum.
 
Double_t maxY_
 The histogram y-axis maximum.
 
Double_t rangeX_
 The histogram x-axis range.
 
Double_t rangeY_
 The histogram y-axis range.
 
Double_t binXWidth_
 The histogram x-axis bin width.
 
Double_t binYWidth_
 The histogram y-axis bin width.
 
Double_t invBinXWidth_
 The histogram x-axis inverse bin width.
 
Double_t invBinYWidth_
 The histogram y-axis inverse bin width.
 
Double_t maxHeight_
 The maximum height of 2D histogram.
 
Int_t nBinsX_
 The number of bins on the x-axis of the histogram.
 
Int_t nBinsY_
 The number of bins on the y-axis of the histogram.
 
Double_t norm_
 The histogram normalisation.
 
Bool_t useInterpolation_
 Control boolean for using the linear interpolation.
 

Detailed Description

Class for defining a 2D DP histogram PDF.

Class for defining a 2D DP histogram PDF. Employs linear interpolation to get the histogram value based on how far away a point in (x,y) is to nearby bin centres. The returned values are normalised to the total area. The histogram can be defined in the conventional DP (m13Sq vs m23Sq) or in the square DP.

Definition at line 47 of file Lau2DHistDPPdf.hh.

Constructor & Destructor Documentation

◆ Lau2DHistDPPdf()

Lau2DHistDPPdf::Lau2DHistDPPdf ( const TH2 *  hist,
LauKinematics kinematics,
const LauVetoes vetoes,
Bool_t  useInterpolation = kTRUE,
Bool_t  fluctuateBins = kFALSE,
Bool_t  useUpperHalfOnly = kFALSE,
Bool_t  squareDP = kFALSE 
)

Constructor.

Parameters
[in]histthe 2D DP histogram
[in]kinematicsthe current DP kinematics
[in]vetoesthe vetoes within the DP
[in]useInterpolationboolean flag to determine whether linear interpolation between bins should be used or simply the raw bin values
[in]fluctuateBinsboolean flag to determine whether the bin contents should be fluctuated in accordance with their errors (useful for systematic error evaluation). The seed for the random number generator used to fluctuate the bins should first be set using LauRandom::setSeed.
[in]useUpperHalfOnlyboolean flag to specify that the supplied histogram contains only the upper half of a symmetric DP (or lower half if using square DP coordinates)
[in]squareDPboolean flag to specify whether the supplied histogram is in square DP coordinates

Definition at line 41 of file Lau2DHistDPPdf.cc.

Member Function Documentation

◆ getBinHistValue()

Double_t Lau2DHistDPPdf::getBinHistValue ( Int_t  xBinNo,
Int_t  yBinNo 
) const
protected

Get the bin content from the histogram.

Parameters
[in]xBinNothe x-axis bin number
[in]yBinNothe y-axis bin number
Returns
the bin conent

Definition at line 167 of file Lau2DHistDPPdf.cc.

◆ getHistNorm()

Double_t Lau2DHistDPPdf::getHistNorm ( ) const
inlinevirtual

Retrieve PDF normalisation.

Returns
the normalisation factor

Implements Lau2DAbsHistDPPdf.

Definition at line 77 of file Lau2DHistDPPdf.hh.

◆ interpolateXY()

Double_t Lau2DHistDPPdf::interpolateXY ( Double_t  x,
Double_t  y 
) const
virtual

Perform the interpolation (unnormalised)

Parameters
[in]xthe x-axis value
[in]ythe y-aixs value
Returns
the unnormalised PDF value

Implements Lau2DAbsHistDPPdf.

Definition at line 196 of file Lau2DHistDPPdf.cc.

◆ interpolateXYNorm()

Double_t Lau2DHistDPPdf::interpolateXYNorm ( Double_t  x,
Double_t  y 
) const
virtual

Perform the interpolation and divide by the normalisation.

Parameters
[in]xthe x-axis abscissa value
[in]ythe y-axis abscissa value
Returns
the normalised PDF value

Implements Lau2DAbsHistDPPdf.

Definition at line 189 of file Lau2DHistDPPdf.cc.


The documentation for this class was generated from the following files: