|
Laura++
3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
|
Class for defining variations across a 2D DP using a spline.
More...
#include <Lau2DSplineDP.hh>
|
| Lau2DSplineDP (const TH2 *hist, const LauDaughters *daughters, Bool_t fluctuateBins=kFALSE, Double_t avEff=-1.0, Double_t avEffError=-1.0, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE) |
| Constructor. More...
|
|
| Lau2DSplineDP (const TH2 *hist, const TH2 *errorHi, const TH2 *errorLo, const LauDaughters *daughters, Bool_t fluctuateBins=kFALSE, Double_t avEff=-1.0, Double_t avEffError=-1.0, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE) |
| Constructor. More...
|
|
virtual | ~Lau2DSplineDP () |
| Destructor.
|
|
Double_t | interpolateXY (Double_t x, Double_t y) const |
| Perform the interpolation. More...
|
|
| Lau2DAbsHistDP (const LauDaughters *daughters, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE) |
| Constructor. More...
|
|
virtual | ~Lau2DAbsHistDP () |
| Copy constructor. More...
|
|
virtual Bool_t | usingSquareDP () const |
| Determine whether the histogram is defined in the square DP.
|
|
| Lau2DAbsDP () |
| Constructor.
|
|
virtual | ~Lau2DAbsDP () |
| Destructor.
|
|
|
void | doBinFluctuation (TH2 *hist) |
| Fluctuate the contents of each histogram bin independently, in accordance with their errors. More...
|
|
void | doBinFluctuation (TH2 *hist, const TH2 *errorHi, const TH2 *errorLo) |
| Fluctuate the contents of each histogram bin independently, in accordance with their errors. More...
|
|
void | raiseOrLowerBins (TH2 *hist, const Double_t avEff, const Double_t avEffError) |
| Rescale the histogram bin contents based on the desired average efficiency and its uncertainty. More...
|
|
Double_t | computeAverageContents (const TH2 *hist) const |
| Compute the average bin content for bins within the kinematic boundary. More...
|
|
Bool_t | withinDPBoundaries (Double_t x, Double_t y) const |
| Check whether the given co-ordinates are within the kinematic boundary. 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...
|
|
Class for defining variations across a 2D DP using a spline.
Class for defining variations across a 2D DP using a spline. Employs a 2D cubic spline to get the histogram value based on an input histogram. The returned values are not normalised to the total histogram area (useful for efficiency histograms for example). The histogram can be defined in the conventional DP (m13Sq vs m23Sq) or in the square DP.
Definition at line 49 of file Lau2DSplineDP.hh.
◆ Lau2DSplineDP() [1/2]
Lau2DSplineDP::Lau2DSplineDP |
( |
const TH2 * |
hist, |
|
|
const LauDaughters * |
daughters, |
|
|
Bool_t |
fluctuateBins = kFALSE , |
|
|
Double_t |
avEff = -1.0 , |
|
|
Double_t |
avEffError = -1.0 , |
|
|
Bool_t |
useUpperHalfOnly = kFALSE , |
|
|
Bool_t |
squareDP = kFALSE |
|
) |
| |
Constructor.
- Parameters
-
[in] | hist | the 2D DP histogram |
[in] | daughters | the daughter particles |
[in] | fluctuateBins | boolean 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] | avEff | the desired average efficiency - see Lau2DSplineDP::raiseOrLowerBins. The seed for the random number generator used to raise or lower the bins should first be set using LauRandom::setSeed. |
[in] | avEffError | the error on that efficiency - see Lau2DSplineDP::raiseOrLowerBins |
[in] | useUpperHalfOnly | boolean 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] | squareDP | boolean flag to specify whether the supplied histogram is in square DP coordinates |
Definition at line 43 of file Lau2DSplineDP.cc.
◆ Lau2DSplineDP() [2/2]
Lau2DSplineDP::Lau2DSplineDP |
( |
const TH2 * |
hist, |
|
|
const TH2 * |
errorHi, |
|
|
const TH2 * |
errorLo, |
|
|
const LauDaughters * |
daughters, |
|
|
Bool_t |
fluctuateBins = kFALSE , |
|
|
Double_t |
avEff = -1.0 , |
|
|
Double_t |
avEffError = -1.0 , |
|
|
Bool_t |
useUpperHalfOnly = kFALSE , |
|
|
Bool_t |
squareDP = kFALSE |
|
) |
| |
Constructor.
- Parameters
-
[in] | hist | the 2D DP histogram |
[in] | errorHi | the 2D DP histogram containing the upper uncertainty |
[in] | errorLo | the 2D DP histogram containing the lower uncertainty |
[in] | daughters | the daughter particles |
[in] | fluctuateBins | boolean 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] | avEff | the desired average efficiency - see Lau2DSplineDP::raiseOrLowerBins. The seed for the random number generator used to raise or lower the bins should first be set using LauRandom::setSeed. |
[in] | avEffError | the error on that efficiency - see Lau2DSplineDP::raiseOrLowerBins |
[in] | useUpperHalfOnly | boolean 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] | squareDP | boolean flag to specify whether the supplied histogram is in square DP coordinates |
Definition at line 74 of file Lau2DSplineDP.cc.
◆ interpolateXY()
Double_t Lau2DSplineDP::interpolateXY |
( |
Double_t |
x, |
|
|
Double_t |
y |
|
) |
| const |
|
virtual |
Perform the interpolation.
- Parameters
-
[in] | x | the x-axis value |
[in] | y | the y-aixs value |
- Returns
- the interpolated histogram value
Implements Lau2DAbsHistDP.
Definition at line 186 of file Lau2DSplineDP.cc.
The documentation for this class was generated from the following files:
|