Gaudi Framework, version v25r0
Home
Generated: Mon Feb 17 2014
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiGSL
GaudiMath
Constant.h
Go to the documentation of this file.
1
// $Id: Constant.h,v 1.1 2003/11/19 17:09:39 mato Exp $
2
// ============================================================================
3
#ifndef GAUDIMATH_CONSTANT_H
4
#define GAUDIMATH_CONSTANT_H 1
5
// ============================================================================
6
// Include files
7
// ============================================================================
8
// CLHEP
9
// ============================================================================
10
#include "CLHEP/GenericFunctions/AbsFunction.hh"
11
// ============================================================================
12
#include "
GaudiKernel/Kernel.h
"
13
14
namespace
Genfun
// due to CLHEP
15
{
16
namespace
GaudiMathImplementation
17
{
25
class
GAUDI_API
Constant
:
public
AbsFunction
26
{
27
public
:
28
30
FUNCTION_OBJECT_DEF(
Constant
)
31
32
public
:
33
38
Constant
(
const
double
value ,
39
const
size_t
dim ) ;
40
42
Constant
(
const
Constant
&
right
) ;
43
45
virtual
~
Constant
();
46
47
public
:
48
50
virtual
unsigned
int
dimensionality
()
const
{
return
m_DIM ; }
52
virtual
bool
hasAnalyticDerivative
()
const
{
return
true ; }
54
virtual
double
operator() (
double
)
const
{
return
m_value ; }
56
virtual
double
operator() (
const
Argument& )
const
{
return
m_value ; }
58
virtual
Derivative
partial (
unsigned
int
i
)
const
;
59
60
private
:
61
62
// the default constructor is disabled
63
Constant
() ;
64
// the assignement operator is disabled
65
Constant
& operator=(
const
Constant
& );
66
67
private
:
68
69
double
m_value
;
70
size_t
m_DIM
;
71
72
};
73
74
}
// end of namespace GaudiMathImplementation
75
}
// end of namespace Genfun
76
77
// ============================================================================
78
// The END
79
// ============================================================================
80
#endif // GAUDIMATH_CONSTANT_H
81
// ============================================================================
Generated at Mon Feb 17 2014 14:37:41 for Gaudi Framework, version v25r0 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004