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

Exponential.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: Exponential.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
00003 //---------------------Exponential------------------------------------------//
00004 //                                                                          //
00005 // Class Exponential                                                        //
00006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
00007 //                                                                          //
00008 //--------------------------------------------------------------------------//
00009 #ifndef Exponential_h
00010 #define Exponential_h 1
00011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00012 #include "CLHEP/GenericFunctions/Parameter.hh"
00013 
00014 namespace Genfun {
00015 
00020   class Exponential : public AbsFunction  {
00021 
00022     FUNCTION_OBJECT_DEF(Exponential)
00023 
00024       public:
00025 
00026     // Constructor
00027     Exponential();
00028 
00029     // Copy constructor
00030     Exponential(const Exponential &right);
00031   
00032     // Destructor
00033     virtual ~Exponential();
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     // Get the decay constant
00040     Parameter & decayConstant(); 
00041     const Parameter & decayConstant() const; 
00042   
00043     // Derivative.  
00044     Derivative partial (unsigned int) const;
00045 
00046     // Does this function have an analytic derivative?
00047     virtual bool hasAnalyticDerivative() const {return true;}
00048 
00049   private:
00050 
00051     // It is illegal to assign an adjustable constant
00052     const Exponential & operator=(const Exponential &right);
00053 
00054     // Here is the decay constant
00055     Parameter _decayConstant;
00056 
00057   };
00058 } // namespace Genfun
00059 #endif

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