25 #ifndef LSST_JOINTCAL_BASE_STAR_H 26 #define LSST_JOINTCAL_BASE_STAR_H 43 double magErrFromFluxErr(
double instFlux,
double instFluxErr) {
44 return 2.5 /
std::log(10) * (instFluxErr / instFlux);
58 BaseStar(
double xx,
double yy,
double flux,
double fluxErr)
63 _magErr(magErrFromFluxErr(flux, fluxErr)){};
64 BaseStar(
Point const &point,
double flux,
double fluxErr,
double mag,
double magErr)
69 _magErr(magErrFromFluxErr(flux, fluxErr)){};
72 double getX()
const {
return x; }
74 double getY()
const {
return y; }
92 static const char *
typeName() {
return "BaseStar"; }
126 #endif // LSST_JOINTCAL_BASE_STAR_H BaseStarList::const_iterator BaseStarCIterator
double getX() const
access stuff.
virtual void dump(std::ostream &stream=std::cout) const
utility
StarList< BaseStar > BaseStarList
BaseStarList::iterator BaseStarIterator
double getFluxErr() const
A Point with uncertainties.
The base class for handling stars. Used by all matching routines.
A base class for image defects.
BaseStar & operator=(Point const &point)
static const char * typeName()
Utilities for converting between flux and magnitude in C++.
void setFluxErr(double fluxErr)
double nanojanskyToABMagnitude(double flux)
Convert a flux in nanojansky to AB magnitude.
void setFlux(double flux)
BaseStar(Point const &point, double flux, double fluxErr, double mag, double magErr)
friend std::ostream & operator<<(std::ostream &stream, BaseStar const &s)
allows std::cout << aBaseStar;
void setMagErr(double magErr)
BaseStar(double xx, double yy, double flux, double fluxErr)
constructor