2 #ifndef LSST_JOINTCAL_CONSTRAINED_PHOTOMETRY_MODEL_H 3 #define LSST_JOINTCAL_CONSTRAINED_PHOTOMETRY_MODEL_H 17 for (
auto const &
ccdImage : ccdImageList) {
18 _myMap[
ccdImage] = std::unique_ptr<PhotometryMapping>(
29 unsigned assignIndices(std::string
const &whatToFit,
unsigned firstIndex)
override {
return 0; }
32 for (
auto &i : _myMap) {
33 i.second->offsetParams(&delta(i.second->getIndex()));
42 Eigen::VectorXd &derivatives)
override {}
54 typedef std::map<std::shared_ptr<CcdImage>, std::unique_ptr<PhotometryMapping>> MapType;
65 #endif // LSST_JOINTCAL_CONSTRAINED_PHOTOMETRY_MODEL_H
double photomFactor(CcdImage const &ccdImage, Point const &where) const override
Return the "photometric factor" at a given location on a ccdImage.
ConstrainedPhotometryModel(CcdImageList const &ccdImageList)
void computeParameterDerivatives(MeasuredStar const &measuredStar, CcdImage const &ccdImage, Eigen::VectorXd &derivatives) override
Compute the parametric derivatives of this model.
unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex) override
Assign indices to parameters involved in mappings, starting at firstIndex.
void getMappingIndices(CcdImage const &ccdImage, std::vector< unsigned > &indices) override
Get how this set of parameters (of length Npar()) map into the "grand" fit.
Class for a simple mapping implementing a generic Gtransfo.
objects measured on actual images.
void offsetParams(Eigen::VectorXd const &delta) override
Offset the parameters by the provided amounts.
Interface class for PhotometryFit.
std::list< std::shared_ptr< CcdImage > > CcdImageList
Handler of an actual image from a single CCD.
ConstrainedPhotometryModel & operator=(ConstrainedPhotometryModel const &)=delete