CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Legendre.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id:
3// Legendre Functions P_l(x)
4#ifndef Legendre_h
5#define Legendre_h 1
6#include "CLHEP/GenericFunctions/AbsFunction.hh"
7namespace Genfun {
8
9 /**
10 * @author
11 * @ingroup genfun
12 */
13 class Legendre : public AbsFunction {
14
16
17 public:
18
19 // Constructor:
20 Legendre (unsigned int order);
21
22 // Copy constructor
23 Legendre(const Legendre &right);
24
25 // Destructor
26 virtual ~Legendre();
27
28 // Retreive function value
29 virtual double operator ()(double argument) const override;
30 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
31
32 private:
33
34 // It is illegal to assign an adjustable constant
35 const Legendre & operator=(const Legendre &right);
36
37 // The type and order of the Legendre function
38 unsigned int _order;
39
40 };
41
42} // namespace Genfun
43
44
45#include "CLHEP/GenericFunctions/Legendre.icc"
46#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
Legendre(unsigned int order)
virtual double operator()(double argument) const override
Legendre(const Legendre &right)
virtual ~Legendre()
Definition: Abs.hh:14