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

GenericFunctions/Exponential.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: Exponential.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------Exponential------------------------------------------//
4// //
5// Class Exponential //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef Exponential_h
10#define Exponential_h 1
13
14namespace Genfun {
15
20 class Exponential : public AbsFunction {
21
23
24 public:
25
26 // Constructor
28
29 // Copy constructor
30 Exponential(const Exponential &right);
31
32 // Destructor
33 virtual ~Exponential();
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 // Get the decay constant
41 const Parameter & decayConstant() const;
42
43 // Derivative.
44 Derivative partial (unsigned int) const;
45
46 // Does this function have an analytic derivative?
47 virtual bool hasAnalyticDerivative() const {return true;}
48
49 private:
50
51 // It is illegal to assign an adjustable constant
52 const Exponential & operator=(const Exponential &right);
53
54 // Here is the decay constant
55 Parameter _decayConstant;
56
57 };
58} // namespace Genfun
59#endif
#define FUNCTION_OBJECT_DEF(classname)
virtual double operator()(double argument) const
Definition: Exponential.cc:23
virtual bool hasAnalyticDerivative() const
Parameter & decayConstant()
Derivative partial(unsigned int) const
Exponential(const Exponential &right)
virtual ~Exponential()
const Parameter & decayConstant() const
@ a