source: trunk/MagicSoft/Cosy/catalog/SlaPlanets.h@ 9517

Last change on this file since 9517 was 9516, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef COSY_SlaPlanets
2#define COSY_SlaPlanets
3
4#ifndef COSY_SlaStars
5#include "SlaStars.h"
6#endif
7
8#ifndef MARS_MPointing
9#include "MPointing.h"
10#endif
11
12typedef enum
13{
14 kESun = 0,
15 kEMercury = 1,
16 kEVenus = 2,
17 kEMoon = 3, // earth moon barycentre
18 kEMars = 4,
19 kEJupiter = 5,
20 kESaturn = 6,
21 kEUranus = 7,
22 kENeptune = 8,
23 kEPluto = 9
24} ePlanets_t;
25
26class SlaPlanets : public SlaStars
27{
28private:
29 double fDt; // [mjd] const: rootcint/TMemberInspector
30 double fTt; // [mjd] timescale TT
31
32 ZdAz fZdAz[10]; // [rad]
33
34 double fEarth[3]; // heliocentric coordinates
35
36 ZdAz GetMoonPos() const;
37
38public:
39 SlaPlanets(MObservatory::LocationName_t key);
40
41 void SetMjd(double mjd);
42
43 RaDec CalcPlanetRaDec(ePlanets_t planet);
44 void UpdatePlanetPos(ePlanets_t planet);
45 ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
46
47 void SetPlanet(ePlanets_t planet) { Set(CalcPlanetRaDec(planet)/TMath::DegToRad()); }
48
49 ClassDef(SlaPlanets, 0)
50
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.