source: trunk/FACT++/drive/TPointStar.h@ 19246

Last change on this file since 19246 was 18629, checked in by tbretz, 8 years ago
Disentengle from root and Mars were appropriate, some tidying.
File size: 2.1 KB
Line 
1#ifndef COSY_TPointStar
2#define COSY_TPointStar
3
4#ifndef ROOT_TNamed
5#include <TNamed.h>
6#endif
7
8class ZdAz;
9class AltAz;
10
11class MPointing;
12
13class TPointStar : public TNamed
14{
15 friend std::istream &operator>>(std::istream &fin, TPointStar &set);
16 friend std::ostream &operator<<(std::ostream &fout, TPointStar &set);
17private:
18 Double_t fStarAz;
19 Double_t fStarEl;
20
21 Double_t fRawAz;
22 Double_t fRawEl;
23
24 Double_t fMag;
25
26 void Init(const char *name=0, const char *title=0);
27public:
28 TPointStar(const char *name, const char *title=0) { Init(name, title); }
29 TPointStar(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0);
30 TPointStar(const TPointStar &set) : TNamed(set)
31 {
32 fStarAz = set.fStarAz;
33 fStarEl = set.fStarEl;
34 fRawAz = set.fRawAz;
35 fRawEl = set.fRawEl;
36 fMag = set.fMag;
37 }
38
39 Double_t GetMag() const { return fMag; }
40 Double_t GetResidual(Double_t *err=0) const;
41
42 Double_t GetDEl() const;// { return (fRawEl-fStarEl)*TMath::RadToDeg(); }
43 Double_t GetDZd() const;// { return -GetDEl(); }
44 Double_t GetDAz() const;// { return (fRawAz-fStarAz)*TMath::RadToDeg(); }
45 Double_t GetStarEl() const;// { return fStarEl*TMath::RadToDeg(); }
46 Double_t GetStarZd() const;// { return 90.-fStarEl*TMath::RadToDeg(); }
47 Double_t GetStarAz() const;// { return fStarAz*TMath::RadToDeg(); }
48 Double_t GetRawEl() const;// { return fRawEl*TMath::RadToDeg(); }
49 Double_t GetRawAz() const;// { return fRawAz*TMath::RadToDeg(); }
50 Double_t GetRawZd() const;// { return 90.-fRawEl*TMath::RadToDeg(); }
51
52 ZdAz GetStarZdAz() const;// { return ZdAz(TMath::Pi()/2-fStarEl, fStarAz); }
53 AltAz GetStarAltAz() const;// { return AltAz(fStarEl, fStarAz); }
54
55 ZdAz GetRawZdAz() const;// { return ZdAz(TMath::Pi()/2-fRawEl, fRawAz); }
56 AltAz GetRawAltAz() const;// { return AltAz(fRawEl, fRawAz); }
57
58 void Adjust(const MPointing &bend);
59 void AdjustBack(const MPointing &bend);
60};
61
62std::istream &operator>>(std::istream &fin, TPointStar &set);
63std::ostream &operator<<(std::ostream &out, TPointStar &set);
64
65#endif
Note: See TracBrowser for help on using the repository browser.