lsst.jointcal  15.0-7-gab4c137+2
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 public:
18  RefStar(double xx, double yy, double defaultFlux, double defaultFluxErr, std::vector<double>& refFluxList,
19  std::vector<double>& refFluxErrList)
20  : BaseStar(xx, yy, defaultFlux, defaultFluxErr),
21  _refFluxList(refFluxList),
22  _refFluxErrList(refFluxErrList) {}
23 
25  RefStar(RefStar const&) = delete;
26  RefStar(RefStar&&) = delete;
27  RefStar& operator=(RefStar const&) = default;
28  RefStar& operator=(RefStar&&) = delete;
29 
30  void dump(std::ostream& stream = std::cout) const {
31  BaseStar::dump(stream);
32  stream << " refFlux: [";
33  for (auto x : _refFluxList) {
34  stream << x << ", ";
35  }
36  stream << "]";
37  }
38 
39  using BaseStar::getFlux;
42  double getFlux(size_t filter) const { return _refFluxList[filter]; }
44  double getFluxErr(size_t filter) const { return _refFluxErrList[filter]; }
45 
46 private:
47  // on-sky flux, in Maggies, per filter
48  std::vector<double> _refFluxList;
49  std::vector<double> _refFluxErrList;
50 };
51 
52 /****** RefStarList ***********/
53 
54 class Frame;
55 
56 // typedef StarList<RefStar> RefStarList;
57 class RefStarList : public StarList<RefStar> {};
58 
59 typedef RefStarList::const_iterator RefStarCIterator;
60 typedef RefStarList::iterator RefStarIterator;
61 
64 const BaseStarList& Ref2Base(const RefStarList& This);
65 const BaseStarList* Ref2Base(const RefStarList* This);
66 } // namespace jointcal
67 } // namespace lsst
68 
69 #endif // LSST_JOINTCAL_REF_STAR_H
Objects used as position anchors, typically USNO stars.
Definition: RefStar.h:16
double getFluxErr(size_t filter) const
reference fluxErr in a given filter
Definition: RefStar.h:44
RefStar(double xx, double yy, double defaultFlux, double defaultFluxErr, std::vector< double > &refFluxList, std::vector< double > &refFluxErrList)
Definition: RefStar.h:18
RefStar & operator=(RefStar const &)=default
virtual void dump(std::ostream &stream=std::cout) const
utility
Definition: BaseStar.h:46
double getFluxErr() const
Definition: BaseStar.h:64
double x
coordinate
Definition: Point.h:18
The base class for handling stars. Used by all matching routines.
Definition: BaseStar.h:22
std::lists of Stars.
Definition: StarList.h:35
rectangle with sides parallel to axes.
Definition: Frame.h:15
Class for a simple mapping implementing a generic Gtransfo.
double getFlux() const
Definition: BaseStar.h:60
RefStarList::const_iterator RefStarCIterator
Definition: RefStar.h:59
void dump(std::ostream &stream=std::cout) const
utility
Definition: RefStar.h:30
double getFlux(size_t filter) const
reference flux in a given filter
Definition: RefStar.h:42
RefStarList::iterator RefStarIterator
Definition: RefStar.h:60
STL class.
BaseStarList & Ref2Base(RefStarList &This)
Definition: RefStar.cc:11