| Line |   | 
|---|
| 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
| 2 | #ifndef TOI2MAP_H
 | 
|---|
| 3 | #define TOI2MAP_H
 | 
|---|
| 4 | 
 | 
|---|
| 5 | #include "toiprocessor.h"
 | 
|---|
| 6 | #include "spherehealpix.h"
 | 
|---|
| 7 | #include "flagtoidef.h"
 | 
|---|
| 8 | #include "xastropack.h"
 | 
|---|
| 9 | 
 | 
|---|
| 10 | //-- Un projecteur de TOI sur une sphere Healpix
 | 
|---|
| 11 | // Lecture de 3 TOI coord1,coord2,boloMuV
 | 
|---|
| 12 | // Sortie pas de TOI, une (2) sphere(s) Healpix
 | 
|---|
| 13 | //
 | 
|---|
| 14 | // Structure generale :
 | 
|---|
| 15 | //                          |---->Sphere
 | 
|---|
| 16 | //                          |
 | 
|---|
| 17 | //                     -----------
 | 
|---|
| 18 | //   toi Coord1In ---> |         |
 | 
|---|
| 19 | //   toi Coord2In ---> | TOI2Map |
 | 
|---|
| 20 | //   toi BoloIn   ---> |         |
 | 
|---|
| 21 | //                     -----------
 | 
|---|
| 22 | // Gestion du type de coordonnees :
 | 
|---|
| 23 | // Coord1In,Coord2In : soit Equatoriales (Alpha,Delta)
 | 
|---|
| 24 | //                     soit Galactiques  (GLong,GLat)
 | 
|---|
| 25 | // Sortie sur une sphere en coordonnees Equatoriales ou Galactiques
 | 
|---|
| 26 | 
 | 
|---|
| 27 | class TOI2Map : public TOIProcessor {
 | 
|---|
| 28 | public:
 | 
|---|
| 29 |                  TOI2Map(SphereHEALPix<r_8>* sph,SphereHEALPix<r_8>* wsph=NULL);
 | 
|---|
| 30 |   virtual       ~TOI2Map();
 | 
|---|
| 31 | 
 | 
|---|
| 32 |   virtual void  init(void);
 | 
|---|
| 33 |   virtual void  run(void);
 | 
|---|
| 34 | 
 | 
|---|
| 35 |   // Coordonnees donnees en entree et en sortie
 | 
|---|
| 36 |   inline void SetEquinox(double actualyear=2000.)
 | 
|---|
| 37 |               {mActualYear = actualyear;}
 | 
|---|
| 38 |   inline void SetCoorIn(TypAstroCoord mfg=TypCoordGalStd)
 | 
|---|
| 39 |               {mTypCoorIn = mfg;}
 | 
|---|
| 40 |   inline void SetCoorOut(TypAstroCoord mfg=TypCoordGalStd)
 | 
|---|
| 41 |               {mTypCoorOut = mfg;}
 | 
|---|
| 42 | 
 | 
|---|
| 43 | protected:
 | 
|---|
| 44 |   SphereHEALPix<r_8>* mSph;
 | 
|---|
| 45 |   SphereHEALPix<r_8>* mWSph;
 | 
|---|
| 46 |   bool mWSphInternal;
 | 
|---|
| 47 |   TypAstroCoord mTypCoorIn, mTypCoorOut;
 | 
|---|
| 48 |   double mActualYear;
 | 
|---|
| 49 | };
 | 
|---|
| 50 | 
 | 
|---|
| 51 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.