CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::ClebschGordanCoefficientSet Class Reference

#include <ClebschGordanCoefficientSet.hh>

Public Member Functions

double operator() (unsigned int l1, unsigned int l2, int m1, int m2, int L, int M) const
 

Detailed Description

Definition at line 8 of file ClebschGordanCoefficientSet.hh.

Member Function Documentation

◆ operator()()

double Genfun::ClebschGordanCoefficientSet::operator() ( unsigned int  l1,
unsigned int  l2,
int  m1,
int  m2,
int  L,
int  M 
) const
inline

Definition at line 59 of file ClebschGordanCoefficientSet.hh.

59 {
60 if ((m1+m2)!=M) return 0;
61
62 Key key(l1,l2,m1,m2,L);
63 std::map<Key,double>::iterator i=coeff.find(key),end=coeff.end();
64 if (i==end) {
65 double c = calcCoefficient(l1, l2, L, m1, m2,M);
66 coeff[key]=c;
67 return c;
68 }
69
70 return (*i).second;
71
72 }

The documentation for this class was generated from the following files: