1 //--------------------------------------------------------------------------
4 // This software was developed for the BaBar collaboration. If you
5 // use all or part of it, please give an appropriate acknowledgement.
7 // Copyright Information: See EvtGen/COPYRIGHT
8 // Copyright (C) 1998 LBNL
10 //------------------------------------------------------------------------
12 #ifndef EVTITGFUNCTION_HH
13 #define EVTITGFUNCTION_HH
15 #include "EvtGenModels/EvtItgAbsFunction.hh"
18 * Copyright (C) 1998 LBNL
20 * Generic function where the pointer to the function is available.
22 * The function is taken as type pointer to function returning double and
23 * taking a double (the abscissa) and a const RWTValVector<double> reference
24 * (the parameter values of the function) as arguments.
26 * @see EvtItgFunctionEvtItgFunction
28 * @version $Id: EvtItgFunction.hh,v 1.1 2002/04/19 20:07:47 lange Exp $
30 * @author Phil Strother Originator
33 class EvtItgFunction: public EvtItgAbsFunction {
38 EvtItgFunction( double (*theFunction)(double),
39 double lowerRange, double upperRange);
43 virtual ~EvtItgFunction( );
45 virtual void setCoeff(int, int, double) {};
46 virtual double getCoeff(int, int) {return 0.0;};
52 virtual double myFunction(double x) const;
57 double (*_myFunction)(double x);
59 // Note: if your class needs a copy constructor or an assignment operator,
60 // make one of the following public and implement it.
61 EvtItgFunction( const EvtItgFunction& ); // Copy Constructor
62 EvtItgFunction& operator= ( const EvtItgFunction& ); // Assignment op
65 #endif // EvtITGFUNCTION_HH