LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
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 out <<
" 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
objects measured on actual images.
MeasuredStarList::const_iterator MeasuredStarCIterator
double getMagWeight() const
the inverse of the mag variance
double getInstFlux() const
double getInstFluxErr() const
BaseStarList & Measured2Base(MeasuredStarList &This)
void setInstFluxAndErr(double instFlux, double instFluxErr)
double getInstMagErr() const
void setId(afw::table::RecordId id)
MeasuredStar(MeasuredStar &&)=delete
MeasuredStarList::iterator MeasuredStarIterator
void setValid(bool v)
Fits may use that to discard outliers.
void setCcdImage(const CcdImage *_ccdImage)
MeasuredStar & operator=(MeasuredStar &&)=delete
Handler of an actual image from a single CCD.
bool isValid() const
Fits may use that to discard outliers.
std::shared_ptr< FittedStar > getFittedStar() const
A list of MeasuredStar. They are usually filled in Associations::createCcdImage.
void setCcdImage(const CcdImage *ccdImage)
void setXFocal(double xFocal)
double getInstMag() const
A base class for image defects.
MeasuredStar(BaseStar const &baseStar)
CcdImage const & getCcdImage() const
void print(std::ostream &out) const
utility
MeasuredStar & operator=(MeasuredStar const &)=delete
The base class for handling stars. Used by all matching routines.
MeasuredStar(MeasuredStar const &)=default
No move, allow copy constructor: we may copy the fitted StarLists when associating and matching catal...
afw::table::RecordId getId()
virtual void print(std::ostream &out) const
utility
void setFittedStar(std::shared_ptr< FittedStar > fittedStar)
void setYFocal(double yFocal)