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 Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lsst::ip::diffim::DipoleCentroidAlgorithm Class Reference

Intermediate base class for algorithms that compute a centroid. More...

#include <DipoleAlgorithms.h>

Inheritance diagram for lsst::ip::diffim::DipoleCentroidAlgorithm:
lsst::meas::base::SimpleAlgorithm lsst::meas::base::SingleFrameAlgorithm lsst::meas::base::ForcedAlgorithm lsst::meas::base::BaseAlgorithm lsst::meas::base::BaseAlgorithm lsst::ip::diffim::NaiveDipoleCentroid

Public Types

enum  { FAILURE =meas::base::FlagHandler::FAILURE, POS_FAILURE, NEG_FAILURE, N_FLAGS }
 
typedef DipoleCentroidControl Control
 
typedef
meas::base::CentroidResultKey 
ResultKey
 

Public Member Functions

 DipoleCentroidAlgorithm (Control const &ctrl, std::string const &name, afw::table::Schema &schema, std::string const &doc)
 
ResultKey const & getPositiveKeys () const
 Return the standard centroid keys registered by this algorithm. More...
 
ResultKey const & getNegativeKeys () const
 
- Public Member Functions inherited from lsst::meas::base::SimpleAlgorithm
virtual void measureForced (afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure, afw::table::SourceRecord const &refRecord, afw::image::Wcs const &refWcs) const
 
virtual void measureNForced (afw::table::SourceCatalog const &measCat, afw::image::Exposure< float > const &exposure, afw::table::SourceCatalog const &refRecord, afw::image::Wcs const &refWcs) const
 
- Public Member Functions inherited from lsst::meas::base::SingleFrameAlgorithm
virtual void measure (afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const =0
 
virtual void measureN (afw::table::SourceCatalog const &measCat, afw::image::Exposure< float > const &exposure) const
 
- Public Member Functions inherited from lsst::meas::base::BaseAlgorithm
virtual void fail (afw::table::SourceRecord &measRecord, MeasurementError *error=NULL) const =0
 
virtual ~BaseAlgorithm ()
 

Protected Member Functions

 DipoleCentroidAlgorithm (Control const &ctrl, std::string const &name, afw::table::Schema &schema, std::string const &doc, ResultKey const &positiveKeys, ResultKey const &negativeKeys)
 Initialize with a manually-constructed key tuple. More...
 

Protected Attributes

Control _ctrl
 
meas::base::FluxResultKey _fluxResultKey
 
meas::base::FlagHandler _flagHandler
 
meas::base::SafeCentroidExtractor _centroidExtractor
 
ResultKey _positiveKeys
 
ResultKey _negativeKeys
 

Detailed Description

Intermediate base class for algorithms that compute a centroid.

Definition at line 79 of file DipoleAlgorithms.h.

Member Typedef Documentation

Definition at line 88 of file DipoleAlgorithms.h.

Definition at line 93 of file DipoleAlgorithms.h.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

lsst::ip::diffim::DipoleCentroidAlgorithm::DipoleCentroidAlgorithm ( Control const &  ctrl,
std::string const &  name,
afw::table::Schema schema,
std::string const &  doc 
)
inline

Definition at line 153 of file DipoleAlgorithms.h.

155  :
156  _ctrl(ctrl),
158 {
159  static boost::array<meas::base::FlagDefinition,N_FLAGS> const flagDefs = {{
160  {"flag", "general failure flag, set if anything went wrong"},
161  {"pos_flag", "failure flag for positive, set if anything went wrong"},
162  {"neg_flag", "failure flag for negative, set if anything went wrong"}
163  }};
164  _flagHandler = meas::base::FlagHandler::addFields(schema, name, flagDefs.begin(), flagDefs.end());
167  _positiveKeys = ResultKey(schema[name+"_pos"]);
168  _negativeKeys = ResultKey(schema[name+"_neg"]);
169 }
meas::base::CentroidResultKey ResultKey
table::Key< std::string > name
Definition: ApCorrMap.cc:71
afw::table::Schema schema
Definition: GaussianPsf.cc:41
Only the diagonal elements of the covariance matrix are provided.
Definition: constants.h:43
static CentroidResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc, UncertaintyEnum uncertainty)
Add the appropriate fields to a Schema, and return a CentroidResultKey that manages them...
meas::base::SafeCentroidExtractor _centroidExtractor
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinition const *begin, FlagDefinition const *end)
Definition: FlagHandler.cc:28
lsst::ip::diffim::DipoleCentroidAlgorithm::DipoleCentroidAlgorithm ( Control const &  ctrl,
std::string const &  name,
afw::table::Schema schema,
std::string const &  doc,
ResultKey const &  positiveKeys,
ResultKey const &  negativeKeys 
)
inlineprotected

Initialize with a manually-constructed key tuple.

Definition at line 171 of file DipoleAlgorithms.h.

174  :
175  _ctrl(ctrl),
177 {
180  static boost::array<meas::base::FlagDefinition,N_FLAGS> const flagDefs = {{
181  {"flag", "general failure flag, set if anything went wrong"},
182  {"pos_flag", "failure flag for positive, set if anything went wrong"},
183  {"neg_flag", "failure flag for negative, set if anything went wrong"}
184  }};
185  _flagHandler = meas::base::FlagHandler::addFields(schema, name, flagDefs.begin(), flagDefs.end());
186  _positiveKeys = ResultKey(schema[name+"_pos"]);
187  _negativeKeys = ResultKey(schema[name+"_neg"]);
188 }
meas::base::CentroidResultKey ResultKey
table::Key< std::string > name
Definition: ApCorrMap.cc:71
afw::table::Schema schema
Definition: GaussianPsf.cc:41
Only the diagonal elements of the covariance matrix are provided.
Definition: constants.h:43
static CentroidResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc, UncertaintyEnum uncertainty)
Add the appropriate fields to a Schema, and return a CentroidResultKey that manages them...
meas::base::SafeCentroidExtractor _centroidExtractor
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinition const *begin, FlagDefinition const *end)
Definition: FlagHandler.cc:28

Member Function Documentation

ResultKey const& lsst::ip::diffim::DipoleCentroidAlgorithm::getNegativeKeys ( ) const
inline

Definition at line 97 of file DipoleAlgorithms.h.

ResultKey const& lsst::ip::diffim::DipoleCentroidAlgorithm::getPositiveKeys ( ) const
inline

Return the standard centroid keys registered by this algorithm.

Definition at line 96 of file DipoleAlgorithms.h.

Member Data Documentation

meas::base::SafeCentroidExtractor lsst::ip::diffim::DipoleCentroidAlgorithm::_centroidExtractor
protected

Definition at line 107 of file DipoleAlgorithms.h.

Control lsst::ip::diffim::DipoleCentroidAlgorithm::_ctrl
protected

Definition at line 104 of file DipoleAlgorithms.h.

meas::base::FlagHandler lsst::ip::diffim::DipoleCentroidAlgorithm::_flagHandler
protected

Definition at line 106 of file DipoleAlgorithms.h.

meas::base::FluxResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_fluxResultKey
protected

Definition at line 105 of file DipoleAlgorithms.h.

ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_negativeKeys
protected

Definition at line 109 of file DipoleAlgorithms.h.

ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_positiveKeys
protected

Definition at line 108 of file DipoleAlgorithms.h.


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