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

Last change on this file since 9517 was 9516, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.6 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
23public:
24 SlaStars(MObservatory::LocationName_t key);
25 virtual ~SlaStars();
26
27 // const AltAz GetAltAz() const { return fAltAz*360/D2PI; }
28 const ZdAz GetZdAz() const { return ZdAz(TMath::Pi()/2-fAltAz.Alt(), fAltAz.Az())*TMath::DegToRad(); }
29 const RaDec GetRaDec() const { return fRaDec/TMath::DegToRad(); }
30 const double GetHourAngle() const { return fHourAngle; }
31
32 virtual void SetMjd(double mjd);
33
34 void Set(const AltAz &altaz);
35 void Set(const ZdAz &zdaz);
36 void Set(const RaDec &radec);
37
38 ZdAz GetApproxVel(const RaDec &radec) const; // [rad/rad];
39
40 RaDec CalcRaDec(const AltAz &altaz) const;
41 RaDec CalcRaDec(const ZdAz &altaz) const;
42
43 RaDec CalcRaDecFast(const AltAz &altaz) const;
44 RaDec CalcRaDecFast(const ZdAz &altaz) const;
45
46 AltAz CalcAltAz(const RaDec &radec, double *ha=0) const;
47 ZdAz CalcZdAz (const RaDec &radec, double *ha=0) const;
48
49 AltAz CalcAltAz(const RaDec &radec, double mjd, double *ha=0)
50 { SetMjd(mjd); return CalcAltAz(radec, ha); }
51 ZdAz CalcZdAz (const RaDec &radec, double mjd, double *ha=0)
52 { SetMjd(mjd); return CalcZdAz(radec, ha); }
53
54 AltAz CalcAltAzFast(const RaDec &radec) const;
55 ZdAz CalcZdAzFast (const RaDec &radec) const;
56
57 ClassDef(SlaStars, 0)
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.