lsst.jointcal  master-gc935ebf72c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 
8 #include "lsst/jointcal/Point.h"
9 #include <map>
10 
11 namespace lsst {
12 namespace jointcal {
13 
14 class CcdImage;
15 class Point;
16 
18 
20  struct PhotomStuff {
21  unsigned index;
22  double factor;
23  bool fixed;
24  PhotomStuff(const unsigned i = 0, const double f = 1) : index(i), factor(f), fixed(false){};
25  };
26 
27  typedef std::map<const CcdImage *, PhotomStuff> mapType;
28  mapType _myMap;
29 
30  PhotomStuff &find(const CcdImage &ccdImage);
31  const PhotomStuff &find(const CcdImage &ccdImage) const;
32 
33 public:
34  SimplePhotometryModel(const CcdImageList &ccdImageList);
35 
44  unsigned assignIndices(const std::string &whatToFit, unsigned firstIndex);
45 
53  void offsetParams(const Eigen::VectorXd &delta);
54 
65  double photomFactor(const CcdImage &ccdImage, const Point &where = Point()) const;
66 
67  void getIndicesAndDerivatives(const MeasuredStar &measuredStar, const CcdImage &ccdImage,
68  std::vector<unsigned> &indices, Eigen::VectorXd &D);
69 };
70 } // namespace jointcal
71 } // namespace lsst
72 
73 #endif // LSST_JOINTCAL_SIMPLE_PHOTOMETRY_MODEL_H
A point in a plane.
Definition: Point.h:13
void getIndicesAndDerivatives(const MeasuredStar &measuredStar, const CcdImage &ccdImage, std::vector< unsigned > &indices, Eigen::VectorXd &D)
number of parameters to be read in indices.size()
unsigned assignIndices(const std::string &whatToFit, unsigned firstIndex)
Assign indices to parameters involved in mappings, starting at firstIndex.
objects measured on actual images.
Definition: MeasuredStar.h:18
SimplePhotometryModel(const CcdImageList &ccdImageList)
Interface class for PhotometryFit.
std::list< std::shared_ptr< CcdImage > > CcdImageList
Definition: CcdImage.h:22
void offsetParams(const Eigen::VectorXd &delta)
Offset the parameters by the provided amounts.
double photomFactor(const CcdImage &ccdImage, const Point &where=Point()) const
Return the &quot;photometric factor&quot; for this ccdImage.
Handler of an actual image from a single CCD.
Definition: CcdImage.h:31
Photometric response model which has a single photometric factor per CcdImage.