laura is hosted by Hepforge, IPPP Durham
Laura++  v3r2
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  LauIntegrals(const LauIntegrals& rhs);
44 
46  LauIntegrals& operator=(const LauIntegrals& rhs);
47 
49 
54  void calcGaussLegendreWeights(const Int_t numPoints, std::vector<Double_t>& abscissas, std::vector<Double_t>& weights);
55 
57 
62  void calcGaussHermiteWeights(const Int_t numPoints, std::vector<Double_t>& abscissas, std::vector<Double_t>& weights);
63 
64  private:
67 
68  ClassDef(LauIntegrals,0)
69 };
70 
71 #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.
void calcGaussLegendreWeights(const Int_t numPoints, std::vector< Double_t > &abscissas, std::vector< Double_t > &weights)
Calculate the Gauss-Legendre weights.
Definition: LauIntegrals.cc:50
Double_t weightsPrecision_
The precision to which the weights should be calculated.
Definition: LauIntegrals.hh:66
LauIntegrals & operator=(const LauIntegrals &rhs)
Copy assignment operator.
Definition: LauIntegrals.cc:42
virtual ~LauIntegrals()
Destructor.
Definition: LauIntegrals.cc:33