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

Last change on this file since 8015 was 7600, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.3 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; // [mm]
18 Double_t fDevY; // [mm]
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
30 Double_t GetDevZd() const { return fDevZd; }
31 Double_t GetDevAz() const { return fDevAz; }
32
33 Double_t GetDevX() const { return fDevX; }
34 Double_t GetDevY() const { return fDevY; }
35
36 TVector2 GetDevXY() const { return TVector2(fDevX, fDevY); }
37
38 Double_t GetDevZdRad() const { return fDevZd*TMath::DegToRad(); }
39 Double_t GetDevAzRad() const { return fDevAz*TMath::DegToRad(); }
40
41 ClassDef(MPointingDev, 1) //Container storing the telescope mispointing
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.