LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
lsst::jointcal::MeasuredStar Class Reference

Sources measured on images. More...

#include <MeasuredStar.h>

Inheritance diagram for lsst::jointcal::MeasuredStar:
lsst::jointcal::BaseStar lsst::jointcal::FatPoint lsst::jointcal::Point

Public Member Functions

 MeasuredStar ()
 
 MeasuredStar (BaseStar const &baseStar)
 
 MeasuredStar (MeasuredStar const &)=default
 No move, allow copy constructor: we may copy the fitted StarLists when associating and matching catalogs, otherwise Stars should be managed by shared_ptr only.
 
 MeasuredStar (MeasuredStar &&)=delete
 
MeasuredStaroperator= (MeasuredStar const &)=delete
 
MeasuredStaroperator= (MeasuredStar &&)=delete
 
void setFittedStar (std::shared_ptr< FittedStar > fittedStar)
 
void print (std::ostream &out) const
 
void setInstFluxAndErr (double instFlux, double instFluxErr)
 
double getInstFlux () const
 
double getInstFluxErr () const
 
double getInstMag () const
 
double getInstMagErr () const
 
void setId (afw::table::RecordId id)
 
afw::table::RecordId getId () const
 
double getMagWeight () const
 the inverse of the mag variance
 
double getXFocal () const
 
void setXFocal (double xFocal)
 
double getYFocal () const
 
void setYFocal (double yFocal)
 
std::shared_ptr< FittedStargetFittedStar () const
 
CcdImage const & getCcdImage () const
 
void setCcdImage (const CcdImage *ccdImage)
 
bool isValid () const
 Fits may use that to discard outliers.
 
void setValid (bool v)
 Fits may use that to discard outliers.
 
double getX () const
 access stuff.
 
double getY () const
 
double getFlux () const
 
double & getFlux ()
 
void setFlux (double flux)
 
double getFluxErr () const
 
void setFluxErr (double fluxErr)
 
double getMag () const
 
double & getMag ()
 
double getMagErr () const
 
void setMagErr (double magErr)
 
double Distance (const Point &other) const
 

 
double computeDist2 (const Point &other) const
 distance squared to other
 
Point operator+ (const Point &Right) const
 Sum.
 
Point operator- (const Point &Right) const
 Difference.
 

Static Public Member Functions

static const char * typeName ()
 

Public Attributes

double vx
 
double vy
 
double vxy
 
double x
 coordinate
 
double y
 

Protected Attributes

double _flux
 
double _fluxErr {}
 
double _mag {}
 
double _magErr {}
 

Detailed Description

Sources measured on images.

x/y positions and uncertainties (from BaseStar) are in pixels in the image frame. instFlux[Err] are in counts. flux[Err] (from BaseStar) are nJy.

Definition at line 51 of file MeasuredStar.h.

Constructor & Destructor Documentation

◆ MeasuredStar() [1/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( )
inline

Definition at line 53 of file MeasuredStar.h.

54 : BaseStar(),
55 _id(0),
56 _instFlux(0.),
57 _instFluxErr(0.),
58 _ccdImage(nullptr),
59 _valid(true),
60 _xFocal(0.0),
61 _yFocal(0.0),
62 _instMag(0.),
63 _instMagErr(0.) {}

◆ MeasuredStar() [2/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( BaseStar const & baseStar)
inline

Definition at line 65 of file MeasuredStar.h.

66 : BaseStar(baseStar),
67 _id(0),
68 _instFlux(0.),
69 _instFluxErr(0.),
70 _ccdImage(nullptr),
71 _valid(true),
72 _xFocal(0.0),
73 _yFocal(0.0),
74 _instMag(0.),
75 _instMagErr(0.) {}

◆ MeasuredStar() [3/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( MeasuredStar const & )
default

No move, allow copy constructor: we may copy the fitted StarLists when associating and matching catalogs, otherwise Stars should be managed by shared_ptr only.

◆ MeasuredStar() [4/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( MeasuredStar && )
delete

Member Function Documentation

◆ computeDist2()

double lsst::jointcal::Point::computeDist2 ( const Point & other) const
inlineinherited

distance squared to other

Definition at line 56 of file Point.h.

56 {
57 return ((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
58 };
double x
coordinate
Definition Point.h:42

◆ Distance()

double lsst::jointcal::Point::Distance ( const Point & other) const
inlineinherited

Definition at line 51 of file Point.h.

51 {
52 return sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
53 };
T sqrt(T... args)

◆ getCcdImage()

CcdImage const & lsst::jointcal::MeasuredStar::getCcdImage ( ) const
inline

Definition at line 120 of file MeasuredStar.h.

120{ return *_ccdImage; };

◆ getFittedStar()

std::shared_ptr< FittedStar > lsst::jointcal::MeasuredStar::getFittedStar ( ) const
inline

Definition at line 118 of file MeasuredStar.h.

118{ return _fittedStar; };

◆ getFlux() [1/2]

double & lsst::jointcal::BaseStar::getFlux ( )
inlineinherited

Definition at line 99 of file BaseStar.h.

99{ return _flux; }

◆ getFlux() [2/2]

double lsst::jointcal::BaseStar::getFlux ( ) const
inlineinherited

Definition at line 98 of file BaseStar.h.

98{ return _flux; }

◆ getFluxErr()

double lsst::jointcal::BaseStar::getFluxErr ( ) const
inlineinherited

Definition at line 102 of file BaseStar.h.

102{ return _fluxErr; }

◆ getId()

afw::table::RecordId lsst::jointcal::MeasuredStar::getId ( ) const
inline

Definition at line 108 of file MeasuredStar.h.

108{ return _id; }

◆ getInstFlux()

double lsst::jointcal::MeasuredStar::getInstFlux ( ) const
inline

Definition at line 102 of file MeasuredStar.h.

102{ return _instFlux; }

◆ getInstFluxErr()

double lsst::jointcal::MeasuredStar::getInstFluxErr ( ) const
inline

Definition at line 103 of file MeasuredStar.h.

103{ return _instFluxErr; }

◆ getInstMag()

double lsst::jointcal::MeasuredStar::getInstMag ( ) const
inline

Definition at line 104 of file MeasuredStar.h.

104{ return _instMag; }

◆ getInstMagErr()

double lsst::jointcal::MeasuredStar::getInstMagErr ( ) const
inline

Definition at line 105 of file MeasuredStar.h.

105{ return _instMagErr; }

◆ getMag() [1/2]

double & lsst::jointcal::BaseStar::getMag ( )
inlineinherited

Definition at line 106 of file BaseStar.h.

106{ return _mag; }

◆ getMag() [2/2]

double lsst::jointcal::BaseStar::getMag ( ) const
inlineinherited

Definition at line 105 of file BaseStar.h.

105{ return _mag; }

◆ getMagErr()

double lsst::jointcal::BaseStar::getMagErr ( ) const
inlineinherited

Definition at line 108 of file BaseStar.h.

108{ return _magErr; }

◆ getMagWeight()

double lsst::jointcal::MeasuredStar::getMagWeight ( ) const
inline

the inverse of the mag variance

Definition at line 111 of file MeasuredStar.h.

111{ return (_instFlux * _instFlux / (_instFluxErr * _instFluxErr)); }

◆ getX()

double lsst::jointcal::BaseStar::getX ( ) const
inlineinherited

access stuff.

Definition at line 73 of file BaseStar.h.

73{ return x; }

◆ getXFocal()

double lsst::jointcal::MeasuredStar::getXFocal ( ) const
inline

Definition at line 113 of file MeasuredStar.h.

113{ return _xFocal; }

◆ getY()

double lsst::jointcal::BaseStar::getY ( ) const
inlineinherited

Definition at line 75 of file BaseStar.h.

75{ return y; }

◆ getYFocal()

double lsst::jointcal::MeasuredStar::getYFocal ( ) const
inline

Definition at line 115 of file MeasuredStar.h.

115{ return _yFocal; }

◆ isValid()

bool lsst::jointcal::MeasuredStar::isValid ( ) const
inline

Fits may use that to discard outliers.

Definition at line 125 of file MeasuredStar.h.

125{ return _valid; }

◆ operator+()

Point lsst::jointcal::Point::operator+ ( const Point & Right) const
inlineinherited

Sum.

Definition at line 61 of file Point.h.

61{ return Point(x + Right.x, y + Right.y); }

◆ operator-()

Point lsst::jointcal::Point::operator- ( const Point & Right) const
inlineinherited

Difference.

Definition at line 64 of file Point.h.

64{ return Point(x - Right.x, y - Right.y); }

◆ operator=() [1/2]

MeasuredStar & lsst::jointcal::MeasuredStar::operator= ( MeasuredStar && )
delete

◆ operator=() [2/2]

MeasuredStar & lsst::jointcal::MeasuredStar::operator= ( MeasuredStar const & )
delete

◆ print()

void lsst::jointcal::MeasuredStar::print ( std::ostream & out) const
inlinevirtual

Reimplemented from lsst::jointcal::BaseStar.

Definition at line 89 of file MeasuredStar.h.

89 {
90 BaseStar::print(out);
91 out << " instFlux: " << _instFlux << " instFluxErr: " << _instFluxErr << " id: " << _id
92 << " valid: " << _valid;
93 }
virtual void print(std::ostream &out) const
Definition BaseStar.h:83

◆ setCcdImage()

void lsst::jointcal::MeasuredStar::setCcdImage ( const CcdImage * ccdImage)
inline

Definition at line 122 of file MeasuredStar.h.

122{ _ccdImage = ccdImage; };

◆ setFittedStar()

void lsst::jointcal::MeasuredStar::setFittedStar ( std::shared_ptr< FittedStar > fittedStar)
inline

Definition at line 84 of file MeasuredStar.h.

84 {
85 if (fittedStar) fittedStar->getMeasurementCount()++;
86 _fittedStar = std::move(fittedStar);
87 }
T move(T... args)

◆ setFlux()

void lsst::jointcal::BaseStar::setFlux ( double flux)
inlineinherited

Definition at line 100 of file BaseStar.h.

100{ _flux = flux; }

◆ setFluxErr()

void lsst::jointcal::BaseStar::setFluxErr ( double fluxErr)
inlineinherited

Definition at line 103 of file BaseStar.h.

103{ _fluxErr = fluxErr; }

◆ setId()

void lsst::jointcal::MeasuredStar::setId ( afw::table::RecordId id)
inline

Definition at line 107 of file MeasuredStar.h.

107{ _id = id; }
table::Key< int > id
Definition Detector.cc:162

◆ setInstFluxAndErr()

void lsst::jointcal::MeasuredStar::setInstFluxAndErr ( double instFlux,
double instFluxErr )
inline

Definition at line 95 of file MeasuredStar.h.

95 {
96 _instFlux = instFlux;
97 _instMag = instMagFromInstFlux(instFlux);
98 _instFluxErr = instFluxErr;
99 _instMagErr = magErrFromFluxErr(instFlux, instFluxErr);
100 }

◆ setMagErr()

void lsst::jointcal::BaseStar::setMagErr ( double magErr)
inlineinherited

Definition at line 109 of file BaseStar.h.

109{ _magErr = magErr; }

◆ setValid()

void lsst::jointcal::MeasuredStar::setValid ( bool v)
inline

Fits may use that to discard outliers.

Definition at line 127 of file MeasuredStar.h.

127{ _valid = v; }

◆ setXFocal()

void lsst::jointcal::MeasuredStar::setXFocal ( double xFocal)
inline

Definition at line 114 of file MeasuredStar.h.

114{ _xFocal = xFocal; }

◆ setYFocal()

void lsst::jointcal::MeasuredStar::setYFocal ( double yFocal)
inline

Definition at line 116 of file MeasuredStar.h.

116{ _yFocal = yFocal; }

◆ typeName()

static const char * lsst::jointcal::BaseStar::typeName ( )
inlinestaticinherited

Definition at line 94 of file BaseStar.h.

94{ return "BaseStar"; }

Member Data Documentation

◆ _flux

double lsst::jointcal::BaseStar::_flux
protectedinherited

Definition at line 113 of file BaseStar.h.

◆ _fluxErr

double lsst::jointcal::BaseStar::_fluxErr {}
protectedinherited

Definition at line 114 of file BaseStar.h.

114{};

◆ _mag

double lsst::jointcal::BaseStar::_mag {}
protectedinherited

Definition at line 117 of file BaseStar.h.

117{};

◆ _magErr

double lsst::jointcal::BaseStar::_magErr {}
protectedinherited

Definition at line 118 of file BaseStar.h.

118{};

◆ vx

double lsst::jointcal::FatPoint::vx
inherited

Definition at line 36 of file FatPoint.h.

◆ vxy

double lsst::jointcal::FatPoint::vxy
inherited

Definition at line 36 of file FatPoint.h.

◆ vy

double lsst::jointcal::FatPoint::vy
inherited

Definition at line 36 of file FatPoint.h.

◆ x

double lsst::jointcal::Point::x
inherited

coordinate

Definition at line 42 of file Point.h.

◆ y

double lsst::jointcal::Point::y
inherited

Definition at line 42 of file Point.h.


The documentation for this class was generated from the following file: