00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef FixedConstant_h
00014 #define FixedConstant_h 1
00015 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00016
00017 namespace Genfun {
00018
00023 class FixedConstant : public AbsFunction {
00024
00025 FUNCTION_OBJECT_DEF(FixedConstant)
00026
00027 public:
00028
00029
00030 FixedConstant(double value);
00031
00032
00033 FixedConstant(const FixedConstant &right);
00034
00035
00036 virtual ~FixedConstant();
00037
00038
00039 virtual double operator ()(double argument) const;
00040 virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
00041
00042
00043 Derivative partial (unsigned int) const;
00044
00045
00046 virtual bool hasAnalyticDerivative() const {return true;}
00047
00048 private:
00049
00050
00051 const FixedConstant & operator=(const FixedConstant &right);
00052
00053
00054 double _value;
00055 };
00056 }
00057 #endif