LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+a41d3748ce,g1470d8bcf6+6be6c9203b,g2079a07aa2+14824f138e,g212a7c68fe+a4f2ea4efa,g2305ad1205+72971fe858,g295015adf3+ab2c85acae,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+31b3a28dff,g487adcacf7+082e807817,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+b2918d57ae,g5a732f18d5+66d966b544,g64a986408d+a41d3748ce,g858d7b2824+a41d3748ce,g8a8a8dda67+a6fc98d2e7,g99cad8db69+7fe4acdf18,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+84af8b3ff8,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gba4ed39666+9664299f35,gbb8dafda3b+d8d527deb2,gc07e1c2157+b2dbe6b631,gc120e1dc64+61440b2abb,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+31b3a28dff,gdaeeff99f8+a38ce5ea23,ge6526c86ff+39927bb362,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+a41d3748ce,v24.1.5.rc1
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: