laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauLinearPdf.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 
35 #ifndef LAU_LINEAR_PDF
36 #define LAU_LINEAR_PDF
37 
38 #include <vector>
39 
40 #include "TString.h"
41 #include "LauAbsPdf.hh"
42 
43 
44 class LauLinearPdf : public LauAbsPdf {
45 
46  public:
48 
54  LauLinearPdf(const TString& theVarName, const std::vector<LauAbsRValue*>& params, Double_t minAbscissa, Double_t maxAbscissa);
55 
57  virtual ~LauLinearPdf();
58 
60 
63  virtual void calcLikelihoodInfo(const LauAbscissas& abscissas);
64 
66 
68  virtual void calcNorm();
69 
71 
74  virtual void calcPDFHeight( const LauKinematics* kinematics );
75 
76 
77  protected:
78 
79  private:
81  LauLinearPdf(const LauLinearPdf& rhs);
82 
84  LauLinearPdf& operator=(const LauLinearPdf& rhs);
85 
88 
89  Bool_t posflag_;
90 
91  ClassDef(LauLinearPdf,0) // Define the Linear PDF
92 };
93 
94 #endif
Bool_t posflag_
Definition: LauLinearPdf.hh:89
virtual ~LauLinearPdf()
Destructor.
Definition: LauLinearPdf.cc:66
LauAbsRValue * slope_
Line slope.
Definition: LauLinearPdf.hh:87
virtual void calcNorm()
Calculate the normalisation.
Class for defining a straight line PDF.
Definition: LauLinearPdf.hh:44
LauLinearPdf & operator=(const LauLinearPdf &rhs)
Copy assignment operator (not implemented)
File containing declaration of LauAbsPdf class.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)=0
Calculate the likelihood (and all associated information) given value(s) of the abscissa(s) ...
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:55
Class for calculating 3-body kinematic quantities.
LauLinearPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, Double_t minAbscissa, Double_t maxAbscissa)
Constructor.
Pure abstract base class for defining a parameter containing an R value.
Definition: LauAbsRValue.hh:43
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:59
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
Definition: LauLinearPdf.cc:71