|
Laura++
v3r3
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. More...
|
|
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. More...
|
|
| Lau2DAbsDP () |
| Constructor. More...
|
|
virtual | ~Lau2DAbsDP () |
| Destructor. More...
|
|
|
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...
|
|
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 34 of file Lau2DHistDP.hh.
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 30 of file Lau2DHistDP.cc.
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 74 of file Lau2DHistDP.cc.
Lau2DHistDP::~Lau2DHistDP |
( |
| ) |
|
|
virtual |
Copy constructor - not implemented.
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 183 of file Lau2DHistDP.cc.
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 201 of file Lau2DHistDP.cc.
Copy assignment operator - not implemented.
Double_t Lau2DHistDP::binXWidth_ |
|
private |
Double_t Lau2DHistDP::binYWidth_ |
|
private |
TH2* Lau2DHistDP::errorHi_ |
|
private |
The histogram containing the upper errors.
Definition at line 103 of file Lau2DHistDP.hh.
TH2* Lau2DHistDP::errorLo_ |
|
private |
The histogram containing the lower errors.
Definition at line 105 of file Lau2DHistDP.hh.
Double_t Lau2DHistDP::maxX_ |
|
private |
Double_t Lau2DHistDP::maxY_ |
|
private |
Double_t Lau2DHistDP::minX_ |
|
private |
Double_t Lau2DHistDP::minY_ |
|
private |
Int_t Lau2DHistDP::nBinsX_ |
|
private |
The number of bins on the x-axis of the histogram.
Definition at line 126 of file Lau2DHistDP.hh.
Int_t Lau2DHistDP::nBinsY_ |
|
private |
The number of bins on the y-axis of the histogram.
Definition at line 128 of file Lau2DHistDP.hh.
Double_t Lau2DHistDP::rangeX_ |
|
private |
Double_t Lau2DHistDP::rangeY_ |
|
private |
Bool_t Lau2DHistDP::useInterpolation_ |
|
private |
Control boolean for using the linear interpolation.
Definition at line 131 of file Lau2DHistDP.hh.
The documentation for this class was generated from the following files:
|