CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Erf.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: Erf.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
00003 //---------------------Erf--------------------------------------------------//
00004 //                                                                          //
00005 // Class Erf                                                                //
00006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
00007 //                                                                          //
00008 //--------------------------------------------------------------------------//
00009 #ifndef Erf_h
00010 #define Erf_h 1
00011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00012 #include "CLHEP/GenericFunctions/Parameter.hh"
00013 #include "CLHEP/GenericFunctions/IncompleteGamma.hh"
00014 namespace Genfun {
00015 
00020   class Erf : public AbsFunction  {
00021     
00022     FUNCTION_OBJECT_DEF(Erf)
00023       
00024       public:
00025     
00026     // Constructor
00027     Erf();
00028     
00029     // Copy constructor
00030     Erf(const Erf &right);
00031     
00032     // Destructor
00033     virtual ~Erf();
00034     
00035     // Retreive function value
00036     virtual double operator ()(double argument) const;
00037     virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
00038 
00039     // Derivative.  
00040     Derivative partial (unsigned int) const;
00041 
00042     // Does this function have an analytic derivative?
00043     virtual bool hasAnalyticDerivative() const {return true;}
00044     
00045   private:
00046     
00047     // It is illegal to assign an adjustable constant
00048     const Erf & operator=(const Erf &right);
00049     
00050     IncompleteGamma _incompleteGamma;
00051     
00052   };
00053 } // namespace Genfun
00054 #endif

Generated on Thu Jul 1 22:02:30 2010 for CLHEP by  doxygen 1.4.7