1 //--------------------------------------------------------------------------
4 // Copyright Information: See EvtGen/COPYRIGHT
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.
11 // Module: EvtItgSimpsonIntegrator.hh
14 // Simpson integrator (Stolen and modified from
15 // the BaBar IntegrationUtils package - author: Phil Strother).
17 // Modification history:
19 // Jane Tinslay March 21, 2001 Module adapted for use in
22 //------------------------------------------------------------------------
24 #ifndef EVTITGSIMPSONINTEGRATOR_HH
25 #define EVTITGSIMPSONINTEGRATOR_HH
33 #include "EvtGenModels/EvtItgAbsIntegrator.hh"
35 class EvtItgSimpsonIntegrator: public EvtItgAbsIntegrator {
39 EvtItgSimpsonIntegrator(const EvtItgAbsFunction &, double precision=1.0e-5, int maxLoop=20);
41 virtual ~EvtItgSimpsonIntegrator( );
45 virtual double evaluateIt(double , double) const;
52 EvtItgSimpsonIntegrator();
53 EvtItgSimpsonIntegrator( const EvtItgSimpsonIntegrator& ); //// Copy Constructor
54 EvtItgSimpsonIntegrator& operator= ( const EvtItgSimpsonIntegrator& ); // Assignment op
60 #endif // ITGSIMPSONINTEGRATOR_HH