2 #ifndef LSST_JOINTCAL_BASE_STAR_H 3 #define LSST_JOINTCAL_BASE_STAR_H 18 #define DECALAGE_IJ_XY 0. 19 #define DECALAGE_XY_IJ 0. 35 BaseStar(
double xx,
double yy,
double flux,
double fluxErr)
36 :
FatPoint(xx, yy), _flux(flux), _fluxErr(fluxErr){};
38 :
FatPoint(point), _flux(flux), _fluxErr(fluxErr){};
41 double getX()
const {
return x; }
43 double getY()
const {
return y; }
51 virtual void dump(std::ostream &stream = std::cout)
const {
52 stream <<
"x: " <<
x <<
" y: " <<
y <<
" flux: " << _flux <<
" fluxErr: " <<
_fluxErr;
61 static const char *
typeName() {
return "BaseStar"; }
67 void setFlux(
double flux) { _flux = flux; }
76 int decodeFormat(
char const *formatLine,
char const *starName);
85 #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
int decodeFormat(char const *formatLine, char const *starName)
BaseStarList::iterator BaseStarIterator
double getFluxErr() const
A Point with uncertainties.
The base class for handling stars. Used by all matching routines.
Class for a simple mapping implementing a generic Gtransfo.
BaseStar & operator=(Point const &point)
static const char * typeName()
void setFluxErr(double fluxErr)
void setFlux(double flux)
bool decreasingFlux(BaseStar const *star1, BaseStar const *star2)
enables to sort easily a starList (of anything that derives from BaseStar)
BaseStar(Point const &point, double flux, double fluxErr)
friend std::ostream & operator<<(std::ostream &stream, BaseStar const &s)
allows std::cout << aBaseStar;
BaseStar(double xx, double yy, double flux, double fluxErr)
constructor