laura is hosted by Hepforge, IPPP Durham
Laura++  v2r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.
Lau2DHistDP.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 
25 #ifndef LAU_2DHIST_DP
26 #define LAU_2DHIST_DP
27 
28 #include "Lau2DAbsHistDP.hh"
29 
30 class TH2;
31 class LauDaughters;
32 class LauKinematics;
33 
34 class Lau2DHistDP : public Lau2DAbsHistDP {
35 
36  public:
38 
50  Lau2DHistDP(const TH2* hist, const LauDaughters* daughters,
51  Bool_t useInterpolation = kTRUE, Bool_t fluctuateBins = kFALSE,
52  Double_t avEff = -1.0, Double_t avEffError = -1.0, Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
53 
55 
69  Lau2DHistDP(const TH2* hist, const TH2* errorHi, const TH2* errorLo, const LauDaughters* daughters,
70  Bool_t useInterpolation = kTRUE, Bool_t fluctuateBins = kFALSE,
71  Double_t avEff = -1.0, Double_t avEffError = -1.0, Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
72 
74  virtual ~Lau2DHistDP();
75 
77 
82  Double_t interpolateXY(Double_t x, Double_t y) const;
83 
84  protected:
86 
91  Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const;
92 
93  private:
95  Lau2DHistDP( const Lau2DHistDP& rhs );
96 
98  Lau2DHistDP& operator=(const Lau2DHistDP& rhs);
99 
101  TH2* hist_;
103  TH2* errorHi_;
105  TH2* errorLo_;
106 
108  Double_t minX_;
110  Double_t maxX_;
112  Double_t minY_;
114  Double_t maxY_;
116  Double_t rangeX_;
118  Double_t rangeY_;
119 
121  Double_t binXWidth_;
123  Double_t binYWidth_;
124 
126  Int_t nBinsX_;
128  Int_t nBinsY_;
129 
132 
133  ClassDef(Lau2DHistDP,0) // 2D Histogram utility class for DP analyses
134 };
135 
136 #endif
Double_t minY_
The histogram y-axis minimum.
Definition: Lau2DHistDP.hh:112
Lau2DHistDP & operator=(const Lau2DHistDP &rhs)
Copy assignment operator - not implemented.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:33
Int_t nBinsY_
The number of bins on the y-axis of the histogram.
Definition: Lau2DHistDP.hh:128
Double_t binYWidth_
The histogram y-axis bin width.
Definition: Lau2DHistDP.hh:123
Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const
Get the raw bin content from the histogram.
Definition: Lau2DHistDP.cc:183
Double_t minX_
The histogram x-axis minimum.
Definition: Lau2DHistDP.hh:108
Double_t binXWidth_
The histogram x-axis bin width.
Definition: Lau2DHistDP.hh:121
Abstract base class for defining a variation across a 2D DP based on a histogram. ...
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.
Definition: Lau2DHistDP.cc:30
Double_t interpolateXY(Double_t x, Double_t y) const
Perform the interpolation.
Definition: Lau2DHistDP.cc:201
Bool_t useInterpolation_
Control boolean for using the linear interpolation.
Definition: Lau2DHistDP.hh:131
Double_t maxX_
The histogram x-axis maximum.
Definition: Lau2DHistDP.hh:110
File containing declaration of Lau2DAbsHistDP class.
Double_t maxY_
The histogram y-axis maximum.
Definition: Lau2DHistDP.hh:114
Class for defining a 2D DP histogram.
Definition: Lau2DHistDP.hh:34
virtual ~Lau2DHistDP()
Destructor.
Definition: Lau2DHistDP.cc:169
TH2 * errorLo_
The histogram containing the lower errors.
Definition: Lau2DHistDP.hh:105
Class for calculating 3-body kinematic quantities.
Int_t nBinsX_
The number of bins on the x-axis of the histogram.
Definition: Lau2DHistDP.hh:126
TH2 * errorHi_
The histogram containing the upper errors.
Definition: Lau2DHistDP.hh:103
TH2 * hist_
The underlying histogram.
Definition: Lau2DHistDP.hh:101
Double_t rangeX_
The histogram x-axis range.
Definition: Lau2DHistDP.hh:116
Double_t rangeY_
The histogram y-axis range.
Definition: Lau2DHistDP.hh:118