File indexing completed on 2025-01-30 10:03:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef FloatingConstant_h
0014 #define FloatingConstant_h 1
0015 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0016 #include "CLHEP/GenericFunctions/Parameter.hh"
0017
0018 namespace Genfun {
0019
0020
0021
0022
0023
0024 class FloatingConstant : public AbsFunction {
0025
0026 FUNCTION_OBJECT_DEF(FloatingConstant)
0027
0028 public:
0029
0030
0031 FloatingConstant(const AbsParameter & p);
0032
0033
0034 FloatingConstant(const FloatingConstant &right);
0035
0036
0037 virtual ~FloatingConstant();
0038
0039
0040 AbsParameter & value();
0041
0042
0043 virtual double operator ()(double argument) const override;
0044 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0045
0046
0047 Derivative partial (unsigned int) const override;
0048
0049
0050 virtual bool hasAnalyticDerivative() const override {return true;}
0051
0052 private:
0053
0054
0055 const FloatingConstant & operator=(const FloatingConstant &right);
0056
0057
0058 AbsParameter *_value;
0059 };
0060 }
0061 #endif