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 |
|
---|
11 | class MPointingDev : public MParContainer
|
---|
12 | {
|
---|
13 | private:
|
---|
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 |
|
---|
20 | public:
|
---|
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
|
---|