LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
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. More...
 
 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 ()
 
double getMagWeight () const
 the inverse of the mag variance More...
 
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. More...
 
void setValid (bool v)
 Fits may use that to discard outliers. More...
 
double getX () const
 access stuff. More...
 
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
 
More...
 
double computeDist2 (const Point &other) const
 distance squared to other More...
 
Point operator+ (const Point &Right) const
 Sum. More...
 
Point operator- (const Point &Right) const
 Difference. More...
 

Static Public Member Functions

static const char * typeName ()
 

Public Attributes

double vx
 
double vy
 
double vxy
 
double x
 coordinate More...
 
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(0),
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(0),
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 ( )
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.

◆ _mag

double lsst::jointcal::BaseStar::_mag
protectedinherited

Definition at line 117 of file BaseStar.h.

◆ _magErr

double lsst::jointcal::BaseStar::_magErr
protectedinherited

Definition at line 118 of file BaseStar.h.

◆ 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: