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"
|
---|
7 | #include "flagtoidef.h"
|
---|
8 | #include "xastropack.h"
|
---|
9 |
|
---|
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
|
---|
13 | //
|
---|
14 | // Structure generale :
|
---|
15 | // Sphere ---- |
|
---|
16 | // |
|
---|
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
|
---|
28 |
|
---|
29 | class Map2TOI : public TOIProcessor {
|
---|
30 | public:
|
---|
31 | Map2TOI(SphereHEALPix<r_8>& sph);
|
---|
32 | virtual ~Map2TOI();
|
---|
33 |
|
---|
34 | virtual void init(void);
|
---|
35 | virtual void run(void);
|
---|
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 | // Print
|
---|
45 | void Print(ostream & os);
|
---|
46 |
|
---|
47 | protected:
|
---|
48 | SphereHEALPix<r_8>& mSph;
|
---|
49 | TypAstroCoord mTypCoorIn,mTypCoorMap;
|
---|
50 | double mActualYear;
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif
|
---|