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.
23 #define BASESTAR_HAS_POSITION_ERRORS
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;
67 static const char *
typeName() {
return "BaseStar"; }
79 int decodeFormat(
const char *formatLine,
const char *starName);
88 #endif // LSST_JOINTCAL_BASE_STAR_H
BaseStarList::const_iterator BaseStarCIterator
StarList< BaseStar > BaseStarList
bool decreasingFlux(const BaseStar *star1, const BaseStar *star2)
enables to sort easily a starList (of anything that derives from BaseStar)
BaseStarList::iterator BaseStarIterator
A Point with uncertainties.
The base class for handling stars. Used by all matching routines.
virtual std::string __str__() const
friend std::ostream & operator<<(std::ostream &stream, const BaseStar &s)
allows std::cout << aBaseStar;
static const char * typeName()
void setFlux(double flux)
virtual void dump(std::ostream &stream=std::cout) const
utility
BaseStar & operator=(const Point &point)
int decodeFormat(const char *formatLine, const char *starName)
double getX() const
access stuff.
BaseStar(double xx, double yy, double flux)
constructor
BaseStar(const Point &point, double flux)