CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Exp.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: Exp.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------Exp--------------------------------------------------//
4// //
5// Class Exp //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef Exp_h
10#define Exp_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 Exp : public AbsFunction {
21
23
24 public:
25
26 // Constructor
27 Exp();
28
29 // Copy constructor
30 Exp(const Exp &right);
31
32 // Destructor
33 virtual ~Exp();
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 // Derivative.
40 Derivative partial (unsigned int) const override;
41
42 // Does this function have an analytic derivative?
43 virtual bool hasAnalyticDerivative() const override {return true;}
44
45 private:
46
47 // It is illegal to assign an adjustable constant
48 const Exp & operator=(const Exp &right);
49
50 };
51} // namespace Genfun
52#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
Derivative partial(unsigned int) const override
Definition: Exp.cc:34
virtual double operator()(double argument) const override
Definition: Exp.cc:19
virtual bool hasAnalyticDerivative() const override
Definition: Exp.hh:43
Exp()
Definition: Exp.cc:10
virtual ~Exp()
Definition: Exp.cc:16
Definition: Abs.hh:14