1 | #ifndef COSY_TPointStar
|
---|
2 | #define COSY_TPointStar
|
---|
3 |
|
---|
4 | #ifndef ROOT_TObject
|
---|
5 | #include <TObject.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | //class istream;
|
---|
9 | //class ostream;
|
---|
10 |
|
---|
11 | class ZdAz;
|
---|
12 | class AltAz;
|
---|
13 |
|
---|
14 | class MPointing;
|
---|
15 |
|
---|
16 | class TPointStar : public TObject
|
---|
17 | {
|
---|
18 | friend istream &operator>>(istream &fin, TPointStar &set);
|
---|
19 | friend ostream &operator<<(ostream &fout, TPointStar &set);
|
---|
20 | private:
|
---|
21 | Double_t fStarAz;
|
---|
22 | Double_t fStarEl;
|
---|
23 |
|
---|
24 | Double_t fRawAz;
|
---|
25 | Double_t fRawEl;
|
---|
26 |
|
---|
27 | Double_t fMag;
|
---|
28 | public:
|
---|
29 | TPointStar(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0);/*
|
---|
30 | fStarAz(saz*TMath::DegToRad()),
|
---|
31 | fStarEl(sel*TMath::DegToRad()),
|
---|
32 | fRawAz(raz*TMath::DegToRad()),
|
---|
33 | fRawEl(rel*TMath::DegToRad()), fMag(-25)
|
---|
34 | {
|
---|
35 | }*/
|
---|
36 |
|
---|
37 | Double_t GetMag() const { return fMag; }
|
---|
38 | Double_t GetResidual(Double_t *err) const;
|
---|
39 | Double_t GetResidual() const;
|
---|
40 |
|
---|
41 | void operator=(TPointStar &set)
|
---|
42 | {
|
---|
43 | fStarAz = set.fStarAz;
|
---|
44 | fStarEl = set.fStarEl;
|
---|
45 | fRawAz = set.fRawAz;
|
---|
46 | fRawEl = set.fRawEl;
|
---|
47 | fMag = set.fMag;
|
---|
48 | }
|
---|
49 |
|
---|
50 | Double_t GetDEl() const;// { return (fRawEl-fStarEl)*TMath::RadToDeg(); }
|
---|
51 | Double_t GetDZd() const;// { return -GetDEl(); }
|
---|
52 | Double_t GetDAz() const;// { return (fRawAz-fStarAz)*TMath::RadToDeg(); }
|
---|
53 | Double_t GetStarEl() const;// { return fStarEl*TMath::RadToDeg(); }
|
---|
54 | Double_t GetStarZd() const;// { return 90.-fStarEl*TMath::RadToDeg(); }
|
---|
55 | Double_t GetStarAz() const;// { return fStarAz*TMath::RadToDeg(); }
|
---|
56 | Double_t GetRawEl() const;// { return fRawEl*TMath::RadToDeg(); }
|
---|
57 | Double_t GetRawAz() const;// { return fRawAz*TMath::RadToDeg(); }
|
---|
58 | Double_t GetRawZd() const;// { return 90.-fRawEl*TMath::RadToDeg(); }
|
---|
59 |
|
---|
60 | ZdAz GetStarZdAz() const;// { return ZdAz(TMath::Pi()/2-fStarEl, fStarAz); }
|
---|
61 | AltAz GetStarAltAz() const;// { return AltAz(fStarEl, fStarAz); }
|
---|
62 |
|
---|
63 | ZdAz GetRawZdAz() const;// { return ZdAz(TMath::Pi()/2-fRawEl, fRawAz); }
|
---|
64 | AltAz GetRawAltAz() const;// { return AltAz(fRawEl, fRawAz); }
|
---|
65 |
|
---|
66 | void AdjustEl(Double_t del);// { fStarEl += del*TMath::DegToRad(); }
|
---|
67 | void AdjustAz(Double_t daz);// { fStarAz += daz*TMath::DegToRad(); }
|
---|
68 |
|
---|
69 | void Adjust(const MPointing &bend);/*
|
---|
70 | {
|
---|
71 | AltAz p = bend(GetStarAltAz());
|
---|
72 | fStarEl = p.Alt();
|
---|
73 | fStarAz = p.Az();
|
---|
74 | }*/
|
---|
75 | void AdjustBack(const MPointing &bend);/*
|
---|
76 | {
|
---|
77 | AltAz p = bend.CorrectBack(GetRawAltAz());
|
---|
78 | fRawEl = p.Alt();
|
---|
79 | fRawAz = p.Az();
|
---|
80 | }*/
|
---|
81 | ClassDef(TPointStar, 1)
|
---|
82 | };
|
---|
83 |
|
---|
84 | /*
|
---|
85 | class TPoint : public TPointStar
|
---|
86 | {
|
---|
87 | public:
|
---|
88 | TPoint(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0)
|
---|
89 | : TPointStar(sel, saz, rel, raz)
|
---|
90 | {
|
---|
91 | }
|
---|
92 | ClassDef(TPoint, 1)
|
---|
93 | };
|
---|
94 | */
|
---|
95 |
|
---|
96 | istream &operator>>(istream &fin, TPointStar &set);
|
---|
97 | ostream &operator<<(ostream &out, TPointStar &set);
|
---|
98 |
|
---|
99 | #endif
|
---|