laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauDPDepGaussPdf.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2009 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_DPDEP_GAUSS_PDF
36 #define LAU_DPDEP_GAUSS_PDF
37 
38 #include "LauAbsPdf.hh"
39 
40 #include "TString.h"
41 
42 #include <vector>
43 
44 class LauDaughters;
45 class LauKinematics;
46 class LauParameter;
47 
48 class LauDPDepGaussPdf : public LauAbsPdf {
49 
50  public:
52  enum DPAxis {
53  M12,
54  M13,
55  M23,
57  MMIN,
58  MMAX
59  };
60 
62 
72  LauDPDepGaussPdf( const TString& theVarName,
73  const std::vector<LauAbsRValue*>& params,
74  Double_t minAbscissa,
75  Double_t maxAbscissa,
76  const LauDaughters* daughters,
77  const std::vector<Double_t>& meanCoeffs,
78  const std::vector<Double_t>& sigmaCoeffs,
79  DPAxis dpAxis );
80 
82  virtual ~LauDPDepGaussPdf();
83 
85 
88  virtual Bool_t isDPDependent() const { return kTRUE; }
89 
91 
94  virtual void calcLikelihoodInfo( const LauAbscissas& abscissas );
95 
97 
99  virtual void calcNorm();
100 
102 
105  virtual void calcPDFHeight( const LauKinematics* kinematics );
106 
107  protected:
109 
112  void scalePars( Double_t dpPos );
113 
114  private:
117 
120 
123 
128 
130  Double_t meanVal_;
132  Double_t sigmaVal_;
133 
135  const std::vector<Double_t> meanCoeffs_;
137  const std::vector<Double_t> sigmaCoeffs_;
138 
141 
142  ClassDef( LauDPDepGaussPdf, 0 ) // Define the Gaussian PDF
143 };
144 
145 #endif
File containing declaration of LauAbsPdf class.
void scalePars(Double_t dpPos)
Scale parameters by their dependence on the DP position.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
LauAbsRValue * mean_
Gaussian mean.
virtual void calcNorm()
Calculate the normalisation.
LauDPDepGaussPdf(const LauDPDepGaussPdf &other)
Copy constructor (not implemented)
virtual Bool_t isDPDependent() const
Specifies whether or not the PDF is DP dependent.
Double_t meanVal_
Gaussian mean.
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:58
virtual ~LauDPDepGaussPdf()
Destructor.
LauDPDepGaussPdf & operator=(const LauDPDepGaussPdf &other)
Copy assignment operator (not implemented)
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
LauAbsRValue * sigma_
Gaussian sigma.
Double_t sigmaVal_
Gaussian sigma.
Class for defining a Gaussian PDF (DP dependent).
const LauKinematics * kinematics_
The current DP kinematics.
DPAxis
Define possibilties for the DP axes.
LauDPDepGaussPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, Double_t minAbscissa, Double_t maxAbscissa, const LauDaughters *daughters, const std::vector< Double_t > &meanCoeffs, const std::vector< Double_t > &sigmaCoeffs, DPAxis dpAxis)
Constructor.
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:54
Pure abstract base class for defining a parameter containing an R value.
Definition: LauAbsRValue.hh:45
Class for calculating 3-body kinematic quantities.
const std::vector< Double_t > sigmaCoeffs_
Coefficients of Gaussian sigma.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
DPAxis dpAxis_
The DP axis we depend on.
const std::vector< Double_t > meanCoeffs_
Coefficients of Gaussian mean.