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

Last change on this file since 1941 was 1784, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1001 bytes
Line 
1#ifndef SLALIB_H
2#define SLALIB_H
3
4#include <TROOT.h>
5
6#include "coord.h"
7#include "timer.h"
8#include "MObservatory.h"
9
10class Slalib : public Timer, public MObservatory
11{
12private:
13 double fAlpha;
14
15public:
16 Slalib(MObservatory::LocationName_t key);
17 virtual ~Slalib();
18
19 static Double_t Dms2Rad(Int_t deg, UInt_t min, Double_t sec)
20 {
21 /* pi/(180*3600): arcseconds to radians */
22#define DAS2R 4.8481368110953599358991410235794797595635330237270e-6
23 return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec);
24 }
25
26 static Double_t Hms2Rad(Int_t hor, UInt_t min, Double_t sec)
27 {
28 /* pi/(12*3600): seconds of time to radians */
29#define DS2R 7.2722052166430399038487115353692196393452995355905e-5
30 return DS2R * (60.0 * (60.0 * (Double_t)hor + (Double_t)min) + sec);
31 }
32
33 virtual void SetMjd(double mjd);
34
35 double GetAlpha() const { return fAlpha; }
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.