1 | #ifndef MARS_MTelAxisFromStars
|
---|
2 | #define MARS_MTelAxisFromStars
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MTelAxisFromStars //
|
---|
7 | // //
|
---|
8 | // Task to calculate the position (in the camera)
|
---|
9 | // of certain sky directions (source position, tracking direction, ...)
|
---|
10 | // from the positions (in the camera) of known stars
|
---|
11 | // //
|
---|
12 | /////////////////////////////////////////////////////////////////////////////
|
---|
13 |
|
---|
14 | #ifndef MARS_MTask
|
---|
15 | #include "MTask.h"
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | #ifndef ROOT_TArrayD
|
---|
19 | #include <TArrayD.h>
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | class MReportDrive;
|
---|
23 | class MPointingPos;
|
---|
24 | class MSrcPosCam;
|
---|
25 | class MStarCam;
|
---|
26 | class MSkyCamTrans;
|
---|
27 | class MStarCamTrans;
|
---|
28 |
|
---|
29 | class MTelAxisFromStars : public MTask
|
---|
30 | {
|
---|
31 | private:
|
---|
32 |
|
---|
33 | const MStarCam *fStarCam; //!
|
---|
34 | const MStarCam *fSourceCam; //!
|
---|
35 |
|
---|
36 | MReportDrive *fDrive; //!
|
---|
37 | MPointingPos *fPointPos; //!
|
---|
38 | MPointingPos *fSourcePos; //!
|
---|
39 | MSrcPosCam *fSrcPos; //!
|
---|
40 | MSrcPosCam *fPntPos; //!
|
---|
41 | MSkyCamTrans *fSkyCamTrans; //!
|
---|
42 | MStarCamTrans *fStarCamTrans; //!
|
---|
43 |
|
---|
44 | Double_t fFixedScaleFactor; //!
|
---|
45 | Double_t fFixedRotationAngle; //! [degrees]
|
---|
46 | Double_t fAberr; //! optical aberration factor
|
---|
47 |
|
---|
48 | Int_t fInputType; //! type of input
|
---|
49 |
|
---|
50 | Int_t PreProcess(MParList *pList);
|
---|
51 | Int_t Process();
|
---|
52 |
|
---|
53 | public:
|
---|
54 |
|
---|
55 | MTelAxisFromStars(const char *name=NULL, const char *title=NULL);
|
---|
56 | ~MTelAxisFromStars();
|
---|
57 |
|
---|
58 | void FixScaleFactorAt(Double_t lambda = 1.0);
|
---|
59 | void FixRotationAngleAt(Double_t alfa = 0.0); // alfa in [degrees]
|
---|
60 |
|
---|
61 | void SetOpticalAberr(Double_t aberr);
|
---|
62 | void SetInputType(Int_t type = 1);
|
---|
63 |
|
---|
64 | Bool_t FindSkyCamTrans(TArrayD[2], TArrayD[2], TArrayD[2][2],
|
---|
65 | Double_t &, Double_t &, Double_t &,
|
---|
66 | Double_t &, Double_t[2][2] , Double_t[2], Double_t[2][2],
|
---|
67 | Int_t &, Int_t &, Double_t &, Double_t &);
|
---|
68 |
|
---|
69 | void TransSkyCam(Double_t &, Double_t[2][2], Double_t[2], Double_t[2][2],
|
---|
70 | TArrayD[2], TArrayD[2], TArrayD[2][2]);
|
---|
71 |
|
---|
72 | Bool_t SetPointingPosition(MStarCamTrans *fstarcamtrans,
|
---|
73 | MReportDrive *fdrive, MSkyCamTrans *ftrans, MPointingPos *fpointpos);
|
---|
74 | Bool_t SetSourcePosition(MStarCamTrans *fstarcamtrans,
|
---|
75 | MPointingPos *fpointpos, MPointingPos *fsourcepos, MSrcPosCam *fsrcpos);
|
---|
76 |
|
---|
77 | ClassDef(MTelAxisFromStars, 0) // Task to calculate the source position from star positions
|
---|
78 | };
|
---|
79 |
|
---|
80 | #endif
|
---|
81 |
|
---|
82 |
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 |
|
---|