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::MeasuredStar Class Reference

objects measured on actual images. More...

#include <MeasuredStar.h>

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

Public Member Functions

 MeasuredStar ()
 
 MeasuredStar (BaseStar const &baseStar)
 
 MeasuredStar (MeasuredStar 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...
 
 MeasuredStar (MeasuredStar &&)=delete
 
MeasuredStaroperator= (MeasuredStar const &)=delete
 
MeasuredStaroperator= (MeasuredStar &&)=delete
 
void setFittedStar (std::shared_ptr< FittedStar > fittedStar)
 
void dump (std::ostream &stream=std::cout) const
 utility More...
 
void setInstFluxAndErr (double instFlux, double instFluxErr)
 
double getInstFlux () const
 
double getInstFluxErr () const
 
double getInstMag () const
 
double getInstMagErr () const
 
void setId (afw::table::RecordId id)
 
afw::table::RecordId getId ()
 
double getMagWeight () const
 the inverse of the mag variance More...
 
double getXFocal () const
 
void setXFocal (double xFocal)
 
double getYFocal () const
 
void setYFocal (double yFocal)
 
std::shared_ptr< FittedStargetFittedStar () const
 
CcdImage const & getCcdImage () const
 
void setCcdImage (const CcdImage *ccdImage)
 
bool isValid () const
 Fits may use that to discard outliers. More...
 
void setValid (bool v)
 Fits may use that to discard outliers. 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
 

Protected Attributes

double _flux
 
double _fluxErr
 
double _mag
 
double _magErr
 

Detailed Description

objects measured on actual images.

Coordinates and uncertainties are expressed in pixel image frame. Flux expressed in ADU/s.

Definition at line 46 of file MeasuredStar.h.

Constructor & Destructor Documentation

◆ MeasuredStar() [1/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( )
inline

Definition at line 48 of file MeasuredStar.h.

49  : BaseStar(),
50  _id(0),
51  _instFlux(0.),
52  _instFluxErr(0.),
53  _ccdImage(0),
54  _valid(true),
55  _xFocal(0.0),
56  _yFocal(0.0),
57  _instMag(0.),
58  _instMagErr(0.) {}

◆ MeasuredStar() [2/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( BaseStar const &  baseStar)
inline

Definition at line 60 of file MeasuredStar.h.

61  : BaseStar(baseStar),
62  _id(0),
63  _instFlux(0.),
64  _instFluxErr(0.),
65  _ccdImage(0),
66  _valid(true),
67  _xFocal(0.0),
68  _yFocal(0.0),
69  _instMag(0.),
70  _instMagErr(0.) {}

◆ MeasuredStar() [3/4]

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

◆ MeasuredStar() [4/4]

lsst::jointcal::MeasuredStar::MeasuredStar ( MeasuredStar &&  )
delete

Member Function Documentation

◆ 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::MeasuredStar::dump ( std::ostream s = std::cout) const
inlinevirtual

utility

Reimplemented from lsst::jointcal::BaseStar.

Definition at line 84 of file MeasuredStar.h.

84  {
86  stream << " instFlux: " << _instFlux << " instFluxErr: " << _instFluxErr << " id: " << _id
87  << " valid: " << _valid;
88  }
virtual void dump(std::ostream &stream=std::cout) const
utility
Definition: BaseStar.h:82

◆ getCcdImage()

CcdImage const& lsst::jointcal::MeasuredStar::getCcdImage ( ) const
inline

Definition at line 115 of file MeasuredStar.h.

115 { return *_ccdImage; };

◆ getFittedStar()

std::shared_ptr<FittedStar> lsst::jointcal::MeasuredStar::getFittedStar ( ) const
inline

Definition at line 113 of file MeasuredStar.h.

113 { return _fittedStar; };

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

◆ getId()

afw::table::RecordId lsst::jointcal::MeasuredStar::getId ( )
inline

Definition at line 103 of file MeasuredStar.h.

103 { return _id; }

◆ getInstFlux()

double lsst::jointcal::MeasuredStar::getInstFlux ( ) const
inline

Definition at line 97 of file MeasuredStar.h.

97 { return _instFlux; }

◆ getInstFluxErr()

double lsst::jointcal::MeasuredStar::getInstFluxErr ( ) const
inline

Definition at line 98 of file MeasuredStar.h.

98 { return _instFluxErr; }

◆ getInstMag()

double lsst::jointcal::MeasuredStar::getInstMag ( ) const
inline

Definition at line 99 of file MeasuredStar.h.

99 { return _instMag; }

◆ getInstMagErr()

double lsst::jointcal::MeasuredStar::getInstMagErr ( ) const
inline

Definition at line 100 of file MeasuredStar.h.

100 { return _instMagErr; }

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

◆ getMagWeight()

double lsst::jointcal::MeasuredStar::getMagWeight ( ) const
inline

the inverse of the mag variance

Definition at line 106 of file MeasuredStar.h.

106 { return (_instFlux * _instFlux / (_instFluxErr * _instFluxErr)); }

◆ 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

◆ getXFocal()

double lsst::jointcal::MeasuredStar::getXFocal ( ) const
inline

Definition at line 108 of file MeasuredStar.h.

108 { return _xFocal; }

◆ getY()

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

Definition at line 74 of file BaseStar.h.

74 { return y; }

◆ getYFocal()

double lsst::jointcal::MeasuredStar::getYFocal ( ) const
inline

Definition at line 110 of file MeasuredStar.h.

110 { return _yFocal; }

◆ isValid()

bool lsst::jointcal::MeasuredStar::isValid ( ) const
inline

Fits may use that to discard outliers.

Definition at line 120 of file MeasuredStar.h.

120 { return _valid; }

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

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

◆ operator=() [2/2]

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

◆ setCcdImage()

void lsst::jointcal::MeasuredStar::setCcdImage ( const CcdImage ccdImage)
inline

Definition at line 117 of file MeasuredStar.h.

117 { _ccdImage = ccdImage; };

◆ setFittedStar()

void lsst::jointcal::MeasuredStar::setFittedStar ( std::shared_ptr< FittedStar fittedStar)
inline

Definition at line 79 of file MeasuredStar.h.

79  {
80  if (fittedStar) fittedStar->getMeasurementCount()++;
81  _fittedStar = std::move(fittedStar);
82  }
T move(T... args)

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

◆ setId()

void lsst::jointcal::MeasuredStar::setId ( afw::table::RecordId  id)
inline

Definition at line 102 of file MeasuredStar.h.

102 { _id = id; }
table::Key< int > id
Definition: Detector.cc:162

◆ setInstFluxAndErr()

void lsst::jointcal::MeasuredStar::setInstFluxAndErr ( double  instFlux,
double  instFluxErr 
)
inline

Definition at line 90 of file MeasuredStar.h.

90  {
91  _instFlux = instFlux;
92  _instMag = instMagFromInstFlux(instFlux);
93  _instFluxErr = instFluxErr;
94  _instMagErr = magErrFromFluxErr(instFlux, instFluxErr);
95  }

◆ setMagErr()

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

Definition at line 107 of file BaseStar.h.

107 { _magErr = magErr; }

◆ setValid()

void lsst::jointcal::MeasuredStar::setValid ( bool  v)
inline

Fits may use that to discard outliers.

Definition at line 122 of file MeasuredStar.h.

122 { _valid = v; }

◆ setXFocal()

void lsst::jointcal::MeasuredStar::setXFocal ( double  xFocal)
inline

Definition at line 109 of file MeasuredStar.h.

109 { _xFocal = xFocal; }

◆ setYFocal()

void lsst::jointcal::MeasuredStar::setYFocal ( double  yFocal)
inline

Definition at line 111 of file MeasuredStar.h.

111 { _yFocal = yFocal; }

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

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