Last change
on this file since 1959 was 1953, checked in by tbretz, 22 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
2.7 KB
|
Line | |
---|
1 | #ifndef COSY_MGStarguider
|
---|
2 | #define COSY_MGStarguider
|
---|
3 |
|
---|
4 | #ifndef ROOT_TGFrame
|
---|
5 | #include <TGFrame.h>
|
---|
6 | #endif
|
---|
7 | #include "PixClient.h"
|
---|
8 | #ifndef MARS_MObservatory
|
---|
9 | #include "MObservatory.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #include "MGList.h"
|
---|
13 | #include "MGImage.h"
|
---|
14 |
|
---|
15 | #include "coord.h"
|
---|
16 |
|
---|
17 | class TArrayF;
|
---|
18 | class TH1F;
|
---|
19 | class TH2F;
|
---|
20 | class TGraph;
|
---|
21 |
|
---|
22 | class TTimer;
|
---|
23 |
|
---|
24 | class MGMenuBar;
|
---|
25 | class MGPopupMenu;
|
---|
26 | class TGTextEntry;
|
---|
27 |
|
---|
28 | class MGImage;
|
---|
29 | class MGCoordinates;
|
---|
30 |
|
---|
31 | class StarCatalog;
|
---|
32 | class MStarList;
|
---|
33 |
|
---|
34 | class TFile;
|
---|
35 | class TTree;
|
---|
36 | class TBranch;
|
---|
37 |
|
---|
38 | class Leds;
|
---|
39 | class Rings;
|
---|
40 |
|
---|
41 | class MGStarguider : public PixClient, public TGMainFrame
|
---|
42 | {
|
---|
43 | private:
|
---|
44 | MGList *fList;
|
---|
45 |
|
---|
46 | MGMenuBar *fMenu;
|
---|
47 | MGImage *fImage;
|
---|
48 | MGImage *fZoomImage;
|
---|
49 |
|
---|
50 | MGPopupMenu *fDisplay;
|
---|
51 | MGPopupMenu *fWrite;
|
---|
52 | MGPopupMenu *fWritePictures;
|
---|
53 | MGPopupMenu *fFileType;
|
---|
54 | MGPopupMenu *fWriteType;
|
---|
55 | MGPopupMenu *fAnalyse;
|
---|
56 | MGPopupMenu *fCaOs;
|
---|
57 | MGPopupMenu *fWriteRate;
|
---|
58 | MGPopupMenu *fInterpol;
|
---|
59 | MGPopupMenu *fSetup;
|
---|
60 | MGPopupMenu *fLimMag;
|
---|
61 |
|
---|
62 | TFile *fFile;
|
---|
63 | TTree *fTree;
|
---|
64 | TBranch *fBranchL;
|
---|
65 | TBranch *fBranchT;
|
---|
66 | TBranch *fBranchR;
|
---|
67 |
|
---|
68 | Leds *fLeds;
|
---|
69 | Rings *fRings;
|
---|
70 | Double_t fTime;
|
---|
71 |
|
---|
72 | TH1F *fHistpr;
|
---|
73 | TH1F *fHistprx;
|
---|
74 | TH1F *fHistpry;
|
---|
75 | TH1F *fHistw[6];
|
---|
76 | TH1F *fHistallw;
|
---|
77 | TH1F *fHistv[6];
|
---|
78 |
|
---|
79 | TH2F *fHistprxpry;
|
---|
80 |
|
---|
81 | TGraph *fGraphprx;
|
---|
82 | TGraph *fGraphpry;
|
---|
83 | TGraph *fGraphw[6];
|
---|
84 |
|
---|
85 | MGCoordinates *fCRaDec;
|
---|
86 | MGCoordinates *fCZdAz;
|
---|
87 |
|
---|
88 | MGCoordinates *fPZdAz;
|
---|
89 |
|
---|
90 | TGTextEntry *fPixSize;
|
---|
91 | TGTextEntry *fAngle;
|
---|
92 |
|
---|
93 | StarCatalog *fSao;
|
---|
94 |
|
---|
95 | RaDec *fRaDec;
|
---|
96 |
|
---|
97 | TTimer *fTimer;
|
---|
98 |
|
---|
99 | Int_t fDx;
|
---|
100 | Int_t fDy;
|
---|
101 |
|
---|
102 | int fIntRate;
|
---|
103 | int fWrtRate;
|
---|
104 |
|
---|
105 | void SetPixSize(const double pixsize);
|
---|
106 | void Toggle(MGPopupMenu *p, UInt_t id);
|
---|
107 | void GetCoordinates();
|
---|
108 | void CalcTrackingError(Leds &, MStarList &);
|
---|
109 | ZdAz TrackingError(TArrayF &alt, TArrayF &az, TArrayF &mag) const;
|
---|
110 |
|
---|
111 | void InitHists();
|
---|
112 | void InitGraphs();
|
---|
113 | void InitGui();
|
---|
114 |
|
---|
115 | void OpenFile();
|
---|
116 |
|
---|
117 | void ResetHists();
|
---|
118 | void DisplayAnalysis();
|
---|
119 |
|
---|
120 | Bool_t HandleTimer(TTimer *t);
|
---|
121 | //Bool_t HandleKey(Event_t* event);
|
---|
122 |
|
---|
123 | void DrawCircle(byte *img, double r);
|
---|
124 |
|
---|
125 | public:
|
---|
126 | MGStarguider(MObservatory::LocationName_t obs);
|
---|
127 | virtual ~MGStarguider();
|
---|
128 |
|
---|
129 | //void Update();
|
---|
130 |
|
---|
131 | void Layout();
|
---|
132 | void CloseWindow();
|
---|
133 |
|
---|
134 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
---|
135 | Bool_t HandleDoubleClick(Event_t *event);
|
---|
136 |
|
---|
137 | //
|
---|
138 | // Execution of one frame - this function may be overloaded!
|
---|
139 | //
|
---|
140 | void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm);
|
---|
141 |
|
---|
142 | ClassDef(MGStarguider, 0)
|
---|
143 | };
|
---|
144 |
|
---|
145 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.