LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
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; }
83 out <<
"x: " <<
x <<
" y: " <<
y <<
" flux: " <<
_flux <<
" fluxErr: " <<
_fluxErr;
92 static const char *
typeName() {
return "BaseStar"; }
126 #endif // LSST_JOINTCAL_BASE_STAR_H
static const char * typeName()
Utilities for converting between flux and magnitude in C++.
double getFluxErr() const
void setMagErr(double magErr)
void setFluxErr(double fluxErr)
void setFlux(double flux)
A Point with uncertainties.
A base class for image defects.
double nanojanskyToABMagnitude(double flux)
Convert a flux in nanojansky to AB magnitude.
friend std::ostream & operator<<(std::ostream &stream, BaseStar const &s)
allows std::cout << aBaseStar;
BaseStar & operator=(Point const &point)
BaseStar(double xx, double yy, double flux, double fluxErr)
constructor
double getX() const
access stuff.
The base class for handling stars. Used by all matching routines.
BaseStarList::iterator BaseStarIterator
BaseStarList::const_iterator BaseStarCIterator
BaseStar(Point const &point, double flux, double fluxErr, double mag, double magErr)
virtual void print(std::ostream &out) const
utility
StarList< BaseStar > BaseStarList