CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
FixedConstant.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: FixedConstant.cc,v 1.3 2003/09/06 14:04:14 boudreau Exp $
3
#include "
CLHEP/GenericFunctions/FixedConstant.hh
"
4
#include <assert.h>
5
6
namespace
Genfun {
7
FUNCTION_OBJECT_IMP
(FixedConstant)
8
9
FixedConstant
::
FixedConstant
(
double
value):
10
_value(value)
11
{
12
}
13
14
FixedConstant::FixedConstant
(
const
FixedConstant
& right):
15
_value(right._value) {
16
}
17
18
FixedConstant::~FixedConstant
()
19
{
20
}
21
22
double
FixedConstant::operator ()
(
double
argument)
const
23
{
24
return
_value;
25
}
26
27
Derivative
FixedConstant::partial
(
unsigned
int
index)
const
{
28
assert(index==0);
29
FixedConstant
fPrime(0.0);
30
return
Derivative
(&fPrime);
31
}
32
33
}
// namespace Genfun
Generated on Sun Jun 17 2012 08:08:26 for CLHEP by
1.8.1.1