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)
41 double getX()
const {
return x; }
43 double getY()
const {
return y; }
57 virtual void dump(std::ostream &stream = std::cout)
const {
58 stream <<
"x: " <<
x <<
" y: " <<
y <<
" flux: " <<
_flux <<
" fluxErr: " <<
_fluxErr;
67 static const char *
typeName() {
return "BaseStar"; }
82 int decodeFormat(
char const *formatLine,
char const *starName);
91 #endif // LSST_JOINTCAL_BASE_STAR_H
BaseStarList::const_iterator BaseStarCIterator
StarList< BaseStar > BaseStarList
int decodeFormat(char const *formatLine, char const *starName)
BaseStarList::iterator BaseStarIterator
A Point with uncertainties.
The base class for handling stars. Used by all matching routines.
virtual std::string __str__() const
BaseStar & operator=(Point const &point)
static const char * typeName()
double getFluxErr() const
void setFluxErr(double fluxErr)
void setFlux(double flux)
virtual void dump(std::ostream &stream=std::cout) const
utility
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)
double getX() const
access stuff.
friend std::ostream & operator<<(std::ostream &stream, BaseStar const &s)
allows std::cout << aBaseStar;
BaseStar(double xx, double yy, double flux, double fluxErr)
constructor