[1463] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | #ifndef MAP2TOI_H
|
---|
| 3 | #define MAP2TOI_H
|
---|
| 4 |
|
---|
| 5 | #include "toiprocessor.h"
|
---|
| 6 | #include "spherehealpix.h"
|
---|
[1520] | 7 | #include "flagtoidef.h"
|
---|
| 8 | #include "xastropack.h"
|
---|
[1463] | 9 |
|
---|
[1520] | 10 | //-- Un generateur de TOI a partir d'une sphere et de 2 TOIs coordin1,coordin2
|
---|
| 11 | // Lecture de 2 TOI coord1,coord2 et d'une Sphere Healpix
|
---|
| 12 | // Sortie de 3 TOI coord1,coord2,boloMuV
|
---|
[1463] | 13 | //
|
---|
| 14 | // Structure generale :
|
---|
| 15 | // Sphere ---- |
|
---|
| 16 | // |
|
---|
[1520] | 17 | // -----------
|
---|
| 18 | // toi CoordIn1 ---> | | ---> toi CoordOut1
|
---|
| 19 | // | Map2TOI | ---> toi CoordOut2
|
---|
| 20 | // toi CoordIn2 ---> | | ---> toi BoloOut
|
---|
| 21 | // -----------
|
---|
| 22 | // Gestion du type de coordonnees :
|
---|
| 23 | // Coord1In,Coord2In : soit Equatoriales (Alpha,Delta)
|
---|
| 24 | // soit Galactiques (GLong,GLat)
|
---|
| 25 | // La sphere peut avoir des coordonnees differentes des CoordIn
|
---|
| 26 | // Si les CoordIn et les CoordSphere sont equatoriales -> meme equinoxe!
|
---|
| 27 | // La sortie CoordOut aura les MEMES coordonnees que les CoordIn
|
---|
[1463] | 28 |
|
---|
| 29 | class Map2TOI : public TOIProcessor {
|
---|
| 30 | public:
|
---|
| 31 | Map2TOI(SphereHEALPix<r_8>& sph);
|
---|
| 32 | virtual ~Map2TOI();
|
---|
| 33 |
|
---|
[1520] | 34 | virtual void init(void);
|
---|
[1463] | 35 | virtual void run(void);
|
---|
[1520] | 36 |
|
---|
| 37 | // Pour savoir si on a de HourDeg,DegDeg,RadRad
|
---|
| 38 | inline void SetEquinox(double actualyear=2000.)
|
---|
| 39 | {mActualYear = actualyear;}
|
---|
| 40 | inline void SetCoorIn(TypAstroCoord mfg=TypCoordGalStd)
|
---|
| 41 | {mTypCoorIn = mfg;}
|
---|
| 42 | inline void SetCoorMap(TypAstroCoord mfg=TypCoordGalStd)
|
---|
| 43 | {mTypCoorMap = mfg;}
|
---|
| 44 |
|
---|
[1463] | 45 | protected:
|
---|
| 46 | SphereHEALPix<r_8>& mSph;
|
---|
[1520] | 47 | TypAstroCoord mTypCoorIn,mTypCoorMap;
|
---|
| 48 | double mActualYear;
|
---|
[1463] | 49 | };
|
---|
| 50 |
|
---|
| 51 | #endif
|
---|