LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
A FunctorKey for MagResult. More...
#include <FluxUtilities.h>
Public Types | |
using | Value = MagResult |
The data type for get and set. More... | |
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, afw::image::Measurement const &magnitude) const |
Set a MagResult in the record given the result of afw::image::PhotoCalib::instFluxToMagnitude . More... | |
virtual void | set (BaseRecord &record, MagResult const &value) const=0 |
Static Public Member Functions | |
static MagResultKey | addFields (afw::table::Schema &schema, std::string const &name) |
Add a pair of _mag, _magErr fields to a Schema, and return a MagResultKey that points to them. More... | |
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 138 of file FluxUtilities.h.
|
inherited |
The data type for get and set.
Definition at line 77 of file FunctorKey.h.
|
inline |
Default constructor; instance will not be usuable unless subsequently assigned to.
Definition at line 150 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 160 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 57 of file FluxUtilities.cc.
|
virtual |
Get a MagResult from the given record.
Implements lsst::afw::table::OutputFunctorKey< MagResult >.
Definition at line 64 of file FluxUtilities.cc.
|
virtual |
Set a MagResult in the record given the result of afw::image::PhotoCalib::instFluxToMagnitude
.
Definition at line 74 of file FluxUtilities.cc.
|
virtual |
Set a MagResult in the given record.
Definition at line 69 of file FluxUtilities.cc.
|
pure virtualinherited |