File indexing completed on 2025-01-18 09:54:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef FunctionDifference_h
0011 #define FunctionDifference_h 1
0012 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0013
0014 namespace Genfun {
0015
0016
0017
0018
0019
0020 class FunctionDifference : public AbsFunction {
0021
0022 FUNCTION_OBJECT_DEF(FunctionDifference)
0023
0024 public:
0025
0026
0027 FunctionDifference(const AbsFunction* arg1, const AbsFunction *arg2);
0028
0029
0030 FunctionDifference(const FunctionDifference &right);
0031
0032
0033 virtual ~FunctionDifference();
0034
0035
0036 virtual double operator ()(double argument) const override;
0037 virtual double operator ()(const Argument & a) const override;
0038
0039
0040 virtual unsigned int dimensionality() const override;
0041
0042
0043 Derivative partial (unsigned int) const override;
0044
0045
0046 virtual bool hasAnalyticDerivative() const override {return true;}
0047
0048 private:
0049
0050
0051 const FunctionDifference & operator=(const FunctionDifference &right);
0052
0053 const AbsFunction *_arg1;
0054 const AbsFunction *_arg2;
0055
0056 };
0057 }
0058 #endif