| 
            Last change
 on this file since 808 was             801, checked in by ansari, 26 years ago           | 
        
        
          | 
             
Fichiers au format unix 
 
dominique 
 
           | 
        
        
          | 
            File size:
            679 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 |                         // Dominique YVON, CEA/DAPNIA/SPP 02/2000
 | 
|---|
| 2 | 
 | 
|---|
| 3 | #ifndef LightCMBPrim_SEEN
 | 
|---|
| 4 | #define LightCMBPrim_SEEN
 | 
|---|
| 5 | #include "spheregorski.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 |     SphereGorski<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.