LSST Applications g0f08755f38+c89d42e150,g1635faa6d4+b6cf076a36,g1653933729+a8ce1bb630,g1a0ca8cf93+4c08b13bf7,g28da252d5a+f33f8200ef,g29321ee8c0+0187be18b1,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+e740673f1a,g5fbc88fb19+17cd334064,g7642f7d749+c89d42e150,g781aacb6e4+a8ce1bb630,g80478fca09+f8b2ab54e1,g82479be7b0+e2bd23ab8b,g858d7b2824+c89d42e150,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+065360aec4,gacf8899fa4+9553554aa7,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gbd46683f8f+ac57cbb13d,gc28159a63d+9634bc57db,gcf0d15dbbd+e37acf7834,gda3e153d99+c89d42e150,gda6a2b7d83+e37acf7834,gdaeeff99f8+1711a396fd,ge2409df99d+cb1e6652d6,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+02b11634a5,w.2024.45
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: