LSST Applications g0265f82a02+c6dfa2ddaf,g1162b98a3f+ffe7eabc7e,g2079a07aa2+1b2e822518,g2bbee38e9b+c6dfa2ddaf,g337abbeb29+c6dfa2ddaf,g36da64cc00+ea84795170,g3ddfee87b4+955a963fd8,g50ff169b8f+2eb0e556e8,g52b1c1532d+90ebb246c7,g555ede804d+955a963fd8,g591dd9f2cf+bac198a2cb,g5ec818987f+420292cfeb,g858d7b2824+d6c9a0a3b8,g876c692160+aabc49a3c3,g8a8a8dda67+90ebb246c7,g8cdfe0ae6a+4fd9e222a8,g99cad8db69+e6cd765486,g9ddcbc5298+a1346535a5,ga1e77700b3+df8f93165b,ga8c6da7877+acd47f83f4,gae46bcf261+c6dfa2ddaf,gb0e22166c9+8634eb87fb,gb3f2274832+12c8382528,gba4ed39666+1ac82b564f,gbb8dafda3b+0574160a1f,gbeb006f7da+dea2fbb49f,gc28159a63d+c6dfa2ddaf,gc86a011abf+d6c9a0a3b8,gcf0d15dbbd+955a963fd8,gdaeeff99f8+1cafcb7cd4,gdc0c513512+d6c9a0a3b8,ge79ae78c31+c6dfa2ddaf,geb67518f79+ba1859f325,gee10cc3b42+90ebb246c7,gf1cff7945b+d6c9a0a3b8,w.2024.13
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::RefStar Class Reference

Objects used as position/flux anchors (e.g. More...

#include <RefStar.h>

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

Public Member Functions

 RefStar (double xx, double yy, double flux, double fluxErr)
 
 RefStar (RefStar const &)=delete
 No copy: each RefStar is unique, and should be accessed/managed via shared_ptr.
 
 RefStar (RefStar &&)=default
 
RefStaroperator= (RefStar const &)=delete
 
RefStaroperator= (RefStar &&)=default
 
void setProperMotion (ProperMotion const &properMotion)
 
void setProperMotion (std::unique_ptr< ProperMotion const > &&properMotion)
 
Point applyProperMotion (const Point &star, double timeDeltaYears) const
 Apply proper motion correction to the input star, returning a star with PM-corrected coordinates and coordinate errors.
 
double getX () const
 access stuff.
 
double getY () const
 
virtual void print (std::ostream &out) 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

Objects used as position/flux anchors (e.g.

Gaia DR2 stars). Coordinate system should match that of the fittedStars these are associated with; typically the common tangent plane.

RefStars should have their proper motion and parallax corrections pre-applied, so that they are at the same epoch as is stored in Associations.

Definition at line 45 of file RefStar.h.

Constructor & Destructor Documentation

◆ RefStar() [1/3]

lsst::jointcal::RefStar::RefStar ( double xx,
double yy,
double flux,
double fluxErr )
inline

Definition at line 47 of file RefStar.h.

47: BaseStar(xx, yy, flux, fluxErr) {}

◆ RefStar() [2/3]

lsst::jointcal::RefStar::RefStar ( RefStar const & )
delete

No copy: each RefStar is unique, and should be accessed/managed via shared_ptr.

◆ RefStar() [3/3]

lsst::jointcal::RefStar::RefStar ( RefStar && )
default

Member Function Documentation

◆ applyProperMotion()

Point lsst::jointcal::RefStar::applyProperMotion ( const Point & star,
double timeDeltaYears ) const

Apply proper motion correction to the input star, returning a star with PM-corrected coordinates and coordinate errors.

Star is returned unchanged if no proper motion data is available.

Parameters
starThe star to correct for this proper motion.
timeDeltaYearsThe difference in time from the correction epoch to correct for, in years.
Returns
The star with corrected coordinates.

Definition at line 34 of file RefStar.cc.

34 {
35 if (!_properMotion) {
36 return star;
37 } else {
38 return _properMotion->apply(star, timeDeltaYears);
39 }
40}

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

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

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

RefStar & lsst::jointcal::RefStar::operator= ( RefStar && )
default

◆ operator=() [2/2]

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

◆ print()

virtual void lsst::jointcal::BaseStar::print ( std::ostream & out) const
inlinevirtualinherited

Reimplemented from lsst::jointcal::Point.

Reimplemented in lsst::jointcal::MeasuredStar, and lsst::jointcal::FittedStar.

Definition at line 83 of file BaseStar.h.

83 {
84 FatPoint::print(out);
85 out << " flux: " << std::setprecision(9) << _flux << " fluxErr: " << _fluxErr;
86 }
void print(std::ostream &s=std::cout) const
Definition FatPoint.h:49
T setprecision(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; }

◆ setMagErr()

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

Definition at line 109 of file BaseStar.h.

109{ _magErr = magErr; }

◆ setProperMotion() [1/2]

void lsst::jointcal::RefStar::setProperMotion ( ProperMotion const & properMotion)
inline

Definition at line 56 of file RefStar.h.

56 {
57 _properMotion = std::make_unique<ProperMotion>(properMotion);
58 }

◆ setProperMotion() [2/2]

void lsst::jointcal::RefStar::setProperMotion ( std::unique_ptr< ProperMotion const > && properMotion)
inline

Definition at line 59 of file RefStar.h.

59 {
60 _properMotion = std::move(properMotion);
61 }
T move(T... args)

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