lsst.jointcal  master-g52a623bc1f+2
SimplePhotometryModel.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_SIMPLE_PHOTOMETRY_MODEL_H
3 #define LSST_JOINTCAL_SIMPLE_PHOTOMETRY_MODEL_H
4 
5 #include <map>
6 
11 #include "lsst/jointcal/Point.h"
12 
13 namespace lsst {
14 namespace jointcal {
15 
16 class CcdImage;
17 class Point;
18 
20 
22 public:
23  SimplePhotometryModel(CcdImageList const &ccdImageList);
24 
30 
39  unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex) override;
40 
48  void offsetParams(Eigen::VectorXd const &delta) override;
49 
60  double photomFactor(CcdImage const &ccdImage, Point const &where = Point()) const override;
61 
62  void getMappingIndices(CcdImage const &ccdImage, std::vector<unsigned> &indices) override;
63 
64  void computeParameterDerivatives(MeasuredStar const &measuredStar, CcdImage const &ccdImage,
65  Eigen::VectorXd &derivatives) override;
66 
67 private:
68  typedef std::map<CcdImage const *, std::unique_ptr<PhotometryMapping>> MapType;
69  MapType _myMap;
70 
72  PhotometryMapping *findMapping(CcdImage const &ccdImage, std::string name) const override;
73 };
74 
75 } // namespace jointcal
76 } // namespace lsst
77 
78 #endif // LSST_JOINTCAL_SIMPLE_PHOTOMETRY_MODEL_H
A point in a plane.
Definition: Point.h:13
SimplePhotometryModel(CcdImageList const &ccdImageList)
Class for a simple mapping implementing a generic Gtransfo.
Definition: Associations.h:24
void computeParameterDerivatives(MeasuredStar const &measuredStar, CcdImage const &ccdImage, Eigen::VectorXd &derivatives) override
Compute the parametric derivatives of this model.
objects measured on actual images.
Definition: MeasuredStar.h:18
void getMappingIndices(CcdImage const &ccdImage, std::vector< unsigned > &indices) override
Get how this set of parameters (of length Npar()) map into the "grand" fit.
double photomFactor(CcdImage const &ccdImage, Point const &where=Point()) const override
Return the "photometric factor" for this ccdImage.
unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex) override
Assign indices to parameters involved in mappings, starting at firstIndex.
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
Definition: CcdImage.h:22
Handler of an actual image from a single CCD.
Definition: CcdImage.h:31
SimplePhotometryModel & operator=(SimplePhotometryModel const &)=delete
Photometric response model which has a single photometric factor per CcdImage.