lsst.jointcal  master-gc935ebf72c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RefStar.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 #include <algorithm>
3 #include <assert.h>
4 #include <iomanip>
5 
7 
8 namespace lsst {
9 namespace jointcal {
10 
11 RefStar::RefStar(const BaseStar &baseStar) : BaseStar(baseStar), _index(0) {}
12 
13 double RefStar::getFlux(int filter) const {
14  if (filter < 0 && filter >= 10) return FP_INFINITE;
15  return _refFlux[filter];
16 }
17 
18 void RefStar::assignRefFluxes(std::vector<double> const &refFlux) {
19  _refFlux.clear();
20  copy(refFlux.begin(), refFlux.end(), back_inserter(_refFlux));
21 }
22 
23 BaseStarList &Ref2Base(RefStarList &This) { return (BaseStarList &)This; }
24 
25 BaseStarList *Ref2Base(RefStarList *This) { return (BaseStarList *)This; }
26 
27 const BaseStarList &Ref2Base(const RefStarList &This) { return (const BaseStarList &)This; }
28 
29 const BaseStarList *Ref2Base(const RefStarList *This) { return (BaseStarList *)This; }
30 } // namespace jointcal
31 } // namespace lsst
RefStar(const BaseStar &baseStar)
Definition: RefStar.cc:11
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 assignRefFluxes(std::vector< double > const &refFlux)
assign the reference fluxes
Definition: RefStar.cc:18
BaseStarList & Ref2Base(RefStarList &This)
Definition: RefStar.cc:23