laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
Lau2DHistDP.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 
39 #ifndef LAU_2DHIST_DP
40 #define LAU_2DHIST_DP
41 
42 #include "Lau2DAbsHistDP.hh"
43 
44 class TH2;
45 class LauDaughters;
46 class LauKinematics;
47 
48 class Lau2DHistDP : public Lau2DAbsHistDP {
49 
50  public:
52 
66  Lau2DHistDP( const TH2* hist,
67  const LauDaughters* daughters,
68  Bool_t useInterpolation = kTRUE,
69  Bool_t fluctuateBins = kFALSE,
70  Double_t avEff = -1.0,
71  Double_t avEffError = -1.0,
72  Bool_t useUpperHalfOnly = kFALSE,
73  Bool_t squareDP = kFALSE );
74 
76 
92  Lau2DHistDP( const TH2* hist,
93  const TH2* errorHi,
94  const TH2* errorLo,
95  const LauDaughters* daughters,
96  Bool_t useInterpolation = kTRUE,
97  Bool_t fluctuateBins = kFALSE,
98  Double_t avEff = -1.0,
99  Double_t avEffError = -1.0,
100  Bool_t useUpperHalfOnly = kFALSE,
101  Bool_t squareDP = kFALSE );
102 
104  virtual ~Lau2DHistDP();
105 
107 
112  Double_t interpolateXY( Double_t x, Double_t y ) const;
113 
114  protected:
116 
121  Double_t getBinHistValue( Int_t xBinNo, Int_t yBinNo ) const;
122 
123  private:
125  Lau2DHistDP( const Lau2DHistDP& rhs );
126 
129 
131  TH2* hist_;
133  TH2* errorHi_;
135  TH2* errorLo_;
136 
138  Double_t minX_;
140  Double_t maxX_;
142  Double_t minY_;
144  Double_t maxY_;
146  Double_t rangeX_;
148  Double_t rangeY_;
149 
151  Double_t binXWidth_;
153  Double_t binYWidth_;
154 
156  Int_t nBinsX_;
158  Int_t nBinsY_;
159 
162 
163  ClassDef( Lau2DHistDP, 0 ) // 2D Histogram utility class for DP analyses
164 };
165 
166 #endif
Abstract base class for defining a variation across a 2D DP based on a histogram.
Double_t binYWidth_
The histogram y-axis bin width.
Definition: Lau2DHistDP.hh:153
Int_t nBinsX_
The number of bins on the x-axis of the histogram.
Definition: Lau2DHistDP.hh:156
Double_t interpolateXY(Double_t x, Double_t y) const
Perform the interpolation.
Definition: Lau2DHistDP.cc:244
Double_t rangeY_
The histogram y-axis range.
Definition: Lau2DHistDP.hh:148
TH2 * errorHi_
The histogram containing the upper errors.
Definition: Lau2DHistDP.hh:133
Double_t minX_
The histogram x-axis minimum.
Definition: Lau2DHistDP.hh:138
File containing declaration of Lau2DAbsHistDP class.
Double_t minY_
The histogram y-axis minimum.
Definition: Lau2DHistDP.hh:142
Int_t nBinsY_
The number of bins on the y-axis of the histogram.
Definition: Lau2DHistDP.hh:158
Double_t binXWidth_
The histogram x-axis bin width.
Definition: Lau2DHistDP.hh:151
Lau2DHistDP(const Lau2DHistDP &rhs)
Copy constructor - not implemented.
Double_t maxY_
The histogram y-axis maximum.
Definition: Lau2DHistDP.hh:144
virtual ~Lau2DHistDP()
Destructor.
Definition: Lau2DHistDP.cc:212
Class for defining a 2D DP histogram.
Definition: Lau2DHistDP.hh:48
TH2 * errorLo_
The histogram containing the lower errors.
Definition: Lau2DHistDP.hh:135
Double_t rangeX_
The histogram x-axis range.
Definition: Lau2DHistDP.hh:146
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:42
TH2 * hist_
The underlying histogram.
Definition: Lau2DHistDP.hh:131
Class for calculating 3-body kinematic quantities.
Lau2DHistDP & operator=(const Lau2DHistDP &rhs)
Copy assignment operator - not implemented.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const
Get the raw bin content from the histogram.
Definition: Lau2DHistDP.cc:226
Bool_t useInterpolation_
Control boolean for using the linear interpolation.
Definition: Lau2DHistDP.hh:161
Double_t maxX_
The histogram x-axis maximum.
Definition: Lau2DHistDP.hh:140