24 #ifndef LSST_MEAS_BASE_ApertureFlux_h_INCLUDED 25 #define LSST_MEAS_BASE_ApertureFlux_h_INCLUDED 53 "Maximum radius (in pixels) for which the sinc algorithm should be used instead of the " 54 "faster naive algorithm. For elliptical apertures, this is the minor axis radius.");
58 "Warping kernel used to shift Sinc photometry coefficients to different center positions");
80 static unsigned int const N_FLAGS = 3;
102 template <
typename T>
105 Control
const& ctrl = Control());
106 template <
typename T>
109 Control
const& ctrl = Control());
122 template <
typename T>
125 Control
const& ctrl = Control());
126 template <
typename T>
129 Control
const& ctrl = Control());
144 template <
typename T>
146 Control
const& ctrl = Control());
148 template <
typename T>
215 bool getFlag(
unsigned int index)
const {
return _flags[index]; }
223 void setFlag(
unsigned int index,
bool value =
true) { _flags[index] = value; }
226 void unsetFlag(
unsigned int index) { _flags[index] =
false; }
265 #endif // !LSST_MEAS_BASE_ApertureFlux_h_INCLUDED
bool getFlag(std::string const &name) const
Return the flag value associated with the given flag name.
bool getFlag(unsigned int index) const
Return the flag value associated with the given bit.
void setFlag(unsigned int index, bool value=true)
Set the flag value associated with the given bit.
afw::table::Schema schema
static FlagDefinitionList const & getFlagDefinitions()
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
Exception to be thrown when a measurement algorithm experiences a known failure mode.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
Configuration object for multiple-aperture flux algorithms.
Utility class for handling flag fields that indicate the failure modes of an algorithm.
static FlagDefinition const FAILURE
static FlagDefinition const APERTURE_TRUNCATED
Base class for multiple-aperture photometry algorithms.
double maxSincRadius
"Maximum radius (in pixels) for which the sinc algorithm should be used instead of the " "faster naiv...
static FlagDefinition const SINC_COEFFS_TRUNCATED
FlagHandler const & getFlagHandler(int index) const
FlagDefinition getDefinition(std::size_t index) const
get a reference to the FlagDefinition with specified index.
A FunctorKey for FluxResult.
std::unique_ptr< SchemaItem< U > > result
void unsetFlag(unsigned int index)
Clear (i.e. set to false) the flag associated with the given bit.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
ApertureFluxControl Control
std::string shiftKernel
"Warping kernel used to shift Sinc photometry coefficients to different center positions" ; ...
std::vector< double > radii
"Radius (in pixels) of apertures." ;
vector-type utility class to build a collection of FlagDefinitions
ApertureFluxResult Result
Result object returned by static methods.
A reusable result struct for instFlux measurements.
SafeCentroidExtractor _centroidExtractor
virtual ~ApertureFluxAlgorithm()
A Result struct for running an aperture flux algorithm with a single radius.