lsst.meas.base
14.0-23-g2010ef9+1
|
A FunctorKey that maps SdssShapeResult to afw::table Records. More...
#include <SdssShape.h>
Public Types | |
typedef SdssShapeResult | Value |
Public Member Functions | |
SdssShapeResultKey () | |
Default constructor; instance will not be usuable unless subsequently assigned to. More... | |
SdssShapeResultKey (afw::table::SubSchema const &s) | |
Construct from a subschema, assuming _xx, _yy, etc. More... | |
virtual SdssShapeResult | get (afw::table::BaseRecord const &record) const |
Get an SdssShapeResult from the given record. More... | |
virtual void | set (afw::table::BaseRecord &record, SdssShapeResult const &value) const |
Set an SdssShapeResult in the given record. More... | |
virtual afw::geom::ellipses::Quadrupole | getPsfShape (afw::table::BaseRecord const &record) const |
Get a Quadrupole for the Psf from the given record. More... | |
virtual void | setPsfShape (afw::table::BaseRecord &record, afw::geom::ellipses::Quadrupole const &value) const |
Set a Quadrupole for the Psf at the position of the given record. More... | |
bool | isValid () const |
Return True if the key is valid. More... | |
FlagHandler const & | getFlagHandler () const |
virtual void | set (BaseRecord &record, SdssShapeResult const &value) const =0 |
virtual void | set (BaseRecord &record, T const &value) const=0 |
bool | operator== (SdssShapeResultKey const &other) const |
Compare the FunctorKey for equality with another, using the underlying Keys. More... | |
bool | operator!= (SdssShapeResultKey const &other) const |
Compare the FunctorKey for equality with another, using the underlying Keys. More... | |
Static Public Member Functions | |
static SdssShapeResultKey | addFields (afw::table::Schema &schema, std::string const &name, bool doMeasurePsf) |
Add the appropriate fields to a Schema, and return a SdssShapeResultKey that manages them. More... | |
A FunctorKey that maps SdssShapeResult to afw::table Records.
This is used internally by SdssShapeAlgorithm to transfer results from SdssShapeResult to SourceRecord, but it can also be used in the other direction by codes that need to extra an SdssShapeResult from a record.
Definition at line 73 of file SdssShape.h.
|
inline |
Default constructor; instance will not be usuable unless subsequently assigned to.
Definition at line 94 of file SdssShape.h.
lsst::meas::base::SdssShapeResultKey::SdssShapeResultKey | ( | afw::table::SubSchema const & | s | ) |
Construct from a subschema, assuming _xx, _yy, etc.
subfields
If a schema has "a_xx", "a_yy", etc. fields, this constructor allows you to construct a SdssShapeResultKey via:
Definition at line 719 of file SdssShape.cc.
|
static |
Add the appropriate fields to a Schema, and return a SdssShapeResultKey that manages them.
[in,out] | schema | Schema to add fields to. |
[in] | name | Name prefix for all fields; "_xx", "_yy", etc. will be appended to this to form the full field names. |
[in] | numFlags | Integer to accommodate not setting the Psf shape fields when doMeasurePsf is false. |
[in] | doMeasurePsf | Boolean indicating whether or not the Psf is being measured (as set in the SdssShapeControl class). |
Definition at line 667 of file SdssShape.cc.
|
virtual |
Get an SdssShapeResult from the given record.
Implements lsst::afw::table::FunctorKey< SdssShapeResult >.
Definition at line 738 of file SdssShape.cc.
|
inline |
Definition at line 129 of file SdssShape.h.
|
virtual |
Get a Quadrupole for the Psf from the given record.
Definition at line 753 of file SdssShape.cc.
bool lsst::meas::base::SdssShapeResultKey::isValid | ( | ) | const |
Return True if the key is valid.
Definition at line 786 of file SdssShape.cc.
|
inline |
Compare the FunctorKey for equality with another, using the underlying Keys.
Definition at line 123 of file SdssShape.h.
bool lsst::meas::base::SdssShapeResultKey::operator== | ( | SdssShapeResultKey const & | other | ) | const |
Compare the FunctorKey for equality with another, using the underlying Keys.
Definition at line 775 of file SdssShape.cc.
|
virtual |
Set an SdssShapeResult in the given record.
Definition at line 757 of file SdssShape.cc.
|
virtual |
Set a Quadrupole for the Psf at the position of the given record.
Definition at line 770 of file SdssShape.cc.