|
Laura++
3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
|
Class for defining a 2D DP histogram.
More...
#include <Lau2DHistDP.hh>
|
| Lau2DHistDP (const TH2 *hist, const LauDaughters *daughters, Bool_t useInterpolation=kTRUE, Bool_t fluctuateBins=kFALSE, Double_t avEff=-1.0, Double_t avEffError=-1.0, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE) |
| Constructor. More...
|
|
| Lau2DHistDP (const TH2 *hist, const TH2 *errorHi, const TH2 *errorLo, const LauDaughters *daughters, Bool_t useInterpolation=kTRUE, 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 | ~Lau2DHistDP () |
| 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.
|
|
|
Double_t | getBinHistValue (Int_t xBinNo, Int_t yBinNo) const |
| Get the raw bin content from the histogram. More...
|
|
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...
|
|
|
TH2 * | hist_ |
| The underlying histogram.
|
|
TH2 * | errorHi_ |
| The histogram containing the upper errors.
|
|
TH2 * | errorLo_ |
| The histogram containing the lower errors.
|
|
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.
|
|
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.
|
|
Bool_t | useInterpolation_ |
| Control boolean for using the linear interpolation.
|
|
Class for defining a 2D DP histogram.
Class for defining a 2D DP histogram. 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 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 48 of file Lau2DHistDP.hh.
◆ Lau2DHistDP() [1/2]
Lau2DHistDP::Lau2DHistDP |
( |
const TH2 * |
hist, |
|
|
const LauDaughters * |
daughters, |
|
|
Bool_t |
useInterpolation = kTRUE , |
|
|
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] | useInterpolation | boolean flag to determine whether linear interpolation between bins should be used or simply the raw bin values |
[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 Lau2DHistDP::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 Lau2DHistDP::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 42 of file Lau2DHistDP.cc.
◆ Lau2DHistDP() [2/2]
Lau2DHistDP::Lau2DHistDP |
( |
const TH2 * |
hist, |
|
|
const TH2 * |
errorHi, |
|
|
const TH2 * |
errorLo, |
|
|
const LauDaughters * |
daughters, |
|
|
Bool_t |
useInterpolation = kTRUE , |
|
|
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] | useInterpolation | boolean flag to determine whether linear interpolation between bins should be used or simply the raw bin values |
[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 Lau2DHistDP::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 Lau2DHistDP::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 97 of file Lau2DHistDP.cc.
◆ getBinHistValue()
Double_t Lau2DHistDP::getBinHistValue |
( |
Int_t |
xBinNo, |
|
|
Int_t |
yBinNo |
|
) |
| const |
|
protected |
Get the raw bin content from the histogram.
- Parameters
-
[in] | xBinNo | the x-axis bin number |
[in] | yBinNo | the y-axis bin number |
- Returns
- the bin conent
Definition at line 226 of file Lau2DHistDP.cc.
◆ interpolateXY()
Double_t Lau2DHistDP::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 244 of file Lau2DHistDP.cc.
The documentation for this class was generated from the following files:
- /home/epp/phsdba/Development/Laura++/master-dev/laura/inc/Lau2DHistDP.hh
- /home/epp/phsdba/Development/Laura++/master-dev/laura/src/Lau2DHistDP.cc
|