CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ReverseExponential.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: ReverseExponential.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------ReverseExponential-----------------------------------//
4// //
5// Class ReverseExponential..like Exponential but appropriate for describing//
6// negative lifetime tails. //
7// Joe Boudreau, Petar Maksimovic, November 1999 //
8// //
9//--------------------------------------------------------------------------//
10#ifndef ReverseExponential_h
11#define ReverseExponential_h 1
12#include "CLHEP/GenericFunctions/AbsFunction.hh"
13#include "CLHEP/GenericFunctions/Parameter.hh"
14namespace Genfun {
15
16 /**
17 * @author
18 * @ingroup genfun
19 */
21
23
24 public:
25
26 // Constructor
28
29 // Copy constructor
31
32 // Destructor
33 virtual ~ReverseExponential();
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
42 // Derivative.
43 Derivative partial (unsigned int) const override;
44
45 // Does this function have an analytic derivative?
46 virtual bool hasAnalyticDerivative() const override {return true;}
47
48 private:
49
50 // It is illegal to assign an adjustable constant
51 const ReverseExponential & operator=(const ReverseExponential &right);
52
53 // Here is the decay constant
54 Parameter _decayConstant;
55
56 };
57} // namespace Genfun
58
59#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
virtual bool hasAnalyticDerivative() const override
Derivative partial(unsigned int) const override
virtual double operator()(double argument) const override
Definition: Abs.hh:14