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::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. More...
 
 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 (Point star, double timeDeltaYears) const
 Apply proper motion correction to the input star, returning a star with PM-corrected coordinates and coordinate errors. More...
 
double getX () const
 access stuff. More...
 
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
 
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

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

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.

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