laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
Lau2DHistDPPdf.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2004 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
38 #ifndef LAU_2DHIST_DP_PDF
39 #define LAU_2DHIST_DP_PDF
40 
41 #include "Lau2DAbsHistDPPdf.hh"
42 
43 class TH2;
44 class LauKinematics;
45 class LauVetoes;
46 
48 
49  public:
51 
61  Lau2DHistDPPdf(const TH2* hist, LauKinematics* kinematics, const LauVetoes* vetoes,
62  Bool_t useInterpolation = kTRUE, Bool_t fluctuateBins = kFALSE,
63  Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
64 
66  virtual ~Lau2DHistDPPdf();
67 
69 
72  Double_t getHistNorm() const {return norm_;}
73 
75 
80  Double_t interpolateXY(Double_t x, Double_t y) const;
81 
83 
88  Double_t interpolateXYNorm(Double_t x, Double_t y) const;
89 
90  protected:
92 
97  Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const;
98 
100  void calcHistNorm();
101 
103  void checkNormalisation();
104 
105  private:
107  Lau2DHistDPPdf( const Lau2DHistDPPdf& rhs );
108 
111 
113  TH2* hist_;
114 
116  Double_t minX_;
118  Double_t maxX_;
120  Double_t minY_;
122  Double_t maxY_;
124  Double_t rangeX_;
126  Double_t rangeY_;
127 
129  Double_t binXWidth_;
131  Double_t binYWidth_;
133  Double_t invBinXWidth_;
135  Double_t invBinYWidth_;
136 
138  Double_t maxHeight_;
139 
141  Int_t nBinsX_;
143  Int_t nBinsY_;
144 
146  Double_t norm_;
147 
150 
151  ClassDef(Lau2DHistDPPdf,0) // 2D Histogram utility class for DP analyses
152 };
153 
154 #endif
Double_t minY_
The histogram y-axis minimum.
Double_t maxHeight_
The maximum height of 2D histogram.
Double_t norm_
The histogram normalisation.
Double_t invBinYWidth_
The histogram y-axis inverse bin width.
Double_t rangeX_
The histogram x-axis range.
Double_t maxX_
The histogram x-axis maximum.
Double_t interpolateXYNorm(Double_t x, Double_t y) const
Perform the interpolation and divide by the normalisation.
Abstract base class for defining a variation across a 2D DP based on a histogram. ...
Class for defining a 2D DP histogram PDF.
Double_t getHistNorm() const
Retrieve PDF normalisation.
Int_t nBinsX_
The number of bins on the x-axis of the histogram.
Lau2DHistDPPdf & operator=(const Lau2DHistDPPdf &rhs)
Copy assignment operator - not implemented.
Lau2DHistDPPdf(const TH2 *hist, LauKinematics *kinematics, const LauVetoes *vetoes, Bool_t useInterpolation=kTRUE, Bool_t fluctuateBins=kFALSE, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE)
Constructor.
Double_t binXWidth_
The histogram x-axis bin width.
TH2 * hist_
The underlying histogram.
File containing declaration of Lau2DAbsHistDPPdf class.
void checkNormalisation()
Check the normalisation calculation.
Double_t minX_
The histogram x-axis minimum.
virtual ~Lau2DHistDPPdf()
Destructor.
Bool_t useInterpolation_
Control boolean for using the linear interpolation.
Double_t rangeY_
The histogram y-axis range.
Double_t invBinXWidth_
The histogram x-axis inverse bin width.
Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const
Get the bin content from the histogram.
Class for calculating 3-body kinematic quantities.
Double_t maxY_
The histogram y-axis maximum.
void calcHistNorm()
Calculate the PDF normalisation.
Double_t binYWidth_
The histogram y-axis bin width.
Int_t nBinsY_
The number of bins on the y-axis of the histogram.
Double_t interpolateXY(Double_t x, Double_t y) const
Perform the interpolation (unnormalised)
Class for defining vetoes within the Dalitz plot.
Definition: LauVetoes.hh:50