laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
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 
64  Lau2DHistDP(const TH2* hist, const LauDaughters* daughters,
65  Bool_t useInterpolation = kTRUE, Bool_t fluctuateBins = kFALSE,
66  Double_t avEff = -1.0, Double_t avEffError = -1.0, Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
67 
69 
83  Lau2DHistDP(const TH2* hist, const TH2* errorHi, const TH2* errorLo, const LauDaughters* daughters,
84  Bool_t useInterpolation = kTRUE, Bool_t fluctuateBins = kFALSE,
85  Double_t avEff = -1.0, Double_t avEffError = -1.0, Bool_t useUpperHalfOnly = kFALSE, Bool_t squareDP = kFALSE);
86 
88  virtual ~Lau2DHistDP();
89 
91 
96  Double_t interpolateXY(Double_t x, Double_t y) const;
97 
98  protected:
100 
105  Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const;
106 
107  private:
109  Lau2DHistDP( const Lau2DHistDP& rhs );
110 
112  Lau2DHistDP& operator=(const Lau2DHistDP& rhs);
113 
115  TH2* hist_;
117  TH2* errorHi_;
119  TH2* errorLo_;
120 
122  Double_t minX_;
124  Double_t maxX_;
126  Double_t minY_;
128  Double_t maxY_;
130  Double_t rangeX_;
132  Double_t rangeY_;
133 
135  Double_t binXWidth_;
137  Double_t binYWidth_;
138 
140  Int_t nBinsX_;
142  Int_t nBinsY_;
143 
146 
147  ClassDef(Lau2DHistDP,0) // 2D Histogram utility class for DP analyses
148 };
149 
150 #endif
Double_t minY_
The histogram y-axis minimum.
Definition: Lau2DHistDP.hh:126
Lau2DHistDP & operator=(const Lau2DHistDP &rhs)
Copy assignment operator - not implemented.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
Int_t nBinsY_
The number of bins on the y-axis of the histogram.
Definition: Lau2DHistDP.hh:142
Double_t binYWidth_
The histogram y-axis bin width.
Definition: Lau2DHistDP.hh:137
Double_t getBinHistValue(Int_t xBinNo, Int_t yBinNo) const
Get the raw bin content from the histogram.
Definition: Lau2DHistDP.cc:197
Double_t minX_
The histogram x-axis minimum.
Definition: Lau2DHistDP.hh:122
Double_t binXWidth_
The histogram x-axis bin width.
Definition: Lau2DHistDP.hh:135
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:44
Double_t interpolateXY(Double_t x, Double_t y) const
Perform the interpolation.
Definition: Lau2DHistDP.cc:215
Bool_t useInterpolation_
Control boolean for using the linear interpolation.
Definition: Lau2DHistDP.hh:145
Double_t maxX_
The histogram x-axis maximum.
Definition: Lau2DHistDP.hh:124
File containing declaration of Lau2DAbsHistDP class.
Double_t maxY_
The histogram y-axis maximum.
Definition: Lau2DHistDP.hh:128
Class for defining a 2D DP histogram.
Definition: Lau2DHistDP.hh:48
virtual ~Lau2DHistDP()
Destructor.
Definition: Lau2DHistDP.cc:183
TH2 * errorLo_
The histogram containing the lower errors.
Definition: Lau2DHistDP.hh:119
Class for calculating 3-body kinematic quantities.
Int_t nBinsX_
The number of bins on the x-axis of the histogram.
Definition: Lau2DHistDP.hh:140
TH2 * errorHi_
The histogram containing the upper errors.
Definition: Lau2DHistDP.hh:117
TH2 * hist_
The underlying histogram.
Definition: Lau2DHistDP.hh:115
Double_t rangeX_
The histogram x-axis range.
Definition: Lau2DHistDP.hh:130
Double_t rangeY_
The histogram y-axis range.
Definition: Lau2DHistDP.hh:132