laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauSumPdf.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2006 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 
36 #ifndef LAU_SUM_PDF
37 #define LAU_SUM_PDF
38 
39 #include "Rtypes.h"
40 
41 #include "LauAbsPdf.hh"
42 
43 class LauParameter;
44 
45 
46 class LauSumPdf : public LauAbsPdf {
47 
48  public:
50 
55  LauSumPdf(LauAbsPdf* pdf1, LauAbsPdf* pdf2, LauParameter* frac1);
56 
58  virtual ~LauSumPdf();
59 
61 
64  UInt_t nInputVars() const {return pdf1_->nInputVars();}
65 
67 
70  virtual Bool_t isDPDependent() const {return (pdf1_->isDPDependent() || pdf2_->isDPDependent());}
71 
73 
76  virtual void cacheInfo(const LauFitDataTree& inputData);
77 
79 
82  virtual void calcLikelihoodInfo(const LauAbscissas& abscissas);
83 
85 
88  virtual void calcLikelihoodInfo(UInt_t iEvt);
89 
91  virtual void calcNorm();
92 
94 
97  virtual void calcPDFHeight( const LauKinematics* kinematics );
98 
99  protected:
100 
101  private:
103  LauSumPdf(const LauSumPdf& rhs);
104 
106  LauSumPdf& operator=(const LauSumPdf& rhs);
107 
110 
113 
116 
117  ClassDef(LauSumPdf,0) // Define the sum PDF
118 };
119 
120 #endif
UInt_t nInputVars() const
Returns the number of input variables.
Definition: LauSumPdf.hh:64
virtual ~LauSumPdf()
Destructor.
Definition: LauSumPdf.cc:112
LauAbsPdf * pdf1_
First PDF.
Definition: LauSumPdf.hh:109
virtual Bool_t isDPDependent() const
Specifies whether or not the PDF is DP dependent.
Definition: LauAbsPdf.hh:125
virtual void calcNorm()
Calculate the normalisation.
Definition: LauSumPdf.cc:138
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
File containing declaration of LauAbsPdf class.
LauSumPdf & operator=(const LauSumPdf &rhs)
Copy assignment operator (not implemented)
Class for defining a PDF that is the sum of two other PDFs.
Definition: LauSumPdf.hh:46
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
Definition: LauSumPdf.cc:117
LauAbsPdf * pdf2_
Second PDF.
Definition: LauSumPdf.hh:112
LauSumPdf(LauAbsPdf *pdf1, LauAbsPdf *pdf2, LauParameter *frac1)
Constructor.
Definition: LauSumPdf.cc:42
LauAbsRValue * frac_
Fractional contribution of first PDF to the final PDF.
Definition: LauSumPdf.hh:115
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:55
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
Definition: LauSumPdf.cc:144
Class for calculating 3-body kinematic quantities.
virtual UInt_t nInputVars() const
Retrieve the number of abscissas.
Definition: LauAbsPdf.hh:118
virtual Bool_t isDPDependent() const
Boolean for the DP dependence of PDFs in the sum.
Definition: LauSumPdf.hh:70
Pure abstract base class for defining a parameter containing an R value.
Definition: LauAbsRValue.hh:43
Class to store the input fit variables.
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:59
virtual void cacheInfo(const LauFitDataTree &inputData)
Cache information from data.
Definition: LauSumPdf.cc:182