CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
GenericFunctions
GenericFunctions/CubicSplinePolynomial.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id:
3
// ------------------------------------------------------------------------------//
4
// Natural cubic spline function, used for interpolation //
5
// //
6
// //
7
// Joe Boudreau. //
8
// //
9
// ------------------------------------------------------------------------------//
10
#ifndef _CubicSplinePolynomial_h_
11
#define _CubicSplinePolynomial_h_
12
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
13
#include "
CLHEP/GenericFunctions/Parameter.hh
"
14
#include <vector>
15
namespace
Genfun {
16
21
class
CubicSplinePolynomial:
public
AbsFunction {
22
23
FUNCTION_OBJECT_DEF
(
CubicSplinePolynomial
)
24
25
public:
26
27
// Constructor
28
CubicSplinePolynomial
();
29
30
// Copy constructor
31
CubicSplinePolynomial(const CubicSplinePolynomial &right);
32
33
// Destructor:
34
virtual ~CubicSplinePolynomial();
35
36
// Retreive function value
37
virtual
double
operator ()(
double
argument) const;
38
virtual
double
operator ()(const
Argument
&
a
)
const
{
return
operator()
(a[0]);}
39
40
// Puncture this thing:
41
void
addPoint
(
double
x,
double
y);
42
43
// Get the range:
44
void
getRange
(
double
& min,
double
& max)
const
;
45
46
private
:
47
48
// It is illegal to assign an adjustable constant
49
const
CubicSplinePolynomial
& operator=(
const
CubicSplinePolynomial
&right);
50
51
class
Clockwork;
52
Clockwork *c;
53
54
};
55
}
// namespace Genfun
56
#include "CLHEP/GenericFunctions/CubicSplinePolynomial.icc"
57
#endif
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2