CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
AssociatedLegendre.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: AssociatedLegendre.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------AssociatedLegendre-----------------------------------//
4// //
5// Class AssociatedLegendre. An associated legendre polynomial //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef AssociatedLegendre_h
10#define AssociatedLegendre_h 1
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12#include "CLHEP/GenericFunctions/Parameter.hh"
13
14namespace Genfun {
15
16 /**
17 * @author
18 * @ingroup genfun
19 */
21
23
24 public:
25
26 // Constructor
27 AssociatedLegendre(unsigned int l, unsigned int m);
28
29 // Copy constructor
31
32 // Destructor
34
35 // Retreive function value
36 virtual double operator ()(double argument) const override;
37 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
38
39 // Get the integer variable l
40 unsigned int l() const;
41
42 // Get the integer variable mj
43 unsigned int m() const;
44
45 private:
46
47 // It is illegal to assign an adjustable constant
48 const AssociatedLegendre & operator=(const AssociatedLegendre &right);
49
50 // Here is the decay constant
51 unsigned int _l;
52
53 // Here is the sigma
54 unsigned int _m;
55
56 };
57
58} // namespace Genfun
59
60#include "CLHEP/GenericFunctions/AssociatedLegendre.icc"
61
62
63#endif
64
65
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
AssociatedLegendre(unsigned int l, unsigned int m)
virtual double operator()(double argument) const override
AssociatedLegendre(const AssociatedLegendre &right)
unsigned int l() const
unsigned int m() const
Definition: Abs.hh:14