laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauIntegrals.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2004 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 #ifndef LAU_INTEGRALS
37 #define LAU_INTEGRALS
38 
39 #include <vector>
40 
41 #include "Rtypes.h"
42 
43 
44 class LauIntegrals {
45 
46  public:
48 
51  LauIntegrals(Double_t weightsPrecision = 1.0e-6);
52 
54  virtual ~LauIntegrals();
55 
57  LauIntegrals(const LauIntegrals& rhs);
58 
60  LauIntegrals& operator=(const LauIntegrals& rhs);
61 
63 
68  void calcGaussLegendreWeights(const Int_t numPoints, std::vector<Double_t>& abscissas, std::vector<Double_t>& weights);
69 
71 
76  void calcGaussHermiteWeights(const Int_t numPoints, std::vector<Double_t>& abscissas, std::vector<Double_t>& weights);
77 
78  private:
81 
82  ClassDef(LauIntegrals,0)
83 };
84 
85 #endif
Class for performing numerical integration routines.
Definition: LauIntegrals.hh:44
LauIntegrals(Double_t weightsPrecision=1.0e-6)
Constructor.
Definition: LauIntegrals.cc:42
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:64
Double_t weightsPrecision_
The precision to which the weights should be calculated.
Definition: LauIntegrals.hh:80
LauIntegrals & operator=(const LauIntegrals &rhs)
Copy assignment operator.
Definition: LauIntegrals.cc:56
virtual ~LauIntegrals()
Destructor.
Definition: LauIntegrals.cc:47