1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id: EvtItgFunction.cc,v 1.3 2004/12/21 22:16:02 ryd Exp $
6 // Class EvtItgFunction
7 // Implementation for the EvtItgFunction class. Defines the bounds
8 // checked value() function and the non-bounds checked operator()
11 // Software developed for the BaBar Detector at the SLAC B-Factory.
14 // Phil Strother Originator
16 // Copyright Information: See EvtGen/COPYRIGHT
17 // Copyright (C) 1998 LBNL
19 //------------------------------------------------------------------------
20 #include "EvtGenBase/EvtPatches.hh"
22 //-----------------------
23 // This Class's Header --
24 //-----------------------
25 #include "EvtGenModels/EvtItgFunction.hh"
36 EvtItgFunction::EvtItgFunction( double (*theFunction)(double), double lowerRange, double upperRange):
37 EvtItgAbsFunction(lowerRange, upperRange),
38 _myFunction(theFunction)
46 EvtItgFunction::~EvtItgFunction( )
51 EvtItgFunction::myFunction(double x) const{
52 return _myFunction(x);