CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
GenericFunctions
GenericFunctions/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
"
14
namespace
Genfun {
15
20
class
ReverseExponential :
public
AbsFunction {
21
22
FUNCTION_OBJECT_DEF
(
ReverseExponential
)
23
24
public:
25
26
// Constructor
27
ReverseExponential
();
28
29
// Copy constructor
30
ReverseExponential(const ReverseExponential &right);
31
32
// Destructor
33
virtual ~ReverseExponential();
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
40
Parameter
&
decayConstant
();
41
42
// Derivative.
43
Derivative
partial
(
unsigned
int
)
const
;
44
45
// Does this function have an analytic derivative?
46
virtual
bool
hasAnalyticDerivative
()
const
{
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
Parameter.hh
Genfun::ReverseExponential::operator()
virtual double operator()(double argument) const
Definition:
ReverseExponential.cc:23
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition:
CLHEP/GenericFunctions/AbsFunction.hh:144
Genfun::ReverseExponential::decayConstant
Parameter & decayConstant()
Definition:
ReverseExponential.cc:28
Genfun::ReverseExponential::hasAnalyticDerivative
virtual bool hasAnalyticDerivative() const
Definition:
GenericFunctions/ReverseExponential.hh:46
a
Definition:
testCategories.cc:125
AbsFunction.hh
Genfun::Argument
Definition:
CLHEP/GenericFunctions/Argument.hh:17
Genfun::FunctionNoop
Definition:
CLHEP/GenericFunctions/FunctionNoop.hh:19
Genfun::Parameter
Definition:
CLHEP/GenericFunctions/Parameter.hh:35
Genfun::ReverseExponential::ReverseExponential
ReverseExponential()
Definition:
ReverseExponential.cc:10
Genfun::ReverseExponential::partial
Derivative partial(unsigned int) const
Definition:
ReverseExponential.cc:33
Genfun::ReverseExponential
Definition:
CLHEP/GenericFunctions/ReverseExponential.hh:20
Generated on Sat Apr 26 2014 20:36:38 for CLHEP by
1.8.6