source: trunk/Cosy/catalog/SlaPlanets.h@ 19372

Last change on this file since 19372 was 10021, checked in by tbretz, 14 years ago
Added conversion from apparent to mean place for celestial objects to get the meaning of Ra/Dec consistent with the ones in the base classes.
File size: 1.1 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] The result is a rough estimate of ET-UT (after 1984, TT-UT1) at the given epoch, in seconds
30
31 ZdAz fZdAz[10]; // [rad]
32
33 //double fEarth[3]; // heliocentric coordinates
34
35 //ZdAz GetMoonPos() const;
36
37public:
38 SlaPlanets(MObservatory::LocationName_t key);
39
40 void SetMjd(double mjd);
41
42 RaDec CalcPlanetRaDec(ePlanets_t planet) const;
43 void UpdatePlanetPos(ePlanets_t planet);
44 ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
45
46 void SetPlanet(ePlanets_t planet) { Set(CalcPlanetRaDec(planet)/TMath::DegToRad()); }
47
48 ClassDef(SlaPlanets, 0)
49
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.