23#include "EvtGenBase/EvtPatches.hh"
25#include "EvtGenModels/EvtItgAbsFunction.hh"
33#include "EvtGenBase/EvtReport.hh"
37 _upperRange(upperRange),
38 _lowerRange(lowerRange){}
46 if (
x >= _lowerRange &&
x <= _upperRange)
return myFunction(
x);
47 report(
ERROR,
"EvtGen") <<
"Error in EvtItgAbsFunction::value. Given co-ordinate " <<
x
48 <<
" is outside of allowed range [" << _lowerRange <<
", "
49 << _upperRange <<
"]. Returning 0.0" << endl;
ostream & report(Severity severity, const char *facility)
virtual double operator()(double x) const
EvtItgAbsFunction(double lowerRange, double upperRange)
virtual ~EvtItgAbsFunction()
virtual double myFunction(double x) const =0
virtual double value(double x) const