source: trunk/MagicSoft/Mars/mpointing/MPointingDev.h@ 9029

Last change on this file since 9029 was 8912, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MPointingDev
2#define MARS_MPointingDev
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7#ifndef ROOT_TVector2
8#include <TVector2.h>
9#endif
10
11class MPointingDev : public MParContainer
12{
13private:
14 Double_t fDevZd; // [deg] Pointing offset zenith distance as calculated from starguider data
15 Double_t fDevAz; // [deg] Pointing offset azimuth as calculated from starguider dat
16
17 Double_t fDevX; // [deg] Pointing offset in x
18 Double_t fDevY; // [deg] Pointing offset in y
19
20public:
21 MPointingDev(const char *name=0, const char *title=0) : fDevZd(0), fDevAz(0), fDevX(0), fDevY(0)
22 {
23 fName = name ? name : "MPointingDev";
24 fTitle = title ? title : "Container storing the telescope mispointing";
25 }
26
27 void SetDevZdAz(Double_t devzd, Double_t devaz) { fDevZd=devzd; fDevAz=devaz; }
28 void SetDevXY(Double_t dx, Double_t dy) { fDevX=dx; fDevY=dy; }
29 void SetDevXY(const TVector2 &d) { fDevX=d.X(); fDevY=d.Y(); }
30
31 Double_t GetDevZd() const { return fDevZd; }
32 Double_t GetDevAz() const { return fDevAz; }
33
34 Double_t GetDevX() const { return fDevX; }
35 Double_t GetDevY() const { return fDevY; }
36
37 TVector2 GetDevXY() const { return TVector2(fDevX, fDevY); }
38
39 Double_t GetDevZdRad() const;// { return fDevZd*TMath::DegToRad(); }
40 Double_t GetDevAzRad() const;// { return fDevAz*TMath::DegToRad(); }
41
42 ClassDef(MPointingDev, 1) //Container storing the telescope mispointing
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.