CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP/GenericFunctions/Erf.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: Erf.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //---------------------Erf--------------------------------------------------//
4 // //
5 // Class Erf //
6 // Joe Boudreau, Petar Maksimovic, November 1999 //
7 // //
8 //--------------------------------------------------------------------------//
9 #ifndef Erf_h
10 #define Erf_h 1
14 namespace Genfun {
15 
20  class Erf : public AbsFunction {
21 
23 
24  public:
25 
26  // Constructor
27  Erf();
28 
29  // Copy constructor
30  Erf(const Erf &right);
31 
32  // Destructor
33  virtual ~Erf();
34 
35  // Retreive function value
36  virtual double operator ()(double argument) const;
37  virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
38 
39  // Derivative.
40  Derivative partial (unsigned int) const;
41 
42  // Does this function have an analytic derivative?
43  virtual bool hasAnalyticDerivative() const {return true;}
44 
45  private:
46 
47  // It is illegal to assign an adjustable constant
48  const Erf & operator=(const Erf &right);
49 
50  IncompleteGamma _incompleteGamma;
51 
52  };
53 } // namespace Genfun
54 #endif