CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
SphericalHarmonicExpansion.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id:
3//---------------------SphericalHarmonicExpansion------------------------------------------//
4// //
5// Class SphericalHarmonicExpansion. This is a fitting function consisting of a super //
6// position of N legendre polynomials. Cascading fractions and phases are //
7// the input parameters. Function is normalized to one (on [-1,1]) //
8// Joe Boudreau, Petar Maksimovic, January 2000 //
9// //
10//--------------------------------------------------------------------------//
11#ifndef SphericalHarmonicExpansion_h
12#define SphericalHarmonicExpansion_h
13#include "CLHEP/GenericFunctions/AbsFunction.hh"
14#include "CLHEP/GenericFunctions/Parameter.hh"
15#include "CLHEP/GenericFunctions/SphericalHarmonicCoefficientSet.hh"
16namespace Genfun {
17
18 /**
19 * @author
20 * @ingroup genfun
21 */
23
25
26 public:
27
29
30 // Constructor. Builds all the
32
33 // Copy constructor
35
36 // Destructor
38
39 // Dimensionality=2. They are; cosTheta (not theta) and phi
40 virtual unsigned int dimensionality() const override {return 2;}
41
42 // Retreive function value
43 virtual double operator ()(double argument) const override; // Gives an error.
44 virtual double operator ()(const Argument & a) const override; // Must use this one
45
46 // Get the expansion coefficients:
49
50 private:
51
52 // It is illegal to assign an adjustable constant
53 const SphericalHarmonicExpansion & operator=(const SphericalHarmonicExpansion &right);
54
55
56 class Clockwork;
57 Clockwork *c;
58
59 };
60} // namespace Genfun
61
62
63
64#include "CLHEP/GenericFunctions/SphericalHarmonicExpansion.icc"
65#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
SphericalHarmonicExpansion(Type type, const SphericalHarmonicCoefficientSet &coefficients)
virtual double operator()(double argument) const override
SphericalHarmonicCoefficientSet & coefficientSet()
SphericalHarmonicExpansion(const SphericalHarmonicExpansion &right)
const SphericalHarmonicCoefficientSet & coefficientSet() const
virtual unsigned int dimensionality() const override
Definition: Abs.hh:14