laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauCrystalBallPdf.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 /*****************************************************************************
37  * Class based on RooFit/RooCBShape. *
38  * Original copyright given below. *
39  *****************************************************************************
40  * Authors: *
41  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
42  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
43  * *
44  * Copyright (c) 2000-2005, Regents of the University of California *
45  * and Stanford University. All rights reserved. *
46  * *
47  * Redistribution and use in source and binary forms, *
48  * with or without modification, are permitted according to the terms *
49  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
50  *****************************************************************************/
51 
52 #ifndef LAU_CRYSTAL_BALL_PDF
53 #define LAU_CRYSTAL_BALL_PDF
54 
55 #include <vector>
56 
57 #include "TString.h"
58 
59 #include "LauAbsPdf.hh"
60 
61 class LauParameter;
62 
63 
64 class LauCrystalBallPdf : public LauAbsPdf {
65 
66  public:
68 
74  LauCrystalBallPdf(const TString& theVarName, const std::vector<LauAbsRValue*>& params, Double_t minAbscissa, Double_t maxAbscissa);
75 
77  virtual ~LauCrystalBallPdf();
78 
80 
83  virtual void calcLikelihoodInfo(const LauAbscissas& abscissas);
84 
86 
88  virtual void calcNorm();
89 
91 
94  virtual void calcPDFHeight( const LauKinematics* kinematics );
95 
96  protected:
97 
99 
103  Double_t approxErf(Double_t arg) const;
104 
105  private:
107  LauCrystalBallPdf(const LauCrystalBallPdf& other);
108 
111 
120 
121  ClassDef(LauCrystalBallPdf,0) // Define the Crystal Ball PDF
122 };
123 
124 #endif
virtual void calcNorm()
Calculate the normalisation.
LauAbsRValue * mean_
Gaussian mean.
virtual ~LauCrystalBallPdf()
Destructor.
Double_t approxErf(Double_t arg) const
Calculate the approximate error function of argument.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
LauCrystalBallPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, Double_t minAbscissa, Double_t maxAbscissa)
Constructor.
LauAbsRValue * sigma_
Gaussian sigma.
LauAbsRValue * alpha_
Alpha - distance from the mean in which the Gaussian and the tail are matched up. ...
LauCrystalBallPdf & operator=(const LauCrystalBallPdf &other)
Copy assignment operator (not implemented)
Class for defining a Crystal Ball PDF.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
File containing declaration of LauAbsPdf class.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)=0
Calculate the likelihood (and all associated information) given value(s) of the abscissa(s) ...
LauAbsRValue * n_
Power for tail (goes as 1/x^n)
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:55
Class for calculating 3-body kinematic quantities.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
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