laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauChebychevPdf.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 
36 /*****************************************************************************
37  * Class based on RooFit/RooChebychev. *
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_CHEBYCHEV_PDF
53 #define LAU_CHEBYCHEV_PDF
54 
55 #include <vector>
56 
57 #include "TString.h"
58 
59 #include "LauAbsPdf.hh"
60 
61 class LauParameter;
62 
63 class LauChebychevPdf : public LauAbsPdf {
64 
65  public:
67 
73  LauChebychevPdf(const TString& theVarName, const std::vector<LauAbsRValue*>& params, Double_t minAbscissa, Double_t maxAbscissa);
74 
76  virtual ~LauChebychevPdf();
77 
79 
82  virtual void calcLikelihoodInfo(const LauAbscissas& abscissas);
83 
85 
87  virtual void calcNorm();
88 
90 
93  virtual void calcPDFHeight( const LauKinematics* kinematics );
94 
95  private:
97  LauChebychevPdf(const LauChebychevPdf& other);
98 
101 
103  std::vector<LauAbsRValue*> coeffs_;
104 
105  ClassDef(LauChebychevPdf,0) // Chebychev PDF
106 };
107 
108 #endif
Class for defining a Chebychev Polynomial (1st kind) PDF.
virtual void calcPDFHeight(const LauKinematics *kinematics)
Calculate the PDF height.
std::vector< LauAbsRValue * > coeffs_
Coefficients of polynomial.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
File containing declaration of LauAbsPdf class.
LauChebychevPdf & operator=(const LauChebychevPdf &other)
Copy assignment operator (not implemented)
virtual void calcNorm()
Calculate the normalisation.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)=0
Calculate the likelihood (and all associated information) given value(s) of the abscissa(s) ...
virtual ~LauChebychevPdf()
Destructor.
Class for defining the abstract interface for PDF classes.
Definition: LauAbsPdf.hh:55
Class for calculating 3-body kinematic quantities.
LauChebychevPdf(const TString &theVarName, const std::vector< LauAbsRValue * > &params, Double_t minAbscissa, Double_t maxAbscissa)
Constructor.
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)
Calculate the likelihood (and intermediate info) for a given abscissa.
std::vector< Double_t > LauAbscissas
The type used for containing multiple abscissa values.
Definition: LauAbsPdf.hh:59