1 #ifndef TWOTRANSFOMAPPING__H
2 #define TWOTRANSFOMAPPING__H
7 #include "eigenstuff.h"
8 #include "simplepolymapping.h"
14 unsigned _nPar1, _nPar2;
17 Eigen::MatrixX2d h1,h2;
18 Eigen::Matrix2d dt2dx;
21 std::auto_ptr<tmpVars> tmp;
28 unsigned Npar()
const;
36 Eigen::MatrixX2d &H)
const;
39 FatPoint &OutPos)
const;
42 const Gtransfo&
T1()
const
46 const Gtransfo&
T2()
const
52 void PosDerivative(Point &Where, Eigen::Matrix2d &Der,
const double & Eps)
const;
58 void SetWhatToFit(
const bool FittingT1,
const bool FittingT2);
The mapping with two transfos in a row.
Definition: twotransfomapping.h:11
virtual class needed in the abstraction of the distortion model
Definition: mapping.h:13
void ComputeTransformAndDerivatives(const FatPoint &Where, FatPoint &OutPos, Eigen::MatrixX2d &H) const
Actually applies the mapping and evaluates the derivatives w.r.t the fitted parameters.
Definition: twotransfomapping.cc:34
void TransformPosAndErrors(const FatPoint &Where, FatPoint &OutPos) const
The same as above but without the parameter derivatives (used to evaluate chi^2)
Definition: twotransfomapping.cc:85
void GetMappingIndices(std::vector< unsigned > &Indices) const
Provides for this parameter set (of length Npar()) how they map into the "grand" fit.
Definition: twotransfomapping.cc:20
void PosDerivative(Point &Where, Eigen::Matrix2d &Der, const double &Eps) const
Currently not implemented.
Definition: twotransfomapping.cc:93
const Gtransfo & T1() const
access to transfos
Definition: twotransfomapping.h:42
Class for a simple mapping implementing a generic Gtransfo.
Definition: simplepolymapping.h:14
const Gtransfo & Transfo() const
Access to the (fitted) transfo.
Definition: simplepolymapping.h:101
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
Definition: constrainedpolymodel.h:22
unsigned Npar() const
Mumber of parameters in total.
Definition: twotransfomapping.cc:14
const Gtransfo & T2() const
access to transfos
Definition: twotransfomapping.h:46