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

Last change on this file since 1744 was 1738, checked in by aubourg, 24 years ago

copyright

File size: 1.9 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2
3// ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
4// Eric Aubourg
5// Christophe Magneville
6// Reza Ansari
7// $Id: map2toi.h,v 1.4 2001-11-08 15:47:45 aubourg Exp $
8
9#ifndef MAP2TOI_H
10#define MAP2TOI_H
11
12#include "toiprocessor.h"
13#include "spherehealpix.h"
14#include "flagtoidef.h"
15#include "xastropack.h"
16
17//-- Un generateur de TOI a partir d'une sphere et de 2 TOIs coordin1,coordin2
18// Lecture de 2 TOI coord1,coord2 et d'une Sphere Healpix
19// Sortie de 3 TOI coord1,coord2,boloMuV
20//
21// Structure generale :
22// Sphere ---- |
23// |
24// -----------
25// toi CoordIn1 ---> | | ---> toi CoordOut1
26// | Map2TOI | ---> toi CoordOut2
27// toi CoordIn2 ---> | | ---> toi BoloOut
28// -----------
29// Gestion du type de coordonnees :
30// Coord1In,Coord2In : soit Equatoriales (Alpha,Delta)
31// soit Galactiques (GLong,GLat)
32// La sphere peut avoir des coordonnees differentes des CoordIn
33// Si les CoordIn et les CoordSphere sont equatoriales -> meme equinoxe!
34// La sortie CoordOut aura les MEMES coordonnees que les CoordIn
35
36class Map2TOI : public TOIProcessor {
37public:
38 Map2TOI(SphereHEALPix<r_8>& sph);
39 virtual ~Map2TOI();
40
41 virtual void init(void);
42 virtual void run(void);
43
44 // Pour savoir si on a de HourDeg,DegDeg,RadRad
45 inline void SetEquinox(double actualyear=2000.)
46 {mActualYear = actualyear;}
47 inline void SetCoorIn(TypAstroCoord mfg=TypCoordGalStd)
48 {mTypCoorIn = mfg;}
49 inline void SetCoorMap(TypAstroCoord mfg=TypCoordGalStd)
50 {mTypCoorMap = mfg;}
51 // Print
52 void Print(ostream & os);
53
54protected:
55 SphereHEALPix<r_8>& mSph;
56 TypAstroCoord mTypCoorIn,mTypCoorMap;
57 double mActualYear;
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.