24 #ifndef LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
25 #define LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
32 namespace lsst {
namespace meas {
namespace base {
71 std::string
const &
name,
72 std::string
const & doc
150 std::string
const &
name
229 #endif // !LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
bool isValid() const
Return true if the key was initialized to valid offset.
Defines the fields and offsets for a table.
bool operator==(FluxResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying flux and fluxSigma Keys...
MagResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming mag and magErr subfields.
A proxy type for name lookups in a Schema.
table::Key< std::string > name
FluxResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
virtual void set(afw::table::BaseRecord &record, FluxResult const &other) const
Set a FluxResult in the given record.
A custom container class for records, based on std::vector.
afw::table::Schema schema
A mapping between the keys of two Schemas, used to copy data between them.
A FunctorKey for MagResult.
A reusable result struct for magnitudes.
Implementation of the WCS standard for a any projection.
afw::table::Key< Mag > _magKey
static FluxResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc)
FluxResult()
Default constructor; initializes everything to NaN.
afw::table::Key< MagErrElement > _magErrKey
FluxResultKey(afw::table::Key< meas::base::Flux > const &flux, afw::table::Key< FluxErrElement > const &fluxSigma)
Construct from a pair of Keys.
FluxResult(Flux flux_, FluxErrElement fluxSigma_)
Constructor from flux and its uncertainty.
FluxResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming flux and fluxSigma subfields.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
afw::table::Key< Flux > _flux
bool isValid() const
Return True if both the flux and fluxSigma Keys are valid.
Flux flux
Measured flux in DN.
MagResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
A FunctorKey for FluxResult.
static MagResultKey addFields(afw::table::Schema &schema, std::string const &name)
Base class for all records.
A class used as a handle to a particular field in a table.
NoThrowOnNegativeFluxContext()
virtual void set(afw::table::BaseRecord &record, MagResult const &magResult) const
Set a MagResult in the given record.
afw::table::Key< meas::base::Flux > getFlux() const
Return the underlying flux Key.
afw::table::Key< FluxErrElement > getFluxSigma() const
Return the underlying fluxSigma Key.
FluxErrElement fluxSigma
1-Sigma error (sqrt of variance) on flux in DN.
~NoThrowOnNegativeFluxContext()
afw::table::Key< FluxErrElement > _fluxSigma
A reusable result struct for flux measurements.
bool operator!=(FluxResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying flux and fluxSigma Keys...