StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtYlm.h
1 /****************************************************************************
2  * $Id: StHbtYlm.h,v 1.1 2013/01/18 14:46:02 yyang Exp $
3  * **************************************************************************
4  * Description: Part of StHbtCorrFctnDirectYlm utility
5  * Provide ultilities for complex and matrix process.
6  *
7  ***************************************************************************/
8 
9 #ifndef StHbtYlm_hh
10 #define StHbtYlm_hh
11 #include <cstdlib>
12 #include <cmath>
13 #include <complex>
14 
15 namespace StHbtYlm
16 {
17  std::complex<double> Ceiphi(double phi);
18  double Legendre(int ell, double ctheta);
19  std::complex<double> Ylm(int ell, int m, double theta, double phi);
20 
21  double Legendre(int ell, double ctheta);
22 
23  std::complex <double> Ylm(int ell, int m, double x, double y, double z);
24 
25  void YlmUpToL(int lmax, double x, double y, double z, std::complex<double>* ylms);
26  void YlmUpToL(int lmax, double ctheta, double phi, std::complex<double>* ylms);
27 
28  double ReYlm(int ell, int m, double theta, double phi);
29  double ReYlm(int ell, int m, double x, double y, double z);
30  double ImYlm(int ell, int m, double theta, double phi);
31  double ImYlm(int ell, int m, double x, double y, double z);
32 
33 }
34 
35 #endif
36 
37 /*************************************************************************
38  * $Log: StHbtYlm.h,v $
39  * Revision 1.1 2013/01/18 14:46:02 yyang
40  * Add ultilities for SHD of CF
41  *
42  ************************************************************************/