LSST Applications g063fba187b+eddd1b24d7,g0f08755f38+4a855ab515,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+062a45aee3,g1dcb35cd9c+45d3fa5522,g20f6ffc8e0+4a855ab515,g217e2c1bcf+f55e51b560,g28da252d5a+7d8e536cc7,g2bbee38e9b+2d92fc7d83,g2bc492864f+2d92fc7d83,g3156d2b45e+6e55a43351,g32e5bea42b+625186cc6b,g347aa1857d+2d92fc7d83,g35bb328faa+a8ce1bb630,g3a166c0a6a+2d92fc7d83,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+1af189bab1,g7af13505b9+7b6a50a2f8,g80478fca09+6174b7f182,g82479be7b0+5b71efbaf0,g858d7b2824+4a855ab515,g9125e01d80+a8ce1bb630,ga5288a1d22+61618a97c4,gb58c049af0+d64f4d3760,gc28159a63d+2d92fc7d83,gc5452a3dca+f4add4ffd5,gcab2d0539d+d9f5af7f69,gcf0d15dbbd+6c7e0a19ec,gda6a2b7d83+6c7e0a19ec,gdaeeff99f8+1711a396fd,ge79ae78c31+2d92fc7d83,gef2f8181fd+55fff6f525,gf0baf85859+c1f95f4921,gfa517265be+4a855ab515,gfa999e8aa5+17cd334064,w.2024.51
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::FittedStar Class Reference

FittedStars are objects whose position or flux is going to be fitted, and which come from the association of multiple MeasuredStars. More...

#include <FittedStar.h>

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

Public Member Functions

 FittedStar ()
 
 FittedStar (const BaseStar &baseStar)
 
 FittedStar (const MeasuredStar &measuredStar)
 
 FittedStar (FittedStar 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.
 
 FittedStar (FittedStar &&)=delete
 
FittedStaroperator= (FittedStar const &)=delete
 
FittedStaroperator= (FittedStar &&)=delete
 
void clearBeforeAssoc ()
 
void print (std::ostream &stream=std::cout) const
 
void addMagMeasurement (double magValue, double magWeight)
 Add a measuredStar on-sky magnitude.
 
void setIndexInMatrix (Eigen::Index const index)
 index is a value that a fit can set and reread....
 
Eigen::Index getIndexInMatrix () const
 
void setRefStar (const RefStar *_refStar)
 Set the astrometric reference star associated with this star.
 
const RefStargetRefStar () const
 Get the astrometric reference star associated with this star.
 
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.
 
int getMeasurementCount () const
 The number of MeasuredStars currently associated with this FittedStar.
 
int & getMeasurementCount ()
 The number of MeasuredStars currently associated with this FittedStar.
 

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

FittedStars are objects whose position or flux is going to be fitted, and which come from the association of multiple MeasuredStars.

x/y Coordinates are in the Common Tangent Plane (degrees). MeasuredStars from different CcdImages that represent the same on-sky object all point to one FittedStar.

Definition at line 50 of file FittedStar.h.

Constructor & Destructor Documentation

◆ FittedStar() [1/5]

lsst::jointcal::FittedStar::FittedStar ( )
inline

Definition at line 52 of file FittedStar.h.

52: BaseStar(), _indexInMatrix(-1), _measurementCount(0), _refStar(nullptr) {}

◆ FittedStar() [2/5]

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

Definition at line 54 of file FittedStar.h.

55 : BaseStar(baseStar), _indexInMatrix(0), _measurementCount(0), _refStar(nullptr) {}

◆ FittedStar() [3/5]

lsst::jointcal::FittedStar::FittedStar ( const MeasuredStar & measuredStar)

Definition at line 43 of file FittedStar.cc.

44 : BaseStar(measuredStar), _indexInMatrix(-1), _measurementCount(0), _refStar(nullptr) {}

◆ FittedStar() [4/5]

lsst::jointcal::FittedStar::FittedStar ( FittedStar 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.

◆ FittedStar() [5/5]

lsst::jointcal::FittedStar::FittedStar ( FittedStar && )
delete

Member Function Documentation

◆ addMagMeasurement()

void lsst::jointcal::FittedStar::addMagMeasurement ( double magValue,
double magWeight )

Add a measuredStar on-sky magnitude.

Definition at line 57 of file FittedStar.cc.

57 {
58 _mag = (_mag * _magErr + magValue * magWeight) / (_magErr + magWeight);
59 _magErr += magWeight;
60}

◆ clearBeforeAssoc()

void lsst::jointcal::FittedStar::clearBeforeAssoc ( )
inline

Definition at line 68 of file FittedStar.h.

68 {
69 _indexInMatrix = -1;
70 _measurementCount = 0;
71 _refStar = nullptr;
72 _flux = 0;
73 _fluxErr = 0;
74 _mag = 0;
75 _magErr = 0;
76 }

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

◆ 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; }

◆ getIndexInMatrix()

Eigen::Index lsst::jointcal::FittedStar::getIndexInMatrix ( ) const
inline

Definition at line 99 of file FittedStar.h.

99{ return _indexInMatrix; }

◆ 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; }

◆ getMeasurementCount() [1/2]

int & lsst::jointcal::FittedStar::getMeasurementCount ( )
inline

The number of MeasuredStars currently associated with this FittedStar.

Definition at line 89 of file FittedStar.h.

89{ return _measurementCount; }

◆ getMeasurementCount() [2/2]

int lsst::jointcal::FittedStar::getMeasurementCount ( ) const
inline

The number of MeasuredStars currently associated with this FittedStar.

Definition at line 88 of file FittedStar.h.

88{ return _measurementCount; }

◆ getRefStar()

const RefStar * lsst::jointcal::FittedStar::getRefStar ( ) const
inline

Get the astrometric reference star associated with this star.

Definition at line 105 of file FittedStar.h.

105{ return _refStar; };

◆ getX()

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

access stuff.

Definition at line 73 of file BaseStar.h.

73{ return x; }

◆ getY()

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

Definition at line 75 of file BaseStar.h.

75{ return y; }

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

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

◆ operator=() [2/2]

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

◆ print()

void lsst::jointcal::FittedStar::print ( std::ostream & stream = std::cout) const
inlinevirtual

Reimplemented from lsst::jointcal::BaseStar.

Definition at line 79 of file FittedStar.h.

79 {
80 BaseStar::print(stream);
81 stream << " mcount: " << _measurementCount;
82 }
virtual void print(std::ostream &out) const
Definition BaseStar.h:83

◆ 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; }

◆ setIndexInMatrix()

void lsst::jointcal::FittedStar::setIndexInMatrix ( Eigen::Index const index)
inline

index is a value that a fit can set and reread....

Definition at line 96 of file FittedStar.h.

96{ _indexInMatrix = index; };

◆ setMagErr()

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

Definition at line 109 of file BaseStar.h.

109{ _magErr = magErr; }

◆ setRefStar()

void lsst::jointcal::FittedStar::setRefStar ( const RefStar * _refStar)

Set the astrometric reference star associated with this star.

Definition at line 46 of file FittedStar.cc.

46 {
47 if ((_refStar != nullptr) && (refStar != nullptr)) {
48 // TODO: should we raise an Exception in this case?
49 LOGLS_ERROR(_log, "FittedStar: " << *this
50 << " is already matched to another RefStar. Clean up your lists.");
51 LOGLS_ERROR(_log, "old refStar: " << *_refStar);
52 LOGLS_ERROR(_log, "new refStar: " << *refStar);
53 } else
54 _refStar = refStar;
55}
#define LOGLS_ERROR(logger, message)
Log a error-level message using an iostream-based interface.
Definition Log.h:679

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