25 #ifndef LSST_JOINTCAL_MEASURED_STAR_H 26 #define LSST_JOINTCAL_MEASURED_STAR_H 39 double instMagFromInstFlux(
double instFlux) {
return -2.5 *
std::log10(instFlux); }
80 if (fittedStar) fittedStar->getMeasurementCount()++;
86 stream <<
" instFlux: " << _instFlux <<
" instFluxErr: " << _instFluxErr <<
" id: " << _id
87 <<
" valid: " << _valid;
92 _instMag = instMagFromInstFlux(instFlux);
93 _instFluxErr = instFluxErr;
94 _instMagErr = magErrFromFluxErr(instFlux, instFluxErr);
106 double getMagWeight()
const {
return (_instFlux * _instFlux / (_instFluxErr * _instFluxErr)); }
136 double _xFocal, _yFocal;
163 #endif // LSST_JOINTCAL_MEASURED_STAR_H void setXFocal(double xFocal)
virtual void dump(std::ostream &stream=std::cout) const
utility
MeasuredStarList::iterator MeasuredStarIterator
MeasuredStar(BaseStar const &baseStar)
CcdImage const & getCcdImage() const
MeasuredStar & operator=(MeasuredStar const &)=delete
double getInstMag() const
void setCcdImage(const CcdImage *ccdImage)
A list of MeasuredStar. They are usually filled in Associations::createCcdImage.
void setYFocal(double yFocal)
The base class for handling stars. Used by all matching routines.
afw::table::RecordId getId()
void dump(std::ostream &stream=std::cout) const
utility
void setFittedStar(std::shared_ptr< FittedStar > fittedStar)
A base class for image defects.
MeasuredStarList::const_iterator MeasuredStarCIterator
void setInstFluxAndErr(double instFlux, double instFluxErr)
double getInstFlux() const
double getInstMagErr() const
double getInstFluxErr() const
objects measured on actual images.
double getMagWeight() const
the inverse of the mag variance
void setValid(bool v)
Fits may use that to discard outliers.
BaseStarList & Measured2Base(MeasuredStarList &This)
Handler of an actual image from a single CCD.
void setId(afw::table::RecordId id)
bool isValid() const
Fits may use that to discard outliers.
std::shared_ptr< FittedStar > getFittedStar() const