//-------------------------------------------------------------------------- // // // Copyright Information: See EvtGen/COPYRIGHT // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Module: EvtItgSimpsonIntegrator.hh // // Description: // Abstraction of a generic function for use in integration methods elsewhere // in this package. (Stolen and modified from // the BaBar IntegrationUtils package - author: Phil Strother). // // Modification history: // // Jane Tinslay March 21, 2001 Module adapted for use in // EvtGen // //------------------------------------------------------------------------ #include "EvtGenBase/EvtPatches.hh" #include "EvtGenModels/EvtItgSimpsonIntegrator.hh" //------------- // C Headers -- //------------- extern "C" { } //--------------- // C++ Headers -- //--------------- #include //------------------------------- // Collaborating Class Headers -- //------------------------------- #include "EvtGenModels/EvtItgAbsFunction.hh" #include "EvtGenBase/EvtReport.hh" using std::endl; EvtItgSimpsonIntegrator::EvtItgSimpsonIntegrator(const EvtItgAbsFunction &theFunction, double precision, int maxLoop): EvtItgAbsIntegrator(theFunction), _precision(precision), _maxLoop(maxLoop) {} //-------------- // Destructor -- //-------------- EvtItgSimpsonIntegrator::~EvtItgSimpsonIntegrator() {} double EvtItgSimpsonIntegrator::evaluateIt(double lower, double higher) const{ // report(INFO,"EvtGen")<<"in evaluate"<