CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12#include "CLHEP/GenericFunctions/Parameter.hh"
13
14namespace Genfun {
15
16 /**
17 * @author
18 * @ingroup genfun
19 */
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)
Definition: AbsFunction.hh:143
Derivative partial(unsigned int) const override
Definition: Exponential.cc:48
virtual ~Exponential()
Definition: Exponential.cc:21
Parameter & decayConstant()
Definition: Exponential.cc:29
virtual double operator()(double argument) const override
Definition: Exponential.cc:24
virtual bool hasAnalyticDerivative() const override
Definition: Exponential.hh:47
Definition: Abs.hh:14