3#include "CLHEP/GenericFunctions/FunctionConvolution.hh"
12 if ((arg1->dimensionality()!=1) || arg2->dimensionality()!=1) {
14 <<
"Warning: dimension mismatch in function convolution"
22_arg1(right._arg1->clone()),
23_arg2(right._arg2->clone()),
38 const double NDIVISIONS=200.0;
39 double dx = (_x1-_x0)/NDIVISIONS;
41 for (
double x=_x0; x<_x1; x+=dx) {
42 result += (*_arg1)(argument-x)*(*_arg2)(x);
#define FUNCTION_OBJECT_IMP(classname)
virtual double operator()(double argument) const override
virtual ~FunctionConvolution()
FunctionConvolution(const AbsFunction *arg1, const AbsFunction *arg2, double x0, double x1)