laura is hosted by Hepforge, IPPP Durham
Laura++  v1r2
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 
48  Lau2DHistDP(const TH2* hist, const LauDaughters* daughters,
49  Bool_t useInterpolation = kTRUE, Bool_t fluctuateBins = kFALSE,
50  Double_t avEff = -1.0, Double_t avEffError = -1.0, Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
51 
53  virtual ~Lau2DHistDP();
54 
56 
61  Double_t interpolateXY(Double_t x, Double_t y) const;
62 
63  protected:
65 
70  Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const;
71 
72  private:
74  Lau2DHistDP( const Lau2DHistDP& rhs );
75 
77  Lau2DHistDP& operator=(const Lau2DHistDP& rhs);
78 
80  TH2* hist_;
81 
83  Double_t minX_;
85  Double_t maxX_;
87  Double_t minY_;
89  Double_t maxY_;
91  Double_t rangeX_;
93  Double_t rangeY_;
94 
96  Double_t binXWidth_;
98  Double_t binYWidth_;
99 
101  Int_t nBinsX_;
103  Int_t nBinsY_;
104 
107 
108  ClassDef(Lau2DHistDP,0) // 2D Histogram utility class for DP analyses
109 };
110 
111 #endif
Double_t minY_
The histogram y-axis minimum.
Definition: Lau2DHistDP.hh:87
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:103
Double_t binYWidth_
The histogram y-axis bin width.
Definition: Lau2DHistDP.hh:98
Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const
Get the raw bin content from the histogram.
Definition: Lau2DHistDP.cc:79
Double_t minX_
The histogram x-axis minimum.
Definition: Lau2DHistDP.hh:83
Double_t binXWidth_
The histogram x-axis bin width.
Definition: Lau2DHistDP.hh:96
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:97
Bool_t useInterpolation_
Control boolean for using the linear interpolation.
Definition: Lau2DHistDP.hh:106
Double_t maxX_
The histogram x-axis maximum.
Definition: Lau2DHistDP.hh:85
File containing declaration of Lau2DAbsHistDP class.
Double_t maxY_
The histogram y-axis maximum.
Definition: Lau2DHistDP.hh:89
Class for defining a 2D DP histogram.
Definition: Lau2DHistDP.hh:34
virtual ~Lau2DHistDP()
Destructor.
Definition: Lau2DHistDP.cc:73
Class for calculating 3-body kinematic quantities.
Int_t nBinsX_
The number of bins on the x-axis of the histogram.
Definition: Lau2DHistDP.hh:101
TH2 * hist_
The underlying histogram.
Definition: Lau2DHistDP.hh:80
Double_t rangeX_
The histogram x-axis range.
Definition: Lau2DHistDP.hh:91
Double_t rangeY_
The histogram y-axis range.
Definition: Lau2DHistDP.hh:93