laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauDPDepMapPdf.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2013 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 
37 #ifndef LAU_DPDEPMAP_PDF
38 #define LAU_DPDEPMAP_PDF
39 
40 #include "LauAbsPdf.hh"
41 
42 #include "Rtypes.h"
43 
44 #include <vector>
45 
46 class LauDaughters;
47 class Lau2DAbsDP;
48 class LauParameter;
49 class TH2;
50 class TH1;
51 
52 class LauDPDepMapPdf : public LauAbsPdf {
53 
54  public:
56  enum DPAxis {
57  M12,
58  M13,
59  M23,
61  MMIN,
62  MMAX
63  };
64 
66 
72  LauDPDepMapPdf( const std::vector<LauAbsPdf*>& pdfs,
73  const LauDaughters* daughters,
74  const TH2* dpHisto,
75  Bool_t upperHalf = kFALSE );
76 
78 
84  LauDPDepMapPdf( const std::vector<LauAbsPdf*>& pdfs,
85  const LauDaughters* daughters,
86  const TH1* dpAxisHisto,
87  DPAxis dpAxis );
88 
90  virtual ~LauDPDepMapPdf();
91 
93 
96  virtual Bool_t isDPDependent() const { return kTRUE; }
97 
99 
102  virtual void cacheInfo( const LauFitDataTree& inputData );
103 
105 
108  virtual void calcLikelihoodInfo( const LauAbscissas& abscissas );
109 
111 
114  virtual void calcLikelihoodInfo( UInt_t iEvt );
115 
117  virtual void calcNorm();
118 
120 
123  virtual void calcPDFHeight( const LauKinematics* kinematics );
124 
125  protected:
127 
131  UInt_t determineDPRegion( Double_t m13Sq, Double_t m23Sq ) const;
132 
133  private:
136 
139 
142 
144  std::vector<LauAbsPdf*> pdfs_;
145 
150 
153 
155  std::vector<UInt_t> indices_;
156 
157  ClassDef( LauDPDepMapPdf, 0 ) // Define the sum PDF
158 };
159 
160 #endif
File containing declaration of LauAbsPdf class.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
DPAxis dpAxis_
The DP axis we depend on.
TH1 * dpAxisDependence_
1D histogram - DP axis
virtual void cacheInfo(const LauFitDataTree &inputData)
Cache information from data.
Pure abstract base class for defining a variation across a 2D DP.
Definition: Lau2DAbsDP.hh:40
LauDaughters * daughters_
Daughter particles.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:58
std::vector< LauAbsPdf * > pdfs_
The PDFs.
Class to store the input fit variables.
virtual Bool_t isDPDependent() const
Specifies whether or not the PDF is DP dependent.
Class to allow having different PDFs in different regions of the DP.
UInt_t determineDPRegion(Double_t m13Sq, Double_t m23Sq) const
Determine the DP region.
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:54
LauDPDepMapPdf(const std::vector< LauAbsPdf * > &pdfs, const LauDaughters *daughters, const TH2 *dpHisto, Bool_t upperHalf=kFALSE)
Constructor - map described by 2D histogram.
std::vector< UInt_t > indices_
Cached indices values.
LauDPDepMapPdf & operator=(const LauDPDepMapPdf &other)
Copy assignment operator - not implemented.
LauDPDepMapPdf(const LauDPDepMapPdf &other)
Copy constructor - not implemented.
Lau2DAbsDP * dpDependence_
2D histogram - DP
virtual void calcNorm()
Calculate the normalisation.
Class for calculating 3-body kinematic quantities.
DPAxis
Define possibilties for the DP axes.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
virtual ~LauDPDepMapPdf()
Destructor.