25#ifndef LSST_JOINTCAL_BASE_STAR_H
26#define LSST_JOINTCAL_BASE_STAR_H
44double magErrFromFluxErr(
double instFlux,
double instFluxErr) {
45 return 2.5 /
std::log(10) * (instFluxErr / instFlux);
63 _mag(utils::nanojanskyToABMagnitude(
flux)),
69 _mag(utils::nanojanskyToABMagnitude(
flux)),
73 double getX()
const {
return x; }
75 double getY()
const {
return y; }
94 static const char *
typeName() {
return "BaseStar"; }
The base class for handling stars. Used by all matching routines.
static const char * typeName()
BaseStar(Point const &point, double flux, double fluxErr, double mag, double magErr)
double getFluxErr() const
BaseStar & operator=(Point const &point)
friend std::ostream & operator<<(std::ostream &stream, BaseStar const &s)
allows std::cout << aBaseStar;
double getX() const
access stuff.
void setMagErr(double magErr)
BaseStar(double xx, double yy, double flux, double fluxErr)
constructor
void setFluxErr(double fluxErr)
virtual ~BaseStar()=default
void setFlux(double flux)
virtual void print(std::ostream &out) const
A Point with uncertainties.
void print(std::ostream &s=std::cout) const
BaseStarList::const_iterator BaseStarCIterator
BaseStarList::iterator BaseStarIterator
T setprecision(T... args)