Rev | Line | |
---|
[1463] | 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"
|
---|
[1516] | 7 | #include "flagtoidef.h"
|
---|
| 8 | #include "xastropack.h"
|
---|
[1463] | 9 |
|
---|
| 10 | //-- Un projecteur de TOI sur une sphere Healpix
|
---|
[1516] | 11 | // Lecture de 3 TOI coord1,coord2,boloMuV
|
---|
| 12 | // Sortie pas de TOI, une (2) sphere(s) Healpix
|
---|
[1463] | 13 | //
|
---|
| 14 | // Structure generale :
|
---|
[1516] | 15 | // |---->Sphere
|
---|
| 16 | // |
|
---|
| 17 | // -----------
|
---|
[1498] | 18 | // toi Coord1In ---> | |
|
---|
| 19 | // toi Coord2In ---> | TOI2Map |
|
---|
[1516] | 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
|
---|
[1520] | 26 | // Si les CoordIn et les CoordOut sont equatoriales -> meme equinoxe!
|
---|
[1463] | 27 |
|
---|
| 28 | class TOI2Map : public TOIProcessor {
|
---|
| 29 | public:
|
---|
| 30 | TOI2Map(SphereHEALPix<r_8>* sph,SphereHEALPix<r_8>* wsph=NULL);
|
---|
| 31 | virtual ~TOI2Map();
|
---|
| 32 |
|
---|
[1516] | 33 | virtual void init(void);
|
---|
[1463] | 34 | virtual void run(void);
|
---|
[1516] | 35 |
|
---|
| 36 | // Coordonnees donnees en entree et en sortie
|
---|
| 37 | inline void SetEquinox(double actualyear=2000.)
|
---|
| 38 | {mActualYear = actualyear;}
|
---|
| 39 | inline void SetCoorIn(TypAstroCoord mfg=TypCoordGalStd)
|
---|
| 40 | {mTypCoorIn = mfg;}
|
---|
| 41 | inline void SetCoorOut(TypAstroCoord mfg=TypCoordGalStd)
|
---|
| 42 | {mTypCoorOut = mfg;}
|
---|
| 43 |
|
---|
[1463] | 44 | protected:
|
---|
| 45 | SphereHEALPix<r_8>* mSph;
|
---|
| 46 | SphereHEALPix<r_8>* mWSph;
|
---|
| 47 | bool mWSphInternal;
|
---|
[1516] | 48 | TypAstroCoord mTypCoorIn, mTypCoorOut;
|
---|
[1463] | 49 | double mActualYear;
|
---|
| 50 | };
|
---|
| 51 |
|
---|
| 52 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.