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