source: branches/Corsika7405Compatibility/mreport/MReportStarguider.h@ 19116

Last change on this file since 19116 was 7802, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 2.2 KB
Line 
1#ifndef MARS_MReportStarguider
2#define MARS_MReportStarguider
3
4#ifndef MARS_MReport
5#include "MReport.h"
6#endif
7
8#ifndef ROOT_TVector2
9#include <TVector2.h>
10#endif
11
12class MReportStarguider : public MReport
13{
14public:
15 enum { kError=0, kStandby=2, kMonitoring=4 };
16
17private:
18 Double_t fDevAz; // [arcmin] azimuth mispointing
19 Double_t fDevZd; // [arcmin] zenith mispointing
20
21 Double_t fNominalZd; // [deg] Nominal zenith distance
22 Double_t fNominalAz; // [deg] Nominal azimuth
23
24 Float_t fCameraCenterX; // [CCD pix] PMT Camera center found
25 Float_t fCameraCenterY; // [CCD pix] PMT Camera center found
26
27 UInt_t fNumIdentifiedStars; // Number of stars identified by starguider algorithm
28 UInt_t fNumCorrelatedStars; // Number of correlated stars identified by starguider algorithm
29
30 Double_t fSkyBrightness; // [au] Sky Brightness as calcualted from the CCD image
31 Double_t fMjd; // Modified Julian Date matching the nominal position
32
33 Int_t InterpreteBody(TString &str, Int_t ver);
34
35public:
36 MReportStarguider();
37
38 void Clear(Option_t *o="");
39
40 Double_t GetDevAz() const { return fDevAz; }
41 Double_t GetDevZd() const { return fDevZd; }
42 Double_t GetDevAbs() const;
43 TVector2 GetDev() const { return TVector2(fDevZd, fDevAz); }
44
45 Double_t GetNominalZd() const { return fNominalZd; }
46 Double_t GetNominalAz() const { return fNominalAz; }
47 TVector2 GetNominalPos() const { return TVector2(fNominalZd, fNominalAz); }
48
49 Float_t GetCameraCenterX() const { return fCameraCenterX; }
50 Float_t GetCameraCenterY() const { return fCameraCenterY; }
51 TVector2 GetCameraCenter() const { return TVector2(fCameraCenterX, fCameraCenterY); }
52
53 UInt_t GetNumIdentifiedStars() const { return fNumIdentifiedStars; }
54 UInt_t GetNumCorrelatedStars() const { return fNumCorrelatedStars; }
55
56 Double_t GetSkyBrightness() const { return fSkyBrightness; }
57 Double_t GetMjd() const { return fMjd; }
58
59 Bool_t IsMonitoring() const { return GetState()==kMonitoring; }
60
61 void Print(Option_t *o="") const;
62
63 ClassDef(MReportStarguider, 3) // Class for STARG-REPORT information
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.