LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
A FunctorKey for MagResult. More...
#include <FluxUtilities.h>
Public Member Functions | |
MagResultKey () | |
Default constructor; instance will not be usuable unless subsequently assigned to. More... | |
MagResultKey (afw::table::SubSchema const &s) | |
Construct from a subschema, assuming mag and magErr subfields. More... | |
virtual MagResult | get (afw::table::BaseRecord const &record) const |
Get a MagResult from the given record. More... | |
virtual void | set (afw::table::BaseRecord &record, MagResult const &magResult) const |
Set a MagResult in the given record. More... | |
virtual void | set (afw::table::BaseRecord &record, std::pair< double, double > const &magPair) const |
Set a MagResult in the record given the result of afw::image::Calib::getMagnitude(double, double) . More... | |
Public Member Functions inherited from lsst::afw::table::OutputFunctorKey< MagResult > | |
virtual | ~OutputFunctorKey () |
Public Member Functions inherited from lsst::afw::table::InputFunctorKey< MagResult > | |
virtual void | set (BaseRecord &record, MagResultconst &value) const =0 |
virtual | ~InputFunctorKey () |
Static Public Member Functions | |
static MagResultKey | addFields (afw::table::Schema &schema, std::string const &name) |
Private Attributes | |
afw::table::Key< Mag > | _magKey |
afw::table::Key< MagErrElement > | _magErrKey |
A FunctorKey for MagResult.
This class makes it easy to copy magnitudes and their uncertainties to and from records, and provides a method to add the appropriate fields to a Schema.
Definition at line 139 of file FluxUtilities.h.
|
inline |
Default constructor; instance will not be usuable unless subsequently assigned to.
Definition at line 154 of file FluxUtilities.h.
|
inline |
Construct from a subschema, assuming mag and magErr subfields.
If a schema has "a_mag" and "a_magErr" fields, this enables construction of a MagResultKey via:
Definition at line 164 of file FluxUtilities.h.
|
static |
Add a pair of _mag, _magErr fields to a Schema, and return a MagResultKey that points to them.
[in,out] | schema | Schema to add fields to. |
[in] | name | Name prefix for all fields; "_mag", "_magErr" will be appended to this to form the full field names. |
Definition at line 59 of file FluxUtilities.cc.
|
virtual |
Get a MagResult from the given record.
Implements lsst::afw::table::OutputFunctorKey< MagResult >.
Definition at line 69 of file FluxUtilities.cc.
|
virtual |
Set a MagResult in the given record.
Definition at line 74 of file FluxUtilities.cc.
|
virtual |
Set a MagResult in the record given the result of afw::image::Calib::getMagnitude(double, double)
.
Definition at line 79 of file FluxUtilities.cc.
|
private |
Definition at line 177 of file FluxUtilities.h.
|
private |
Definition at line 176 of file FluxUtilities.h.