LSSTApplications  18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
lsst::jointcal::FittedStar Class Reference

The objects which have been measured several times. More...

#include <FittedStar.h>

Inheritance diagram for lsst::jointcal::FittedStar:
lsst::jointcal::BaseStar lsst::jointcal::PmBlock 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. More...
 
 FittedStar (FittedStar &&)=delete
 
FittedStaroperator= (FittedStar const &)=delete
 
FittedStaroperator= (FittedStar &&)=delete
 
void clearBeforeAssoc ()
 
void dump (std::ostream &stream=std::cout) const
 utility More...
 
int getMeasurementCount () const
 
int & getMeasurementCount ()
 
void addMagMeasurement (double magValue, double magWeight)
 Add a measuredStar on-sky magnitude. More...
 
void setIndexInMatrix (Eigen::Index const index)
 index is a value that a fit can set and reread.... More...
 
Eigen::Index getIndexInMatrix () const
 
void setRefStar (const RefStar *_refStar)
 Set the astrometric reference star associated with this star. More...
 
const RefStargetRefStar () const
 Get the astrometric reference star associated with this star. More...
 
double getX () const
 access stuff. More...
 
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 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
 
double pmx
 
double pmy
 
double epmx
 
double epmy
 
double epmxy
 
double color
 
bool mightMove
 

Protected Attributes

double _flux
 
double _fluxErr
 
double _mag
 
double _magErr
 

Detailed Description

The objects which have been measured several times.

MeasuredStars from different CcdImages that represent the same on-sky object all point to one FittedStar.

Definition at line 61 of file FittedStar.h.

Constructor & Destructor Documentation

◆ FittedStar() [1/5]

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

Definition at line 63 of file FittedStar.h.

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

◆ FittedStar() [2/5]

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

Definition at line 65 of file FittedStar.h.

66  : 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 79 of file FittedStar.h.

79  {
80  _indexInMatrix = -1;
81  _measurementCount = 0;
82  _refStar = nullptr;
83  _flux = 0;
84  _fluxErr = 0;
85  _mag = 0;
86  _magErr = 0;
87  }

◆ computeDist2()

double lsst::jointcal::Point::computeDist2 ( const Point other) const
inlineinherited

distance squared to other

Definition at line 55 of file Point.h.

55  {
56  return ((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
57  };
ItemVariant const * other
Definition: Schema.cc:56
double x
coordinate
Definition: Point.h:41

◆ Distance()

double lsst::jointcal::Point::Distance ( const Point other) const
inlineinherited

Definition at line 50 of file Point.h.

50  {
51  return sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y));
52  };
ItemVariant const * other
Definition: Schema.cc:56
double x
coordinate
Definition: Point.h:41
T sqrt(T... args)

◆ dump()

void lsst::jointcal::FittedStar::dump ( std::ostream s = std::cout) const
inlinevirtual

utility

Reimplemented from lsst::jointcal::BaseStar.

Definition at line 90 of file FittedStar.h.

90  {
92  stream << " mcount: " << _measurementCount;
93  }
virtual void dump(std::ostream &stream=std::cout) const
utility
Definition: BaseStar.h:82

◆ getFlux() [1/2]

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

Definition at line 96 of file BaseStar.h.

96 { return _flux; }

◆ getFlux() [2/2]

double& lsst::jointcal::BaseStar::getFlux ( )
inlineinherited

Definition at line 97 of file BaseStar.h.

97 { return _flux; }

◆ getFluxErr()

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

Definition at line 100 of file BaseStar.h.

100 { return _fluxErr; }

◆ getIndexInMatrix()

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

Definition at line 106 of file FittedStar.h.

106 { return _indexInMatrix; }

◆ getMag() [1/2]

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

Definition at line 103 of file BaseStar.h.

103 { return _mag; }

◆ getMag() [2/2]

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

Definition at line 104 of file BaseStar.h.

104 { return _mag; }

◆ getMagErr()

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

Definition at line 106 of file BaseStar.h.

106 { return _magErr; }

◆ getMeasurementCount() [1/2]

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

Definition at line 96 of file FittedStar.h.

96 { return _measurementCount; }

◆ getMeasurementCount() [2/2]

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

Definition at line 97 of file FittedStar.h.

97 { return _measurementCount; }

◆ getRefStar()

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

Get the astrometric reference star associated with this star.

Definition at line 112 of file FittedStar.h.

112 { return _refStar; };

◆ getX()

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

access stuff.

Definition at line 72 of file BaseStar.h.

72 { return x; }
double x
coordinate
Definition: Point.h:41

◆ getY()

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

Definition at line 74 of file BaseStar.h.

74 { return y; }

◆ operator+()

Point lsst::jointcal::Point::operator+ ( const Point Right) const
inlineinherited

Sum.

Definition at line 60 of file Point.h.

60 { return Point(x + Right.x, y + Right.y); }
double x
coordinate
Definition: Point.h:41

◆ operator-()

Point lsst::jointcal::Point::operator- ( const Point Right) const
inlineinherited

Difference.

Definition at line 63 of file Point.h.

63 { return Point(x - Right.x, y - Right.y); }
double x
coordinate
Definition: Point.h:41

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setFlux()

void lsst::jointcal::BaseStar::setFlux ( double  flux)
inlineinherited

Definition at line 98 of file BaseStar.h.

98 { _flux = flux; }

◆ setFluxErr()

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

Definition at line 101 of file BaseStar.h.

101 { _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 103 of file FittedStar.h.

103 { _indexInMatrix = index; };

◆ setMagErr()

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

Definition at line 107 of file BaseStar.h.

107 { _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_WARN(_log,
50  "FittedStar: " << *this << " is already matched to another RefStar. Clean up your lists.");
51  LOGLS_WARN(_log, "old refStar: " << *_refStar);
52  LOGLS_WARN(_log, "new refStar: " << *refStar);
53  } else
54  _refStar = refStar;
55 }
#define LOGLS_WARN(logger, message)
Log a warn-level message using an iostream-based interface.
Definition: Log.h:648

◆ typeName()

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

Definition at line 92 of file BaseStar.h.

92 { return "BaseStar"; }

Member Data Documentation

◆ _flux

double lsst::jointcal::BaseStar::_flux
protectedinherited

Definition at line 111 of file BaseStar.h.

◆ _fluxErr

double lsst::jointcal::BaseStar::_fluxErr
protectedinherited

Definition at line 112 of file BaseStar.h.

◆ _mag

double lsst::jointcal::BaseStar::_mag
protectedinherited

Definition at line 115 of file BaseStar.h.

◆ _magErr

double lsst::jointcal::BaseStar::_magErr
protectedinherited

Definition at line 116 of file BaseStar.h.

◆ color

double lsst::jointcal::PmBlock::color
inherited

Definition at line 50 of file FittedStar.h.

◆ epmx

double lsst::jointcal::PmBlock::epmx
inherited

Definition at line 49 of file FittedStar.h.

◆ epmxy

double lsst::jointcal::PmBlock::epmxy
inherited

Definition at line 49 of file FittedStar.h.

◆ epmy

double lsst::jointcal::PmBlock::epmy
inherited

Definition at line 49 of file FittedStar.h.

◆ mightMove

bool lsst::jointcal::PmBlock::mightMove
inherited

Definition at line 51 of file FittedStar.h.

◆ pmx

double lsst::jointcal::PmBlock::pmx
inherited

Definition at line 48 of file FittedStar.h.

◆ pmy

double lsst::jointcal::PmBlock::pmy
inherited

Definition at line 48 of file FittedStar.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 41 of file Point.h.

◆ y

double lsst::jointcal::Point::y
inherited

Definition at line 41 of file Point.h.


The documentation for this class was generated from the following files: