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
Public Member Functions | Private Attributes | List of all members
lsst::meas::base::NoThrowOnNegativeFluxContext Class Reference

#include <FluxUtilities.h>

Public Member Functions

 NoThrowOnNegativeFluxContext ()
 
 ~NoThrowOnNegativeFluxContext ()
 

Private Attributes

bool _throwOnNegative
 

Detailed Description

Temporarily replace negative fluxes with NaNs

Instantiating a NoThrowOnNegativeFluxContext object will cause afw::image::Calib objects to return NaN, rather than throwing, when asked to convert a negative flux to a magnitude for the lifetime of the NoThrowOnNegativeFluxContext.

Definition at line 219 of file FluxUtilities.h.

Constructor & Destructor Documentation

lsst::meas::base::NoThrowOnNegativeFluxContext::NoThrowOnNegativeFluxContext ( )

Definition at line 118 of file FluxUtilities.cc.

lsst::meas::base::NoThrowOnNegativeFluxContext::~NoThrowOnNegativeFluxContext ( )

Definition at line 123 of file FluxUtilities.cc.

Member Data Documentation

bool lsst::meas::base::NoThrowOnNegativeFluxContext::_throwOnNegative
private

Definition at line 224 of file FluxUtilities.h.


The documentation for this class was generated from the following files: