laura is hosted by Hepforge, IPPP Durham
Laura++  v2r1
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauIntegrals.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2004 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
22 #ifndef LAU_INTEGRALS
23 #define LAU_INTEGRALS
24 
25 #include <vector>
26 
27 #include "Rtypes.h"
28 
29 
30 class LauIntegrals {
31 
32  public:
34 
37  LauIntegrals(Double_t weightsPrecision = 1.0e-6);
38 
40  virtual ~LauIntegrals();
41 
43 
48  void calcGaussLegendreWeights(const Int_t numPoints, std::vector<Double_t>& abscissas, std::vector<Double_t>& weights);
49 
51 
56  void calcGaussHermiteWeights(const Int_t numPoints, std::vector<Double_t>& abscissas, std::vector<Double_t>& weights);
57 
58  private:
61 
62  ClassDef(LauIntegrals,0)
63 };
64 
65 #endif
Class for performing numerical integration routines.
Definition: LauIntegrals.hh:30
LauIntegrals(Double_t weightsPrecision=1.0e-6)
Constructor.
Definition: LauIntegrals.cc:28
void calcGaussHermiteWeights(const Int_t numPoints, std::vector< Double_t > &abscissas, std::vector< Double_t > &weights)
Calculate the Gauss-Hermite weights.
Definition: LauIntegrals.cc:88
void calcGaussLegendreWeights(const Int_t numPoints, std::vector< Double_t > &abscissas, std::vector< Double_t > &weights)
Calculate the Gauss-Legendre weights.
Definition: LauIntegrals.cc:37
Double_t weightsPrecision_
The precision to which the weights should be calculated.
Definition: LauIntegrals.hh:60
virtual ~LauIntegrals()
Destructor.
Definition: LauIntegrals.cc:33