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
|
---|
[1463] | 26 |
|
---|
| 27 | class TOI2Map : public TOIProcessor {
|
---|
| 28 | public:
|
---|
| 29 | TOI2Map(SphereHEALPix<r_8>* sph,SphereHEALPix<r_8>* wsph=NULL);
|
---|
| 30 | virtual ~TOI2Map();
|
---|
| 31 |
|
---|
[1516] | 32 | virtual void init(void);
|
---|
[1463] | 33 | virtual void run(void);
|
---|
[1516] | 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 |
|
---|
[1463] | 43 | protected:
|
---|
| 44 | SphereHEALPix<r_8>* mSph;
|
---|
| 45 | SphereHEALPix<r_8>* mWSph;
|
---|
| 46 | bool mWSphInternal;
|
---|
[1516] | 47 | TypAstroCoord mTypCoorIn, mTypCoorOut;
|
---|
[1463] | 48 | double mActualYear;
|
---|
| 49 | };
|
---|
| 50 |
|
---|
| 51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.