source: Sophya/trunk/ArchTOIPipe/ProcWSophya/map2toi.h@ 1520

Last change on this file since 1520 was 1520, checked in by cmv, 24 years ago

Re-shape de map2toi cmv 12/6/01

File size: 1.6 KB
Line 
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
29class Map2TOI : public TOIProcessor {
30public:
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
45protected:
46 SphereHEALPix<r_8>& mSph;
47 TypAstroCoord mTypCoorIn,mTypCoorMap;
48 double mActualYear;
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.