source: trunk/MagicSoft/Cosy/tpoint/TPointStar.h@ 9029

Last change on this file since 9029 was 8823, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 2.7 KB
Line 
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
11class ZdAz;
12class AltAz;
13
14class MPointing;
15
16class TPointStar : public TObject
17{
18 friend istream &operator>>(istream &fin, TPointStar &set);
19 friend ostream &operator<<(ostream &fout, TPointStar &set);
20private:
21 Double_t fStarAz;
22 Double_t fStarEl;
23
24 Double_t fRawAz;
25 Double_t fRawEl;
26
27 Double_t fMag;
28public:
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=0) const;
39
40 void operator=(TPointStar &set)
41 {
42 fStarAz = set.fStarAz;
43 fStarEl = set.fStarEl;
44 fRawAz = set.fRawAz;
45 fRawEl = set.fRawEl;
46 fMag = set.fMag;
47 }
48
49 Double_t GetDEl() const;// { return (fRawEl-fStarEl)*TMath::RadToDeg(); }
50 Double_t GetDZd() const;// { return -GetDEl(); }
51 Double_t GetDAz() const;// { return (fRawAz-fStarAz)*TMath::RadToDeg(); }
52 Double_t GetStarEl() const;// { return fStarEl*TMath::RadToDeg(); }
53 Double_t GetStarZd() const;// { return 90.-fStarEl*TMath::RadToDeg(); }
54 Double_t GetStarAz() const;// { return fStarAz*TMath::RadToDeg(); }
55 Double_t GetRawEl() const;// { return fRawEl*TMath::RadToDeg(); }
56 Double_t GetRawAz() const;// { return fRawAz*TMath::RadToDeg(); }
57 Double_t GetRawZd() const;// { return 90.-fRawEl*TMath::RadToDeg(); }
58
59 ZdAz GetStarZdAz() const;// { return ZdAz(TMath::Pi()/2-fStarEl, fStarAz); }
60 AltAz GetStarAltAz() const;// { return AltAz(fStarEl, fStarAz); }
61
62 ZdAz GetRawZdAz() const;// { return ZdAz(TMath::Pi()/2-fRawEl, fRawAz); }
63 AltAz GetRawAltAz() const;// { return AltAz(fRawEl, fRawAz); }
64
65 void AdjustEl(Double_t del);// { fStarEl += del*TMath::DegToRad(); }
66 void AdjustAz(Double_t daz);// { fStarAz += daz*TMath::DegToRad(); }
67
68 void Adjust(const MPointing &bend);/*
69 {
70 AltAz p = bend(GetStarAltAz());
71 fStarEl = p.Alt();
72 fStarAz = p.Az();
73 }*/
74 void AdjustBack(const MPointing &bend);/*
75 {
76 AltAz p = bend.CorrectBack(GetRawAltAz());
77 fRawEl = p.Alt();
78 fRawAz = p.Az();
79 }*/
80 ClassDef(TPointStar, 1)
81};
82
83/*
84class TPoint : public TPointStar
85{
86public:
87 TPoint(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0)
88 : TPointStar(sel, saz, rel, raz)
89 {
90 }
91 ClassDef(TPoint, 1)
92};
93*/
94
95istream &operator>>(istream &fin, TPointStar &set);
96ostream &operator<<(ostream &out, TPointStar &set);
97
98#endif
Note: See TracBrowser for help on using the repository browser.