lsst.jointcal  master-gc935ebf72c+13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RefStar.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_REF_STAR_H
3 #define LSST_JOINTCAL_REF_STAR_H
4 
5 #include <vector>
6 #include <fstream>
7 
10 
11 namespace lsst {
12 namespace jointcal {
13 
16 class RefStar : public BaseStar {
17 private:
18  unsigned int _index;
19  std::vector<double> _refFlux;
20 
21 public:
23  RefStar(const BaseStar& baseStar);
24 
25  void dump(std::ostream& stream = std::cout) const {
26  BaseStar::dump(stream);
27  stream << " refFlux: [";
28  for (auto x : _refFlux) {
29  stream << x << ", ";
30  }
31  stream << "] index: " << _index;
32  }
33 
35  double getFlux(int filter) const;
36 
38  void assignRefFluxes(std::vector<double> const& refFlux);
39 
41  unsigned int& getIndex() { return _index; }
42  unsigned int getIndex() const { return _index; }
43 };
44 
45 /****** RefStarList ***********/
46 
47 class Frame;
48 
49 // typedef StarList<RefStar> RefStarList;
50 class RefStarList : public StarList<RefStar> {};
51 
52 typedef RefStarList::const_iterator RefStarCIterator;
53 typedef RefStarList::iterator RefStarIterator;
54 
57 const BaseStarList& Ref2Base(const RefStarList& This);
58 const BaseStarList* Ref2Base(const RefStarList* This);
59 } // namespace jointcal
60 } // namespace lsst
61 
62 #endif // LSST_JOINTCAL_REF_STAR_H
Objects used as position anchors, typically USNO stars.
Definition: RefStar.h:16
unsigned int getIndex() const
Definition: RefStar.h:42
unsigned int & getIndex()
star index
Definition: RefStar.h:41
RefStar(const BaseStar &baseStar)
Definition: RefStar.cc:11
double x
coordinate
Definition: Point.h:18
The base class for handling stars. Used by all matching routines.
Definition: BaseStar.h:26
double getFlux() const
Definition: BaseStar.h:71
std::lists of Stars.
Definition: StarList.h:35
void dump(std::ostream &stream=std::cout) const
utility
Definition: RefStar.h:25
void assignRefFluxes(std::vector< double > const &refFlux)
assign the reference fluxes
Definition: RefStar.cc:18
RefStarList::const_iterator RefStarCIterator
Definition: RefStar.h:52
virtual void dump(std::ostream &stream=std::cout) const
utility
Definition: BaseStar.h:57
RefStarList::iterator RefStarIterator
Definition: RefStar.h:53
BaseStarList & Ref2Base(RefStarList &This)
Definition: RefStar.cc:23