source: trunk/MagicSoft/Mars/mpointing/MPointingPos.h@ 3589

Last change on this file since 3589 was 3568, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MPointingPos
2#define MARS_MPointingPos
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MTime;
9class MObservatory;
10
11class MPointingPos : public MParContainer
12{
13private:
14 Double_t fZd; // [deg] Zenith distance (ZA)
15 Double_t fAz; // [deg] Azimuth
16
17 Double_t fRa; // [rad] Right ascension
18 Double_t fHa; // [rad] Hour angle
19 Double_t fDec; // [rad] Declination
20
21public:
22 MPointingPos()
23 {
24 fName = "MPointingPos";
25 fTitle = "Container storing the (corrected) telescope pointing position";
26 }
27
28 void SetLocalPosition(Double_t zd, Double_t az) { fZd=zd; fAz=az; }
29 void SetSkyPosition(Double_t ra, Double_t dec, Double_t ha=0) { fRa=ra; fDec=dec; fHa=ha; }
30
31 Double_t GetZd() const { return fZd; }
32 Double_t GetAz() const { return fAz; }
33
34 Double_t GetRa() const { return fRa; }
35 Double_t GetDec() const { return fDec; }
36
37 Double_t RotationAngle(const MObservatory &o) const;
38 Double_t RotationAngle(const MObservatory &o, const MTime &t) const;
39
40 ClassDef(MPointingPos, 1) //Container storing the (corrected) telescope pointing position
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.