laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauDPDepBifurGaussPdf.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2007 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_BIFURGAUSS_PDF
36 #define LAU_DPDEP_BIFURGAUSS_PDF
37 
38 #include "LauAbsPdf.hh"
39 
40 #include "TString.h"
41 
42 #include <vector>
43 
44 class LauDaughters;
45 
47 
48  public:
50  enum DPAxis {
51  M12,
52  M13,
53  M23,
55  MMIN,
56  MMAX
57  };
58 
60  enum ScaleMethod {
61  poly,
63  };
64 
66 
77  LauDPDepBifurGaussPdf( const TString& theVarName,
78  const std::vector<LauAbsRValue*>& params,
79  Double_t minAbscissa,
80  Double_t maxAbscissa,
81  const LauDaughters* daughters,
82  const std::vector<Double_t>& meanCoeffs,
83  const std::vector<Double_t>& sigmaLCoeffs,
84  const std::vector<Double_t>& sigmaRCoeffs,
85  DPAxis dpAxis );
86 
88  virtual ~LauDPDepBifurGaussPdf();
89 
91 
94  virtual Bool_t isDPDependent() const { return kTRUE; }
95 
97 
100  virtual void calcLikelihoodInfo( const LauAbscissas& abscissas );
101 
103 
105  virtual void calcNorm();
106 
108 
111  virtual void calcPDFHeight( const LauKinematics* kinematics );
112 
114 
118 
120 
123  void scaleMethod( ScaleMethod method ) { scaleMethod_ = method; }
124 
125  protected:
127 
130  void scalePars_poly( Double_t perEventDist );
131 
133 
136  void scalePars_polyNegPower( Double_t perEventDist );
137 
138  private:
141 
144 
147 
154 
156  Double_t meanVal_;
158  Double_t sigmaLVal_;
160  Double_t sigmaRVal_;
161 
163  const std::vector<Double_t> meanCoeffs_;
165  const std::vector<Double_t> sigmaLCoeffs_;
167  const std::vector<Double_t> sigmaRCoeffs_;
168 
171 
174 
175  ClassDef( LauDPDepBifurGaussPdf, 0 ) // Define the MVA PDF
176 };
177 
178 #endif
File containing declaration of LauAbsPdf class.
void scalePars_polyNegPower(Double_t perEventDist)
Scale the Gaussian parameters with negative power polynomial method.
const std::vector< Double_t > sigmaRCoeffs_
Coefficients of right Gaussian sigma.
LauDPDepBifurGaussPdf(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 > &sigmaLCoeffs, const std::vector< Double_t > &sigmaRCoeffs, DPAxis dpAxis)
Constructor.
const LauKinematics * kinematics_
The current DP kinematics.
Double_t meanVal_
Gaussian mean.
LauAbsRValue * mean_
Gaussian mean.
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:58
Double_t sigmaRVal_
Right Gaussian sigma.
virtual void calcNorm()
Calculate the normalisation.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
DPAxis dpAxis_
The DP axis we depend on.
LauDPDepBifurGaussPdf(const LauDPDepBifurGaussPdf &other)
Copy constructor (not implemented)
LauAbsRValue * sigmaL_
Left Gaussian sigma.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
ScaleMethod
Define possibilties for the scaling method.
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
void scalePars_poly(Double_t perEventDist)
Scale the Gaussian parameters with polynomial method.
void scaleMethod(ScaleMethod method)
Set the scaling method.
const std::vector< Double_t > meanCoeffs_
Coefficients of Gaussian mean.
ScaleMethod scaleMethod_
Scaling method information.
ScaleMethod scaleMethod() const
Retrieve scaling method information.
virtual ~LauDPDepBifurGaussPdf()
Destructor.
LauAbsRValue * sigmaR_
Right Gaussian sigma.
Class for calculating 3-body kinematic quantities.
Class for defining a Bifurcated Gaussian PDF (DP dependent).
virtual Bool_t isDPDependent() const
Specifies whether or not the PDF is DP dependent.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
DPAxis
Define possibilties for the DP axes.
LauDPDepBifurGaussPdf & operator=(const LauDPDepBifurGaussPdf &other)
Copy assignment operator (not implemented)
Double_t sigmaLVal_
Left Gaussian sigma.
const std::vector< Double_t > sigmaLCoeffs_
Coefficients of left Gaussian sigma.