CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
CLHEP
GenericFunctions
CLHEP/GenericFunctions/FunctionPlusParameter.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: FunctionPlusParameter.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//--------------------------FunctionPlusParameter---------------------------//
4
// //
5
// ConstOverFunction, result of adding a function and a parameter //
6
// Joe Boudreau, Petar Maksimovic, November 1999 //
7
// //
8
//--------------------------------------------------------------------------//
9
10
#ifndef FunctionPlusParameter_h
11
#define FunctionPlusParameter_h 1
12
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
13
14
namespace
Genfun {
15
20
class
FunctionPlusParameter
:
public
AbsFunction
{
21
22
FUNCTION_OBJECT_DEF
(
FunctionPlusParameter
)
23
24
public
:
25
26
// Constructor
27
FunctionPlusParameter
(
const
AbsParameter
*parameter,
const
AbsFunction
*
function
);
28
29
// Copy constructor
30
FunctionPlusParameter
(
const
FunctionPlusParameter
&right);
31
32
// Destructor
33
virtual
~FunctionPlusParameter
();
34
35
// Retreive function value
36
virtual
double
operator ()
(
double
argument)
const
;
37
virtual
double
operator ()
(
const
Argument
&
a
)
const
;
38
39
// Dimensionality
40
virtual
unsigned
int
dimensionality
()
const
;
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 a FunctionPlusParameter
51
const
FunctionPlusParameter
& operator=(
const
FunctionPlusParameter
&right);
52
53
const
AbsFunction
*_function;
54
AbsParameter
*_parameter;
55
56
};
57
}
// namespace Genfun
58
#endif
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2