CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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 $
4#include <assert.h>
5
6namespace Genfun {
7FUNCTION_OBJECT_IMP(FixedConstant)
8
10_value(value)
11{
12}
13
15AbsFunction(right), _value(right._value) {
16}
17
21
22double FixedConstant::operator ()(double) const
23{
24 return _value;
25}
26
27Derivative FixedConstant::partial(unsigned int index) const {
28 assert(index==0);
29 FixedConstant fPrime(0.0);
30 return Derivative(&fPrime);
31}
32
33} // namespace Genfun
#define FUNCTION_OBJECT_IMP(classname)
Derivative partial(unsigned int) const
FixedConstant(double value)
virtual double operator()(double argument) const