]>
Commit | Line | Data |
---|---|---|
da0e9ce3 | 1 | //-------------------------------------------------------------------------- |
2 | // | |
3 | // | |
4 | // Copyright Information: See EvtGen/COPYRIGHT | |
5 | // | |
6 | // Environment: | |
7 | // This software is part of the EvtGen package developed jointly | |
8 | // for the BaBar and CLEO collaborations. If you use all or part | |
9 | // of it, please give an appropriate acknowledgement. | |
10 | // | |
11 | // Module: EvtItgSimpsonIntegrator.hh | |
12 | // | |
13 | // Description: | |
14 | // Simpson integrator (Stolen and modified from | |
15 | // the BaBar IntegrationUtils package - author: Phil Strother). | |
16 | // | |
17 | // Modification history: | |
18 | // | |
19 | // Jane Tinslay March 21, 2001 Module adapted for use in | |
20 | // EvtGen | |
21 | // | |
22 | //------------------------------------------------------------------------ | |
23 | ||
24 | #ifndef EVTITGSIMPSONINTEGRATOR_HH | |
25 | #define EVTITGSIMPSONINTEGRATOR_HH | |
26 | ||
27 | //------------- | |
28 | // C Headers -- | |
29 | //------------- | |
30 | extern "C" { | |
31 | } | |
32 | ||
33 | #include "EvtGenModels/EvtItgAbsIntegrator.hh" | |
34 | ||
35 | class EvtItgSimpsonIntegrator: public EvtItgAbsIntegrator { | |
36 | ||
37 | public: | |
38 | ||
39 | EvtItgSimpsonIntegrator(const EvtItgAbsFunction &, double precision=1.0e-5, int maxLoop=20); | |
40 | ||
41 | virtual ~EvtItgSimpsonIntegrator( ); | |
42 | ||
43 | protected: | |
44 | ||
45 | virtual double evaluateIt(double , double) const; | |
46 | ||
47 | private: | |
48 | ||
49 | double _precision; | |
50 | double _maxLoop; | |
51 | ||
52 | EvtItgSimpsonIntegrator(); | |
53 | EvtItgSimpsonIntegrator( const EvtItgSimpsonIntegrator& ); //// Copy Constructor | |
54 | EvtItgSimpsonIntegrator& operator= ( const EvtItgSimpsonIntegrator& ); // Assignment op | |
55 | ||
56 | }; | |
57 | ||
58 | ||
59 | ||
60 | #endif // ITGSIMPSONINTEGRATOR_HH |