CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
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 override;
37 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
38
39 // Get the decay constant
41 const Parameter & decayConstant() const;
42
43 // Derivative.
44 Derivative partial (unsigned int) const override;
45
46 // Does this function have an analytic derivative?
47 virtual bool hasAnalyticDerivative() const override {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)
Derivative partial(unsigned int) const override
virtual double operator()(double argument) const override
Parameter & decayConstant()
Exponential(const Exponential &right)
virtual ~Exponential()
const Parameter & decayConstant() const
virtual bool hasAnalyticDerivative() const override
Definition Abs.hh:14
FunctionNoop Derivative