25 #ifndef LSST_JOINTCAL_TWO_TRANSFO_MAPPING_H 26 #define LSST_JOINTCAL_TWO_TRANSFO_MAPPING_H 67 _m1->offsetParams(delta.segment(_m1->getIndex(), _m1->getNpar()));
68 _m2->offsetParams(delta.segment(_m2->getIndex() + _m1->getNpar(), _m2->getNpar()));
86 void setWhatToFit(
const bool fittingT1,
const bool fittingT2);
89 unsigned _nPar1, _nPar2;
93 Eigen::Matrix2d dt2dx;
101 #endif // LSST_JOINTCAL_TWO_TRANSFO_MAPPING_H
void positionDerivative(Point const &where, Eigen::Matrix2d &derivative, double epsilon) const
Currently not implemented.
The mapping with two transfos in a row.
void computeTransformAndDerivatives(FatPoint const &where, FatPoint &outPoint, Eigen::MatrixX2d &H) const
Actually applies the AstrometryMapping and evaluates the derivatives w.r.t the fitted parameters...
A Point with uncertainties.
unsigned getNpar() const
Number of parameters in total.
Class for a simple mapping implementing a generic Gtransfo.
TwoTransfoMapping(std::shared_ptr< SimpleGtransfoMapping > chipMapping, std::shared_ptr< SimpleGtransfoMapping > visitMapping)
Eigen::Matrix< double, Eigen::Dynamic, 2 > MatrixX2d
void freezeErrorTransform()
Currently not implemented.
void getMappingIndices(std::vector< unsigned > &indices) const
Sets how this set of parameters (of length Npar()) map into the "grand" fit Expects that indices has ...
a virtual (interface) class for geometric transformations.
void transformPosAndErrors(FatPoint const &where, FatPoint &outPoint) const
The same as above but without the parameter derivatives (used to evaluate chi^2)
TwoTransfoMapping & operator=(TwoTransfoMapping const &)=delete
virtual class needed in the abstraction of the distortion model
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
Gtransfo const & getTransfo1() const
access to transfos
Gtransfo const & getTransfo2() const
access to transfos
void offsetParams(Eigen::VectorXd const &delta)
Remember the error scale and freeze it.