24#ifndef LSST_MEAS_BASE_SdssCentroid_h_INCLUDED
25#define LSST_MEAS_BASE_SdssCentroid_h_INCLUDED
34#include "lsst/pex/config.h"
50 LSST_CONTROL_FIELD(
binmax,
int,
"maximum allowed binning");
51 LSST_CONTROL_FIELD(
peakMin,
double,
"if the peak's less than this insist on binning at least once");
52 LSST_CONTROL_FIELD(
wfac,
double,
"fiddle factor for adjusting the binning");
53 LSST_CONTROL_FIELD(
doFootprintCheck,
bool,
"Do check that the centroid is contained in footprint.");
55 "If set > 0, Centroid Check also checks distance from footprint peak.");
A FunctorKey for CentroidResult.
vector-type utility class to build a collection of FlagDefinitions
Utility class for handling flag fields that indicate the failure modes of an algorithm.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
The Sdss Centroid Algorithm.
static FlagDefinition const NOT_AT_MAXIMUM
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=nullptr) const
Handle an exception thrown by the current algorithm by setting flags in the given record.
SdssCentroidAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
static FlagDefinition const NO_SECOND_DERIVATIVE
SdssCentroidControl Control
A typedef to the Control object for this algorithm, defined above.
static FlagDefinition const FAILURE
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
static FlagDefinitionList const & getFlagDefinitions()
static FlagDefinition const ALMOST_NO_SECOND_DERIVATIVE
static FlagDefinition const EDGE
A C++ control class to handle SdssCentroidAlgorithm's configuration.
double wfac
"fiddle factor for adjusting the binning" ;
SdssCentroidControl()
Default constructor.
bool doFootprintCheck
"Do check that the centroid is contained in footprint." ;
int binmax
"maximum allowed binning" ;
double maxDistToPeak
"If set > 0, Centroid Check also checks distance from footprint peak." ;
double peakMin
"if the peak's less than this insist on binning at least once" ;
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...