laura is hosted by Hepforge, IPPP Durham
Laura++  v2r1
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  virtual ~Lau2DHistDP();
56 
58 
63  Double_t interpolateXY(Double_t x, Double_t y) const;
64 
65  protected:
67 
72  Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const;
73 
74  private:
76  Lau2DHistDP( const Lau2DHistDP& rhs );
77 
79  Lau2DHistDP& operator=(const Lau2DHistDP& rhs);
80 
82  TH2* hist_;
83 
85  Double_t minX_;
87  Double_t maxX_;
89  Double_t minY_;
91  Double_t maxY_;
93  Double_t rangeX_;
95  Double_t rangeY_;
96 
98  Double_t binXWidth_;
100  Double_t binYWidth_;
101 
103  Int_t nBinsX_;
105  Int_t nBinsY_;
106 
109 
110  ClassDef(Lau2DHistDP,0) // 2D Histogram utility class for DP analyses
111 };
112 
113 #endif
Double_t minY_
The histogram y-axis minimum.
Definition: Lau2DHistDP.hh:89
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:105
Double_t binYWidth_
The histogram y-axis bin width.
Definition: Lau2DHistDP.hh:100
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:85
Double_t binXWidth_
The histogram x-axis bin width.
Definition: Lau2DHistDP.hh:98
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:108
Double_t maxX_
The histogram x-axis maximum.
Definition: Lau2DHistDP.hh:87
File containing declaration of Lau2DAbsHistDP class.
Double_t maxY_
The histogram y-axis maximum.
Definition: Lau2DHistDP.hh:91
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:103
TH2 * hist_
The underlying histogram.
Definition: Lau2DHistDP.hh:82
Double_t rangeX_
The histogram x-axis range.
Definition: Lau2DHistDP.hh:93
Double_t rangeY_
The histogram y-axis range.
Definition: Lau2DHistDP.hh:95