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