source: trunk/Cosy/catalog/SlaStars.h@ 9928

Last change on this file since 9928 was 9554, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef COSY_SlaStars
2#define COSY_SlaStars
3
4#ifndef COSY_Slalib
5#include "Slalib.h"
6#endif
7
8#ifndef MARS_MPointing
9#include "MPointing.h"
10#endif
11
12class SlaStars : public Slalib
13{
14private:
15 AltAz fAltAz; // [rad]
16 RaDec fRaDec; // [rad]
17
18 Double_t fHourAngle; // [h]
19
20 double fAmprms[21];
21 double fAoprms[14];
22
23 double fTt; // [mjd] timescale TT
24
25public:
26 SlaStars(MObservatory::LocationName_t key);
27 virtual ~SlaStars() { }
28
29 // const AltAz GetAltAz() const { return fAltAz*360/D2PI; }
30 const ZdAz GetZdAz() const { return ZdAz(TMath::Pi()/2-fAltAz.Alt(), fAltAz.Az())/TMath::DegToRad(); }
31 const ZdAz GetZdAzRad() const { return ZdAz(TMath::Pi()/2-fAltAz.Alt(), fAltAz.Az()); }
32 const RaDec GetRaDec() const { return fRaDec/TMath::DegToRad(); }
33 const RaDec GetRaDecRad() const { return fRaDec; }
34 const double GetHourAngle() const { return fHourAngle; }
35
36 const double GetTT() const { return fTt; }
37
38 virtual void SetMjd(double mjd);
39
40 void Set(const AltAz &altaz);
41 void Set(const ZdAz &zdaz);
42 void Set(const RaDec &radec);
43
44 ZdAz GetApproxVel(const RaDec &radec) const; // [rad/rad];
45
46 RaDec CalcRaDec(const AltAz &altaz) const;
47 RaDec CalcRaDec(const ZdAz &altaz) const;
48
49 RaDec CalcRaDecFast(const AltAz &altaz) const;
50 RaDec CalcRaDecFast(const ZdAz &altaz) const;
51
52 AltAz CalcAltAz(const RaDec &radec, double *ha=0) const;
53 ZdAz CalcZdAz (const RaDec &radec, double *ha=0) const;
54
55 AltAz CalcAltAz(const RaDec &radec, double mjd, double *ha=0)
56 { SetMjd(mjd); return CalcAltAz(radec, ha); }
57 ZdAz CalcZdAz (const RaDec &radec, double mjd, double *ha=0)
58 { SetMjd(mjd); return CalcZdAz(radec, ha); }
59
60 AltAz CalcAltAzFast(const RaDec &radec) const;
61 ZdAz CalcZdAzFast (const RaDec &radec) const;
62
63 ClassDef(SlaStars, 0)
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.