| Line |   | 
|---|
| 1 |                         // Dominique YVON, CEA/DAPNIA/SPP 02/2000
 | 
|---|
| 2 | 
 | 
|---|
| 3 | #ifndef LightCMBPrim_SEEN
 | 
|---|
| 4 | #define LightCMBPrim_SEEN
 | 
|---|
| 5 | #include "spherehealpix.h" 
 | 
|---|
| 6 | #include "lightsrcsep.h"
 | 
|---|
| 7 | 
 | 
|---|
| 8 | class LightCMBPrim:public LightSrcDiffBlackBody
 | 
|---|
| 9 | {
 | 
|---|
| 10 |  public:
 | 
|---|
| 11 |     LightCMBPrim(int_4 nside=256);
 | 
|---|
| 12 |         // nside de la carte Gorsky
 | 
|---|
| 13 |         // Variane required for sky fluctuationss
 | 
|---|
| 14 |     virtual ~LightCMBPrim();
 | 
|---|
| 15 |  protected:
 | 
|---|
| 16 |         double Variance;
 | 
|---|
| 17 |     SphereHEALPix<float>*  pMap;
 | 
|---|
| 18 |     int_4 nlat;
 | 
|---|
| 19 |     
 | 
|---|
| 20 |     virtual double DeltaT(double theta,double phi) {
 | 
|---|
| 21 |         int_4 index=pMap->PixIndexSph(theta,phi);       
 | 
|---|
| 22 |                 // La carte est en DT/T * 1.e6 
 | 
|---|
| 23 |                 double valeur=pMap->PixVal(index)*T_CMBR*1.e-6;
 | 
|---|
| 24 |                 return valeur; // En Kelvin
 | 
|---|
| 25 |     }
 | 
|---|
| 26 | };
 | 
|---|
| 27 | 
 | 
|---|
| 28 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.