2 #ifndef LSST_JOINTCAL_PHOTOMETRY_MAPPING_H
3 #define LSST_JOINTCAL_PHOTOMETRY_MAPPING_H
35 for (
unsigned k = 0; k <
getNpar(); ++k) {
36 indices[k] =
index + k;
66 std::shared_ptr<PhotometryTransfo>
transfo;
72 #endif // LSST_JOINTCAL_PHOTOMETRY_MAPPING_H
PhotometryMapping(PhotometryTransfo const &_transfo)
PhotometryMapping & operator=(PhotometryMapping const &)=delete
void setIndex(unsigned i)
Set the index of this mapping in the grand fit.
PhotometryTransfo const & getTransfo()
void transformPosAndErrors(Point const &where, double &out) const
The same as above but without the parameter derivatives (used to evaluate chi^2)
void computeTransformAndDerivatives(Point const &where, double &out, Eigen::MatrixX2d &H) const
Applies the mapping and evaluates the derivatives with respect to the fitted parameters.
unsigned getIndex()
Get the index of this mapping in the grand fit.
std::shared_ptr< PhotometryTransfo > transfo
Eigen::Matrix< double, Eigen::Dynamic, 2 > MatrixX2d
void offsetParams(const double *delta)
unsigned getNpar() const
Number of total parameters in this mapping.
void setMappingIndices(std::vector< unsigned > &indices) const