source: trunk/MagicSoft/Cosy/catalog/Slalib.h@ 1621

Last change on this file since 1621 was 1109, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 908 bytes
Line 
1#ifndef SLALIB_H
2#define SLALIB_H
3
4#include <TROOT.h>
5
6#include "coord.h"
7#include "base/timer.h"
8
9class Slalib : public Timer
10{
11private:
12 double fAlpha;
13 double fMjd;
14
15 double fPhi; // location of observatory
16 double fElong;
17
18public:
19 Slalib();
20 virtual ~Slalib();
21
22 // const AltAz GetAltAz() const { return fAltAz*360/D2PI; }
23 // const ZdAz GetZdAz() const { return ZdAz(DPI/2-fAltAz.Alt(), fAltAz.Az())*360/D2PI; }
24 // const RaDec GetRaDec() const { return fRaDec*360/D2PI; }
25
26 void SetMjd2Now();
27 void SetMjd(const struct timeval *tm);
28
29 virtual void SetMjd(const double mjd);
30
31 double GetAlpha() const { return fAlpha; }
32 double GetMjd() const { return fMjd; }
33
34 double GetPhi() const { return fPhi; }
35 double GetElong() const { return fElong; }
36
37 ZdAz XYZ2ZdAz(double coord[3]) const;
38
39 ClassDef(Slalib, 0)
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.