FACT++  1.0
TPointStar.h
Go to the documentation of this file.
1 #ifndef COSY_TPointStar
2 #define COSY_TPointStar
3 
4 #ifndef ROOT_TNamed
5 #include <TNamed.h>
6 #endif
7 
8 class ZdAz;
9 class AltAz;
10 
11 class MPointing;
12 
13 class TPointStar : public TNamed
14 {
15  friend std::istream &operator>>(std::istream &fin, TPointStar &set);
16  friend std::ostream &operator<<(std::ostream &fout, TPointStar &set);
17 private:
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);
27 public:
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 
62 std::istream &operator>>(std::istream &fin, TPointStar &set);
63 std::ostream &operator<<(std::ostream &out, TPointStar &set);
64 
65 #endif
Double_t GetStarZd() const
Definition: TPointStar.cc:29
Double_t GetDAz() const
Definition: TPointStar.cc:27
friend std::ostream & operator<<(std::ostream &fout, TPointStar &set)
Definition: TPointStar.cc:127
Double_t fStarAz
Definition: TPointStar.h:18
Double_t fRawAz
Definition: TPointStar.h:21
Double_t GetDZd() const
Definition: TPointStar.cc:26
TPointStar(const char *name, const char *title=0)
Definition: TPointStar.h:28
void Init(const char *name=0, const char *title=0)
Definition: TPointStar.cc:10
Double_t GetResidual(Double_t *err=0) const
Definition: TPointStar.cc:55
AltAz GetStarAltAz() const
Definition: TPointStar.cc:36
Double_t GetMag() const
Definition: TPointStar.h:39
Double_t GetRawZd() const
Definition: TPointStar.cc:33
Double_t GetDEl() const
Definition: TPointStar.cc:25
Double_t fRawEl
Definition: TPointStar.h:22
AltAz GetRawAltAz() const
Definition: TPointStar.cc:39
TPointStar(const TPointStar &set)
Definition: TPointStar.h:30
ZdAz GetRawZdAz() const
Definition: TPointStar.cc:38
void Adjust(const MPointing &bend)
Definition: TPointStar.cc:41
Definition: MPointing.h:64
Double_t GetStarAz() const
Definition: TPointStar.cc:30
ZdAz GetStarZdAz() const
Definition: TPointStar.cc:35
Double_t GetRawAz() const
Definition: TPointStar.cc:32
Double_t GetStarEl() const
Definition: TPointStar.cc:28
Double_t fStarEl
Definition: TPointStar.h:19
Double_t GetRawEl() const
Definition: TPointStar.cc:31
void AdjustBack(const MPointing &bend)
Definition: TPointStar.cc:48
friend std::istream & operator>>(std::istream &fin, TPointStar &set)
Definition: TPointStar.cc:90
Double_t fMag
Definition: TPointStar.h:24