LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
DipoleAlgorithms.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 
3 /*
4  * LSST Data Management System
5  * Copyright 2008-2015 AURA/LSST
6  *
7  * This product includes software developed by the
8  * LSST Project (http://www.lsst.org/).
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the LSST License Statement and
21  * the GNU General Public License along with this program. If not,
22  * see <http://www.lsstcorp.org/LegalNotices/>.
23  */
24 
25 #ifndef LSST_IP_DIFFIM_DIPOLEALGORITHMS_H
26 #define LSST_IP_DIFFIM_DIPOLEALGORITHMS_H
27 // Control/algorithm hierarchy for dipole measurement.
29 //
30 
31 #include <stdio.h>
32 #include <execinfo.h>
33 #include <signal.h>
34 #include <stdlib.h>
35 #include <unistd.h>
36 #include <array>
37 
38 #include "lsst/base.h"
39 #include "lsst/pex/config.h"
40 #include "ndarray/eigen.h"
41 #include "lsst/afw/table/Source.h"
47 
48 namespace lsst {
49 namespace ip {
50 namespace diffim {
51 
53 public:
54 
55  explicit DipoleCentroidControl() {}
56 };
57 
59 public:
60 
61  explicit DipoleFluxControl() {}
62 };
63 
68 public:
69  LSST_CONTROL_FIELD(stepSizeCoord, float, "Default initial step size for coordinates in non-linear fitter");
70  LSST_CONTROL_FIELD(stepSizeFlux, float, "Default initial step size for flux in non-linear fitter");
71  LSST_CONTROL_FIELD(errorDef, double, "How many sigma the error bars of the non-linear fitter represent");
72  LSST_CONTROL_FIELD(maxFnCalls, int, "Maximum function calls for non-linear fitter; 0 = unlimited");
74  stepSizeCoord(0.1), stepSizeFlux(1.0), errorDef(1.0), maxFnCalls(100000) {}
75 };
76 
81 public:
82 
87 
89 
90  DipoleCentroidAlgorithm(Control const & ctrl, std::string const & name,
91  afw::table::Schema & schema, std::string const & doc);
92 
94 
96  ResultKey const & getPositiveKeys() const { return _positiveKeys; }
97  ResultKey const & getNegativeKeys() const { return _negativeKeys; }
98 
99 protected:
102  std::string const & doc, ResultKey const & positiveKeys, ResultKey const & negativeKeys);
103 
110 };
111 
116 public:
117 
122 
126 
128  std::string const & doc);
129 
130  // A typedef for the FunctorKey which returns the result of this algorithm
133  ResultKey const & getPositiveKeys() const { return _positiveKeys; }
134  ResultKey const & getNegativeKeys() const { return _negativeKeys; }
135 
136 protected:
137 
139  DipoleFluxAlgorithm(Control const & ctrl, std::string const & name,
140  afw::table::Schema & schema, std::string const & doc,
141  ResultKey const & positiveKeys, ResultKey const & negativeKeys);
142 
146 
149 };
150 
152  Control const & ctrl, std::string const & name, afw::table::Schema & schema, std::string const & doc
153  ) :
154  _ctrl(ctrl)
155 {
161  _positiveKeys = ResultKey(schema[name+"_pos"]);
162  _negativeKeys = ResultKey(schema[name+"_neg"]);
163 }
164 
166  Control const & ctrl, std::string const & name, afw::table::Schema & schema, std::string const & doc,
167  ResultKey const & positiveKeys, ResultKey const & negativeKeys
168  ) :
169  _ctrl(ctrl)
170 {
176 
177  _positiveKeys = ResultKey(schema[name+"_pos"]);
178  _negativeKeys = ResultKey(schema[name+"_neg"]);
179 }
180 
182  Control const & ctrl, std::string const & name, afw::table::Schema & schema,
183  std::string const & doc, ResultKey const & positiveKeys, ResultKey const & negativeKeys
184  ) :
185  _ctrl(ctrl)
186 {
188  meas::base::FluxResultKey::addFields(schema, name+"_pos", doc+": positive lobe");
189  meas::base::FluxResultKey::addFields(schema, name+"_neg", doc+": negative lobe");
190  _positiveKeys = ResultKey(positiveKeys);
191  _negativeKeys = ResultKey(negativeKeys);
192 }
193 
195  Control const & ctrl, std::string const & name, afw::table::Schema & schema,
196  std::string const & doc
197  ) :
198  _ctrl(ctrl)
199 {
201  meas::base::FluxResultKey::addFields(schema, name+"_pos", doc+": positive lobe");
202  meas::base::FluxResultKey::addFields(schema, name+"_neg", doc+": negative lobe");
203  _positiveKeys = ResultKey(schema[name+"_pos"]);
204  _negativeKeys = ResultKey(schema[name+"_neg"]);
205 }
206 
207 /*
208 class that knows how to calculate centroids as a simple unweighted first
209  * moment of the 3x3 region around the peaks
210  */
212 public:
213 
215 
217  DipoleFluxAlgorithm(ctrl, name, schema, "raw flux counts"),
218  _numPositiveKey(schema.addField<int>(name+"_npos", "number of positive pixels", "count")),
219  _numNegativeKey(schema.addField<int>(name+"_nneg", "number of negative pixels", "count"))
220  {
221  }
222 
223  void measure(
224  afw::table::SourceRecord & measRecord,
225  afw::image::Exposure<float> const & exposure
226  ) const;
227 
228  void fail(
229  afw::table::SourceRecord & measRecord,
231  ) const;
232 
233 private:
234 
235  Control _ctrl;
236  afw::table::Key<int> _numPositiveKey;
237  afw::table::Key<int> _numNegativeKey;
238 };
239 
244 public:
245 
253 
255  ResultKey const & getCenterKeys() const { return _centerKeys; }
256  ResultKey const & getPositiveKeys() const { return _positiveKeys; }
257  ResultKey const & getNegativeKeys() const { return _negativeKeys; }
258 
259  void measure(
260  afw::table::SourceRecord & measRecord,
261  afw::image::Exposure<float> const & exposure
262  ) const;
263 
264  void mergeCentroids(afw::table::SourceRecord & source, double posValue, double negValue) const;
265 
266  void fail(
267  afw::table::SourceRecord & measRecord,
269  ) const;
270 
271 protected:
274  ResultKey const & positiveKeys, ResultKey const & negativeKeys);
275 
276 private:
277 
278  Control _ctrl;
279  meas::base::FluxResultKey _fluxResultKey;
280  meas::base::FlagHandler _flagHandler;
281 };
282 
283 
284 
285 
290 public:
291 
293 
295  DipoleFluxAlgorithm(ctrl, name, schema, "jointly fitted psf flux counts"),
296  _ctrl(ctrl),
297  _chi2dofKey(schema.addField<float>(name+"_chi2dof",
298  "chi2 per degree of freedom of fit"))
299  {
300  meas::base::CentroidResultKey::addFields(schema, name+"_pos_centroid", "psf fitted center of positive lobe", meas::base::SIGMA_ONLY);
301  meas::base::CentroidResultKey::addFields(schema, name+"_neg_centroid", "psf fitted center of negative lobe", meas::base::SIGMA_ONLY);
302  meas::base::CentroidResultKey::addFields(schema, name+"_centroid", "average of negative and positive lobe positions", meas::base::SIGMA_ONLY);
303  _posCentroid = meas::base::CentroidResultKey(schema[name+"_pos_centroid"]);
304  _negCentroid = meas::base::CentroidResultKey(schema[name+"_neg_centroid"]);
305  _avgCentroid = meas::base::CentroidResultKey(schema[name+"_centroid"]);
306  }
308  afw::image::Exposure<float> const & exposure,
309  double negCenterX, double negCenterY, double negFlux,
310  double posCenterX, double poCenterY, double posFlux
311  ) const;
312 
313  void measure(
314  afw::table::SourceRecord & measRecord,
315  afw::image::Exposure<float> const & exposure
316  ) const;
317 
318  void fail(
319  afw::table::SourceRecord & measRecord,
321  ) const;
322 
323 private:
324 
325  Control _ctrl;
326  afw::table::Key<float> _chi2dofKey;
327  meas::base::CentroidResultKey _avgCentroid;
328  meas::base::CentroidResultKey _negCentroid;
329  meas::base::CentroidResultKey _posCentroid;
330 
331 };
332 
333 }}}// namespace lsst::ip::diffim
334 
335 #endif // !LSST_IP_DIFFIM_DIPOLEALGORITHMS_H
schema
table::Schema schema
Definition: Amplifier.cc:115
lsst::ip::diffim::DipoleCentroidAlgorithm::getNegativeKeys
ResultKey const & getNegativeKeys() const
Definition: DipoleAlgorithms.h:97
lsst::ip::diffim::DipoleCentroidControl
Definition: DipoleAlgorithms.h:52
lsst::ip::diffim::NaiveDipoleCentroid::fail
void fail(afw::table::SourceRecord &measRecord, meas::base::MeasurementError *error=NULL) const
Handle an exception thrown by the current algorithm by setting flags in the given record.
Definition: DipoleAlgorithms.cc:211
lsst::ip::diffim::DipoleFluxControl
Definition: DipoleAlgorithms.h:58
lsst::ip::diffim::DipoleCentroidAlgorithm::Control
DipoleCentroidControl Control
Definition: DipoleAlgorithms.h:88
lsst::meas::base::SimpleAlgorithm
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
Definition: Algorithm.h:170
std::string
STL class.
CentroidUtilities.h
lsst::log.log.logContinued.error
def error(fmt, *args)
Definition: logContinued.py:213
lsst::ip::diffim::DipoleFluxAlgorithm::POS_FLAG
static meas::base::FlagDefinition const POS_FLAG
Definition: DipoleAlgorithms.h:119
lsst::ip::diffim::NaiveDipoleCentroid::NaiveDipoleCentroid
NaiveDipoleCentroid(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
Definition: DipoleAlgorithms.cc:145
lsst::afw::table::SourceRecord
Record class that contains measurements made on a single exposure.
Definition: Source.h:80
lsst::ip::diffim::PsfDipoleFluxControl::stepSizeCoord
float stepSizeCoord
"Default initial step size for coordinates in non-linear fitter" ;
Definition: DipoleAlgorithms.h:69
lsst::afw::image::Exposure< float >
lsst::ip::diffim::DipoleFluxAlgorithm::_negativeKeys
ResultKey _negativeKeys
Definition: DipoleAlgorithms.h:148
lsst::ip::diffim::DipoleCentroidAlgorithm::getPositiveKeys
ResultKey const & getPositiveKeys() const
Return the standard centroid keys registered by this algorithm.
Definition: DipoleAlgorithms.h:96
std::pair
lsst::meas::base::SIGMA_ONLY
@ SIGMA_ONLY
Only the diagonal elements of the covariance matrix are provided.
Definition: constants.h:45
lsst::ip::diffim::DipoleCentroidAlgorithm
Intermediate base class for algorithms that compute a centroid.
Definition: DipoleAlgorithms.h:80
lsst::ip::diffim::DipoleCentroidAlgorithm::_positiveKeys
ResultKey _positiveKeys
Definition: DipoleAlgorithms.h:108
lsst::ip::diffim::DipoleCentroidAlgorithm::ResultKey
meas::base::CentroidResultKey ResultKey
Definition: DipoleAlgorithms.h:93
lsst::ip::diffim::DipoleCentroidAlgorithm::_negativeKeys
ResultKey _negativeKeys
Definition: DipoleAlgorithms.h:109
lsst::ip::diffim::NaiveDipoleFlux::measure
void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Given an image and a pixel position, return a Centroid using a naive 3x3 weighted moment.
Definition: DipoleAlgorithms.cc:268
lsst::ip::diffim::NaiveDipoleFlux::NaiveDipoleFlux
NaiveDipoleFlux(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
Definition: DipoleAlgorithms.h:216
FluxUtilities.h
lsst::ip::diffim::DipoleFluxAlgorithm::Control
DipoleFluxControl Control
A typedef to the Control object for this algorithm, defined above.
Definition: DipoleAlgorithms.h:125
lsst::meas::base::MeasurementError
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Definition: exceptions.h:48
lsst::ip::diffim::DipoleFluxAlgorithm::DipoleFluxAlgorithm
DipoleFluxAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema, std::string const &doc)
Definition: DipoleAlgorithms.h:194
lsst::ip::diffim::NaiveDipoleCentroid::measure
void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Given an image and a pixel position, return a Centroid using a naive 3x3 weighted moment.
Definition: DipoleAlgorithms.cc:156
lsst::ip::diffim::DipoleFluxAlgorithm
Intermediate base class for algorithms that compute a flux.
Definition: DipoleAlgorithms.h:115
lsst::ip::diffim::DipoleFluxAlgorithm::_flagHandler
meas::base::FlagHandler _flagHandler
Definition: DipoleAlgorithms.h:145
lsst::ip::diffim::DipoleFluxAlgorithm::_positiveKeys
ResultKey _positiveKeys
Definition: DipoleAlgorithms.h:147
lsst::afw::table::Schema
Defines the fields and offsets for a table.
Definition: Schema.h:50
InputUtilities.h
lsst::ip::diffim::NaiveDipoleCentroid
Intermediate base class for algorithms that compute a centroid.
Definition: DipoleAlgorithms.h:243
lsst::meas::base::CentroidResultKey
A FunctorKey for CentroidResult.
Definition: CentroidUtilities.h:88
lsst::afw::geom.transform.transformContinued.name
string name
Definition: transformContinued.py:32
lsst::ip::diffim::DipoleFluxAlgorithm::getNegativeKeys
ResultKey const & getNegativeKeys() const
Definition: DipoleAlgorithms.h:134
lsst::meas::base::FluxResultKey
A FunctorKey for FluxResult.
Definition: FluxUtilities.h:59
lsst::ip::diffim::PsfDipoleFluxControl::PsfDipoleFluxControl
PsfDipoleFluxControl()
Definition: DipoleAlgorithms.h:73
lsst::ip::diffim::NaiveDipoleCentroid::getPositiveKeys
ResultKey const & getPositiveKeys() const
Definition: DipoleAlgorithms.h:256
lsst::ip::diffim::DipoleFluxAlgorithm::getPositiveKeys
ResultKey const & getPositiveKeys() const
Return the standard flux keys registered by this algorithm.
Definition: DipoleAlgorithms.h:133
lsst::meas::base::CentroidResultKey::addFields
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.
Definition: CentroidUtilities.cc:66
lsst::meas::base::FlagDefinitionList
vector-type utility class to build a collection of FlagDefinitions
Definition: FlagHandler.h:60
lsst::ip::diffim::PsfDipoleFluxControl
C++ control object for PSF dipole fluxes.
Definition: DipoleAlgorithms.h:67
lsst::ip::diffim::PsfDipoleFluxControl::maxFnCalls
int maxFnCalls
"Maximum function calls for non-linear fitter; 0 = unlimited" ;
Definition: DipoleAlgorithms.h:72
lsst::ip::diffim::DipoleCentroidAlgorithm::DipoleCentroidAlgorithm
DipoleCentroidAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema, std::string const &doc)
Definition: DipoleAlgorithms.h:151
lsst::ip::diffim::DipoleFluxAlgorithm::FAILURE
static meas::base::FlagDefinition const FAILURE
Definition: DipoleAlgorithms.h:118
ast::detail::source
const char * source()
Source function that allows astChannel to source from a Stream.
Definition: Stream.h:224
lsst::ip::diffim::DipoleFluxAlgorithm::ResultKey
meas::base::FluxResultKey ResultKey
Definition: DipoleAlgorithms.h:131
base.h
lsst::ip::diffim::DipoleFluxControl::DipoleFluxControl
DipoleFluxControl()
Definition: DipoleAlgorithms.h:61
lsst::meas::base::FlagHandler
Utility class for handling flag fields that indicate the failure modes of an algorithm.
Definition: FlagHandler.h:148
lsst::ip::diffim::DipoleCentroidAlgorithm::_fluxResultKey
meas::base::FluxResultKey _fluxResultKey
Definition: DipoleAlgorithms.h:105
lsst::ip::diffim::DipoleFluxAlgorithm::_fluxResultKey
meas::base::FluxResultKey _fluxResultKey
Definition: DipoleAlgorithms.h:144
lsst::ip::diffim::NaiveDipoleFlux
Definition: DipoleAlgorithms.h:211
lsst::afw::table::Key< int >
LSST_CONTROL_FIELD
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
Definition: config.h:43
Algorithm.h
lsst::ip::diffim::PsfDipoleFlux::fail
void fail(afw::table::SourceRecord &measRecord, meas::base::MeasurementError *error=NULL) const
Handle an exception thrown by the current algorithm by setting flags in the given record.
Definition: DipoleAlgorithms.cc:513
Source.h
lsst::ip::diffim::PsfDipoleFlux::chi2
std::pair< double, int > chi2(afw::table::SourceRecord &source, afw::image::Exposure< float > const &exposure, double negCenterX, double negCenterY, double negFlux, double posCenterX, double poCenterY, double posFlux) const
Definition: DipoleAlgorithms.cc:352
lsst
A base class for image defects.
Definition: imageAlgorithm.dox:1
lsst::ip::diffim::NaiveDipoleCentroid::getCenterKeys
ResultKey const & getCenterKeys() const
Return the standard centroid keys registered by this algorithm.
Definition: DipoleAlgorithms.h:255
lsst::ip::diffim::DipoleCentroidAlgorithm::getFlagDefinitions
static meas::base::FlagDefinitionList const & getFlagDefinitions()
Definition: DipoleAlgorithms.cc:78
lsst::ip::diffim::DipoleFluxAlgorithm::_ctrl
Control _ctrl
Definition: DipoleAlgorithms.h:143
lsst::meas::base::FlagDefinition
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
Definition: FlagHandler.h:40
lsst::ip::diffim::DipoleFluxAlgorithm::NEG_FLAG
static meas::base::FlagDefinition const NEG_FLAG
Definition: DipoleAlgorithms.h:120
lsst::ip::diffim::NaiveDipoleCentroid::NaiveDipoleCentroid
NaiveDipoleCentroid(Control const &ctrl, std::string const &name, afw::table::Schema &schema, ResultKey const &positiveKeys, ResultKey const &negativeKeys)
Initialize with a manually-constructed key tuple.
lsst::ip::diffim::DipoleCentroidAlgorithm::_centerKeys
ResultKey _centerKeys
Definition: DipoleAlgorithms.h:107
FlagHandler.h
lsst::ip::diffim::PsfDipoleFlux
Implementation of Psf dipole flux.
Definition: DipoleAlgorithms.h:289
lsst::ip::diffim::NaiveDipoleCentroid::mergeCentroids
void mergeCentroids(afw::table::SourceRecord &source, double posValue, double negValue) const
Definition: DipoleAlgorithms.cc:184
lsst::ip::diffim::NaiveDipoleFlux::fail
void fail(afw::table::SourceRecord &measRecord, meas::base::MeasurementError *error=NULL) const
Handle an exception thrown by the current algorithm by setting flags in the given record.
Definition: DipoleAlgorithms.cc:288
lsst::ip::diffim::NaiveDipoleCentroid::getNegativeKeys
ResultKey const & getNegativeKeys() const
Definition: DipoleAlgorithms.h:257
lsst::ip::diffim::DipoleCentroidAlgorithm::NEG_FLAG
static meas::base::FlagDefinition const NEG_FLAG
Definition: DipoleAlgorithms.h:85
lsst::ip::diffim::DipoleCentroidAlgorithm::_flagHandler
meas::base::FlagHandler _flagHandler
Definition: DipoleAlgorithms.h:106
lsst::meas::base::FluxResultKey::addFields
static FluxResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc)
Add a pair of _instFlux, _instFluxErr fields to a Schema, and return a FluxResultKey that points to t...
Definition: FluxUtilities.cc:36
config.h
lsst::ip::diffim::DipoleCentroidControl::DipoleCentroidControl
DipoleCentroidControl()
Definition: DipoleAlgorithms.h:55
lsst::ip::diffim::PsfDipoleFluxControl::errorDef
double errorDef
"How many sigma the error bars of the non-linear fitter represent" ;
Definition: DipoleAlgorithms.h:71
lsst::ip::diffim::PsfDipoleFlux::Control
PsfDipoleFluxControl Control
Definition: DipoleAlgorithms.h:292
lsst::ip::diffim::PsfDipoleFlux::measure
void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
Definition: DipoleAlgorithms.cc:417
lsst::ip::diffim::DipoleCentroidAlgorithm::_ctrl
Control _ctrl
Definition: DipoleAlgorithms.h:104
lsst::ip::diffim::PsfDipoleFlux::PsfDipoleFlux
PsfDipoleFlux(PsfDipoleFluxControl const &ctrl, std::string const &name, afw::table::Schema &schema)
Definition: DipoleAlgorithms.h:294
lsst::ip::diffim::PsfDipoleFluxControl::stepSizeFlux
float stepSizeFlux
"Default initial step size for flux in non-linear fitter" ;
Definition: DipoleAlgorithms.h:70
lsst::ip::diffim::DipoleCentroidAlgorithm::POS_FLAG
static meas::base::FlagDefinition const POS_FLAG
Definition: DipoleAlgorithms.h:84
lsst::ip::diffim::DipoleFluxAlgorithm::getFlagDefinitions
static meas::base::FlagDefinitionList const & getFlagDefinitions()
Definition: DipoleAlgorithms.cc:66
lsst::meas::base::FlagHandler::addFields
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinitionList const &flagDefs, FlagDefinitionList const &exclDefs=FlagDefinitionList::getEmptyList())
Add Flag fields to a schema, creating a FlagHandler object to manage them.
Definition: FlagHandler.cc:37
lsst::ip::diffim::NaiveDipoleCentroid::ResultKey
meas::base::CentroidResultKey ResultKey
Tuple type that holds the keys that define a standard centroid algorithm.
Definition: DipoleAlgorithms.h:252
lsst::ip::diffim::NaiveDipoleFlux::Control
DipoleFluxControl Control
Definition: DipoleAlgorithms.h:214
lsst::ip::diffim::DipoleCentroidAlgorithm::FAILURE
static meas::base::FlagDefinition const FAILURE
Definition: DipoleAlgorithms.h:83