LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
lsst::jointcal::BaseStar Class Reference

The base class for handling stars. Used by all matching routines. More...

#include <BaseStar.h>

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

Public Member Functions

 BaseStar ()
 
 BaseStar (double xx, double yy, double flux, double fluxErr)
 constructor
 
 BaseStar (Point const &point, double flux, double fluxErr, double mag, double magErr)
 
double getX () const
 access stuff.
 
double getY () const
 
virtual void print (std::ostream &out) const
 
BaseStaroperator= (Point const &point)
 
virtual ~BaseStar ()=default
 
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 {}
 

Friends

std::ostreamoperator<< (std::ostream &stream, BaseStar const &s)
 allows std::cout << aBaseStar;
 

Detailed Description

The base class for handling stars. Used by all matching routines.

Definition at line 51 of file BaseStar.h.

Constructor & Destructor Documentation

◆ BaseStar() [1/3]

lsst::jointcal::BaseStar::BaseStar ( )
inline

Definition at line 53 of file BaseStar.h.

53 {
54 x = 0;
55 y = 0;
56 _flux = 0;
57 };
double x
coordinate
Definition Point.h:42

◆ BaseStar() [2/3]

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

constructor

Definition at line 59 of file BaseStar.h.

60 : FatPoint(xx, yy),
61 _flux(flux),
62 _fluxErr(fluxErr),
64 _magErr(magErrFromFluxErr(flux, fluxErr)){};
double nanojanskyToABMagnitude(double flux)
Convert a flux in nanojansky to AB magnitude.
Definition Magnitude.cc:30

◆ BaseStar() [3/3]

lsst::jointcal::BaseStar::BaseStar ( Point const & point,
double flux,
double fluxErr,
double mag,
double magErr )
inline

Definition at line 65 of file BaseStar.h.

66 : FatPoint(point),
67 _flux(flux),
68 _fluxErr(fluxErr),
70 _magErr(magErrFromFluxErr(flux, fluxErr)){};

◆ ~BaseStar()

virtual lsst::jointcal::BaseStar::~BaseStar ( )
virtualdefault

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

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

Definition at line 99 of file BaseStar.h.

99{ return _flux; }

◆ getFlux() [2/2]

double lsst::jointcal::BaseStar::getFlux ( ) const
inline

Definition at line 98 of file BaseStar.h.

98{ return _flux; }

◆ getFluxErr()

double lsst::jointcal::BaseStar::getFluxErr ( ) const
inline

Definition at line 102 of file BaseStar.h.

102{ return _fluxErr; }

◆ getMag() [1/2]

double & lsst::jointcal::BaseStar::getMag ( )
inline

Definition at line 106 of file BaseStar.h.

106{ return _mag; }

◆ getMag() [2/2]

double lsst::jointcal::BaseStar::getMag ( ) const
inline

Definition at line 105 of file BaseStar.h.

105{ return _mag; }

◆ getMagErr()

double lsst::jointcal::BaseStar::getMagErr ( ) const
inline

Definition at line 108 of file BaseStar.h.

108{ return _magErr; }

◆ getX()

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

access stuff.

Definition at line 73 of file BaseStar.h.

73{ return x; }

◆ getY()

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

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=()

BaseStar & lsst::jointcal::BaseStar::operator= ( Point const & point)
inline

Definition at line 88 of file BaseStar.h.

88 {
89 x = point.x;
90 y = point.y;
91 return (*this);
92 };

◆ print()

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

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

Definition at line 100 of file BaseStar.h.

100{ _flux = flux; }

◆ setFluxErr()

void lsst::jointcal::BaseStar::setFluxErr ( double fluxErr)
inline

Definition at line 103 of file BaseStar.h.

103{ _fluxErr = fluxErr; }

◆ setMagErr()

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

Definition at line 109 of file BaseStar.h.

109{ _magErr = magErr; }

◆ typeName()

static const char * lsst::jointcal::BaseStar::typeName ( )
inlinestatic

Definition at line 94 of file BaseStar.h.

94{ return "BaseStar"; }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
BaseStar const & s )
friend

allows std::cout << aBaseStar;

Definition at line 78 of file BaseStar.h.

78 {
79 s.print(stream);
80 return stream;
81 }

Member Data Documentation

◆ _flux

double lsst::jointcal::BaseStar::_flux
protected

Definition at line 113 of file BaseStar.h.

◆ _fluxErr

double lsst::jointcal::BaseStar::_fluxErr {}
protected

Definition at line 114 of file BaseStar.h.

114{};

◆ _mag

double lsst::jointcal::BaseStar::_mag {}
protected

Definition at line 117 of file BaseStar.h.

117{};

◆ _magErr

double lsst::jointcal::BaseStar::_magErr {}
protected

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