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

CLHEP/GenericFunctions/Psi2Hydrogen.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id:
3 //----------------------------Psi2Hydrogen----------------------------------//
4 // //
5 // Class Psi2Hydrogen. The hydrogen wavefunction^2 as a function of r //
6 // theta, and phi. //
7 // //
8 // Joe Boudreau April 2002 //
9 // //
10 //--------------------------------------------------------------------------//
11 #ifndef Psi2Hydrogen_h
12 #define Psi2Hydrogen_h 1
15 
16 namespace Genfun {
17 
18  class Psi2Hydrogen : public AbsFunction {
19 
21 
22  public:
23 
24  // Constructor
25  Psi2Hydrogen(unsigned int n, unsigned int l, unsigned int m);
26 
27  // Copy constructor
28  Psi2Hydrogen(const Psi2Hydrogen &right);
29 
30  // Destructor
31  virtual ~Psi2Hydrogen();
32 
33  // Retreive function value
34  virtual double operator ()(double argument) const; // Gives an error
35  virtual double operator ()(const Argument & a) const;// Must use this one
36 
37  // Get the integer variable n
38  unsigned int n() const;
39 
40  // Get the integer variable l
41  unsigned int l() const;
42 
43  // Get the integer variable m
44  unsigned int m() const;
45 
46  private:
47 
48  // It is illegal to assign an adjustable constant
49  const Psi2Hydrogen & operator=(const Psi2Hydrogen &right);
50 
51  // Here is the constant n
52  unsigned int _n;
53 
54  // Here is the constant l
55  unsigned int _l;
56 
57  // Here is the constant m
58  unsigned int _m;
59 
60  // Here is the "work function"
61  const AbsFunction *_function;
62 
63  // This function is needed in all constructors:
64  void create();
65  };
66 
67 }
68 
69 #include "CLHEP/GenericFunctions/Psi2Hydrogen.icc"
70 
71 #endif
72 
#define FUNCTION_OBJECT_DEF(classname)
unsigned int m() const
unsigned int n() const
virtual double operator()(double argument) const
Psi2Hydrogen(unsigned int n, unsigned int l, unsigned int m)
Psi2Hydrogen(const Psi2Hydrogen &right)
unsigned int l() const
@ a