00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: EvtItgFunction.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $ 00004 // 00005 // Description: 00006 // Class EvtItgFunction 00007 // Implementation for the EvtItgFunction class. Defines the bounds 00008 // checked value() function and the non-bounds checked operator() 00009 // 00010 // Environment: 00011 // Software developed for the BaBar Detector at the SLAC B-Factory. 00012 // 00013 // Author List: 00014 // Phil Strother Originator 00015 // 00016 // Copyright Information: See EvtGen/COPYRIGHT 00017 // Copyright (C) 1998 LBNL 00018 // 00019 //------------------------------------------------------------------------ 00020 #include "EvtGenBase/EvtPatches.hh" 00021 00022 //----------------------- 00023 // This Class's Header -- 00024 //----------------------- 00025 #include "EvtGenModels/EvtItgFunction.hh" 00026 00027 //------------- 00028 // C Headers -- 00029 //------------- 00030 extern "C" { 00031 } 00032 00033 //---------------- 00034 // Constructors -- 00035 //---------------- 00036 EvtItgFunction::EvtItgFunction( double (*theFunction)(double), double lowerRange, double upperRange): 00037 EvtItgAbsFunction(lowerRange, upperRange), 00038 _myFunction(theFunction) 00039 {} 00040 00041 00042 //-------------- 00043 // Destructor -- 00044 //-------------- 00045 00046 EvtItgFunction::~EvtItgFunction( ) 00047 {} 00048 00049 00050 double 00051 EvtItgFunction::myFunction(double x) const{ 00052 return _myFunction(x); 00053 } 00054