File indexing completed on 2025-01-18 09:54:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef FixedConstant_h
0014 #define FixedConstant_h 1
0015 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0016
0017 namespace Genfun {
0018
0019
0020
0021
0022
0023 class FixedConstant : public AbsFunction {
0024
0025 FUNCTION_OBJECT_DEF(FixedConstant)
0026
0027 public:
0028
0029
0030 FixedConstant(double value);
0031
0032
0033 FixedConstant(const FixedConstant &right);
0034
0035
0036 virtual ~FixedConstant();
0037
0038
0039 virtual double operator ()(double argument) const override;
0040 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
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 FixedConstant & operator=(const FixedConstant &right);
0052
0053
0054 double _value;
0055 };
0056 }
0057 #endif