source: Sophya/trunk/SophyaLib/Samba/sphericaltransformserver.h@ 3725

Last change on this file since 3725 was 3613, checked in by ansari, 16 years ago

Adaptation a l'introduction de la suite des classes RandomGeneratorInterface et Cie , Reza 30/04/2009

File size: 3.4 KB
Line 
1#ifndef SPHERICALTRANFORMSERVER_SEEN
2#define SPHERICALTRANFORMSERVER_SEEN
3
4#include "sphericalmap.h"
5#include "fftservintf.h"
6#include "fftpserver.h"
7#include "randinterf.h"
8#include "alm.h"
9#include "lambdaBuilder.h"
10
11
12namespace SOPHYA {
13
14
15template <class T>
16class SphericalTransformServer
17{
18
19 public:
20
21 explicit SphericalTransformServer();
22 explicit SphericalTransformServer(RandomGeneratorInterface& rg);
23 virtual ~SphericalTransformServer();
24 void SetFFTServer(FFTServerInterface* srv=NULL);
25
26
27 void GenerateFromAlm( SphericalMap<T>& map, int_4 pixelSizeIndex, const Alm<T>& alm) const;
28 void GenerateFromAlm(SphericalMap<T>& mapq, SphericalMap<T>& mapu, int_4 pixelSizeIndex, const Alm<T>& alme, const Alm<T>& almb) const;
29
30 void GenerateFromCl(SphericalMap<T>& sph, int_4 pixelSizeIndex,
31 const TVector<T>& Cl, const r_8 fwhm) const;
32 void GenerateFromCl(SphericalMap<T>& sphq, SphericalMap<T>& sphu,
33 int_4 pixelSizeIndex,
34 const TVector<T>& Cle, const TVector<T>& Clb,
35 const r_8 fwhm) const;
36
37
38void DecomposeToAlm(SphericalMap<T>& map, Alm<T>& alm, int_4 nlmax, r_8 cos_theta_cut, int iterationOrder) const;
39void DecomposeToAlm(const SphericalMap<T>& map, Alm<T>& alm, int_4 nlmax, r_8 cos_theta_cut) const;
40
41void DecomposeToAlm(SphericalMap<T>& mapq,
42 SphericalMap<T>& mapu,
43 Alm<T>& alme,
44 Alm<T>& almb,
45 int_4 nlmax,
46 r_8 cos_theta_cut,
47 int iterationOrder) const;
48void DecomposeToAlm(const SphericalMap<T>& mapq,
49 const SphericalMap<T>& mapu,
50 Alm<T>& alme,
51 Alm<T>& almb,
52 int_4 nlmax,
53 r_8 cos_theta_cut) const;
54
55TVector<T> DecomposeToCl(SphericalMap<T>& sph,
56 int_4 nlmax, r_8 cos_theta_cut, int iterationOrder) const;
57
58TVector<T> DecomposeToCl(const SphericalMap<T>& sph,
59 int_4 nlmax, r_8 cos_theta_cut) const;
60
61
62 private:
63
64void carteVersAlm(const SphericalMap<T>& map, int_4 nlmax, r_8 cos_theta_cut, Alm<T>& alm) const;
65
66void carteVersAlm(const SphericalMap<T>& mapq,
67 const SphericalMap<T>& mapu,
68 Alm<T>& alme,
69 Alm<T>& almb,
70 int_4 nlmax,
71 r_8 cos_theta_cut) const;
72
73
74TVector< complex<T> > fourierSynthesisFromB(const Bm<complex<T> >& b_m,
75 int_4 nph, r_8 phi0) const;
76TVector<T> RfourierSynthesisFromB(const Bm<complex<T> >& b_m,
77 int_4 nph, r_8 phi0) const;
78TVector< complex<T> > CFromFourierAnalysis(int_4 mmax,
79 const TVector<complex<T> > datain,
80 r_8 phi0) const;
81 // TVector< complex<T> > CFromFourierAnalysis(int_4 mmax,
82 // const TVector<T> datain,
83 // r_8 phi0) const;
84 void CFromFourierAnalysis(int_4 mmax, const TVector<T> datain,
85 TVector< complex<T> >& dataout,
86 r_8 phi0) const;
87
88 void almFromWX(int_4 nlmax, int_4 nmmax, r_8 phi0,
89 r_8 domega, r_8 theta,
90 const TVector<T>& dataq, const TVector<T>& datau,
91 Alm<T>& alme, Alm<T>& almb) const;
92 void almFromPM(int_4 nph, int_4 nlmax, int_4 nmmax,
93 r_8 phi0, r_8 domega, r_8 theta,
94 const TVector<T>& dataq, const TVector<T>& datau,
95 Alm<T>& alme, Alm<T>& almb) const;
96
97 void mapFromWX(int_4 nlmax, int_4 nmmax,
98 SphericalMap<T>& mapq, SphericalMap<T>& mapu,
99 const Alm<T>& alme, const Alm<T>& almb, bool healpix) const;
100
101
102 void mapFromPM(int_4 nlmax, int_4 nmmax,
103 SphericalMap<T>& mapq, SphericalMap<T>& mapu,
104 const Alm<T>& alme, const Alm<T>& almb) const;
105
106
107
108 FFTServerInterface* fftIntfPtr_;
109 mutable RandomGeneratorInterface* rgp_;
110
111};
112} // Fin du namespace
113
114
115#endif
Note: See TracBrowser for help on using the repository browser.