24 #ifndef LSST_MEAS_BASE_FluxUtilities_h_INCLUDED 25 #define LSST_MEAS_BASE_FluxUtilities_h_INCLUDED 34 namespace lsst {
namespace meas {
namespace base {
48 flux(flux_), fluxSigma(fluxSigma_)
85 _flux(flux), _fluxSigma(fluxSigma)
108 return _flux == other._flux && _fluxSigma == other._fluxSigma;
114 bool isValid()
const {
return _flux.isValid() && _fluxSigma.isValid(); }
226 bool _throwOnNegative;
231 #endif // !LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
MagResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming mag and magErr subfields.
afw::table::Key< meas::base::Flux > getFlux() const
Return the underlying flux Key.
FluxResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
afw::table::Schema schema
A FunctorKey for MagResult.
Temporarily replace negative fluxes with NaNs.
A reusable result struct for magnitudes.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
FluxResult()
Default constructor; initializes everything to NaN.
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.
Flux flux
Measured flux in DN.
bool operator!=(FluxResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying flux and fluxSigma Keys...
MagResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
A FunctorKey for FluxResult.
bool isValid() const
Return True if both the flux and fluxSigma Keys are valid.
afw::table::Key< FluxErrElement > getFluxSigma() const
Return the underlying fluxSigma Key.
FluxErrElement fluxSigma
1-Sigma error (sqrt of variance) on flux in DN.
A reusable result struct for flux measurements.