gastro  0.1.0
 All Classes Files Functions Variables Pages
refstar.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef REFSTAR__H
3 #define REFSTAR__H
4 
5 #include <vector>
6 
7 #include "fittedstar.h" // for FittedStarRef
8 
11 class RefStar : public BaseStar
13 {
14 private :
15  unsigned int index;
16  FittedStarRef fittedStar;
17  Point raDec;
18  std::vector<double> refFlux;
19 
20  public :
21 
22 
24  RefStar(const BaseStar &, const Point &RaDec);
25 
27  void SetFittedStar(FittedStar &F);
28 
30  double Ra() const { return raDec.x;}
31 
33  double Dec() const {return raDec.y;}
34 
36  double Flux(int band) const;
37 
39  void AssignRefFluxes(std::vector<double> const& refflux);
40 
42  unsigned int & Index() { return index; }
43  unsigned int Index() const { return index; }
44 
45 };
46 
47 
48 
49 
50 /****** RefStarList ***********/
51 #include <starlist.h>
52 
53 class Frame;
54 
55 #ifdef STORAGE
56 class RefStarList : public StarList<RefStar>
57 {
58  public :
60  RefStarList(const Frame &F);
61 };
62 #endif /*STORAGE */
63 
64 typedef StarList<RefStar> RefStarList;
65 typedef RefStarList::const_iterator RefStarCIterator;
66 typedef RefStarList::iterator RefStarIterator;
67 typedef CountedRef<RefStar> RefStarRef;
68 
69 
70 BaseStarList& Ref2Base(RefStarList &This);
71 BaseStarList* Ref2Base(RefStarList *This);
72 const BaseStarList& Ref2Base(const RefStarList &This);
73 const BaseStarList* Ref2Base(const RefStarList *This);
74 
75 
76 
77 
78 /********* RefStarTuple ****************/
79 
80 class RefStarTuple {
81  private :
82  std::ofstream stream;
83 
84  public :
85  RefStarTuple( const std::string &FileName);
86 
87  void AddEntry(const RefStar &R, const FittedStar &F);
88 
89  ~RefStarTuple() { stream.close();}
90 };
91 
92 
93 
94 #endif /* REFSTAR__H */
void AssignRefFluxes(std::vector< double > const &refflux)
assign the reference fluxes
Definition: refstar.cc:30
BaseStarList & Ref2Base(RefStarList &This)
RefStarList.
Definition: refstar.cc:43
Objects used as position anchors, typically USNO stars. Coordinate system defined by user...
Definition: refstar.h:12
The objects which have been measured several times. The MeasuredStar s measuring the same object in d...
Definition: fittedstar.h:37
double Flux(int band) const
reference flux
Definition: refstar.cc:23
unsigned int & Index()
star index
Definition: refstar.h:42