21#include "EvtGenBase/EvtPatches.hh"
24#include "EvtGenModels/EvtItgThreeCoeffFcn.hh"
32EvtItgThreeCoeffFcn::EvtItgThreeCoeffFcn(
double (*theFunction)(
double,
const std::vector<double> &,
const std::vector<double> &,
const std::vector<double> &),
double lowerRange,
double upperRange,
const std::vector<double> &coeffs1,
const std::vector<double> &coeffs2,
const std::vector<double> &coeffs3):
34 _myFunction(theFunction),
46 return _myFunction(x, _coeffs1, _coeffs2, _coeffs3);
52 if (vect == 1) _coeffs1[which] =
value;
53 else if (vect == 2) _coeffs2[which] =
value;
54 else if (vect == 3) _coeffs3[which] =
value;
60 if (vect == 1)
return _coeffs1[which];
61 else if (vect == 2)
return _coeffs2[which];
62 else if (vect == 3)
return _coeffs3[which];
virtual double value(double x) const
EvtItgThreeCoeffFcn(double(*theFunction)(double, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1, const std::vector< double > &coeffs2, const std::vector< double > &coeffs3)
virtual void setCoeff(int, int, double)
virtual ~EvtItgThreeCoeffFcn()
virtual double getCoeff(int, int)
virtual double myFunction(double x) const