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

CLHEP/GenericFunctions/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
16 namespace Genfun {
17 
23 
25 
26  public:
27 
28  enum Type {REAL,IMAG,MAG, MAGSQ};
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 {return 2;}
41 
42  // Retreive function value
43  virtual double operator ()(double argument) const; // Gives an error.
44  virtual double operator ()(const Argument & a) const; // 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
Genfun::SphericalHarmonicExpansion::MAGSQ
@ MAGSQ
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:28
Genfun::SphericalHarmonicExpansion::~SphericalHarmonicExpansion
virtual ~SphericalHarmonicExpansion()
a
@ a
Definition: testCategories.cc:125
Parameter.hh
Genfun::AbsFunction
Definition: CLHEP/GenericFunctions/AbsFunction.hh:48
Genfun::SphericalHarmonicCoefficientSet
Definition: CLHEP/GenericFunctions/SphericalHarmonicCoefficientSet.hh:6
Genfun::SphericalHarmonicExpansion::REAL
@ REAL
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:28
AbsFunction.hh
Genfun::SphericalHarmonicExpansion
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:22
Genfun::SphericalHarmonicExpansion::coefficientSet
SphericalHarmonicCoefficientSet & coefficientSet()
type
Signatures of Hep3Vector::rotate For equivalent ZOOM axis There is no harm in leaving this axis CLHEP has implemented a first forming an identity then rotating that by axis and I leave the CLHEP code alone people are of course free to use the ZOOM originated method with signature which I believe will be faster Return types for rotateZ CLHEP and PhysicsVectors each have these three and they are identical except that the ZOOM version returns a reference to while in CLHEP they return void Having methods that alter an object return a reference to that object is convenient for certain chained and costs nothing I don t wish to potentially break ZOOM user code for no good so I have made these CLHEP method conform to this convention There are a couple of other CLHEP rotate and which use the void return type
Definition: minorMergeIssues.doc:113
Genfun::SphericalHarmonicExpansion::dimensionality
virtual unsigned int dimensionality() const
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:40
Genfun::SphericalHarmonicExpansion::Type
Type
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:28
Genfun::Argument
Definition: CLHEP/GenericFunctions/Argument.hh:17
Genfun::SphericalHarmonicExpansion::SphericalHarmonicExpansion
SphericalHarmonicExpansion(Type type, const SphericalHarmonicCoefficientSet &coefficients)
Genfun::SphericalHarmonicExpansion::operator()
virtual double operator()(double argument) const
SphericalHarmonicCoefficientSet.hh
Genfun::SphericalHarmonicExpansion::IMAG
@ IMAG
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:28
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition: CLHEP/GenericFunctions/AbsFunction.hh:144
Genfun::SphericalHarmonicExpansion::MAG
@ MAG
Definition: CLHEP/GenericFunctions/SphericalHarmonicExpansion.hh:28
Genfun
Definition: CLHEP/GenericFunctions/Abs.hh:14