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