2 #ifndef LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
3 #define LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
32 typedef std::map<const CcdImage *, std::unique_ptr<TwoTransfoMapping> > mappingMapType;
33 mappingMapType _mappings;
34 typedef std::map<CcdIdType, std::unique_ptr<SimpleGtransfoMapping> > chipMapType;
36 typedef std::map<VisitIdType, std::unique_ptr<SimpleGtransfoMapping> > visitMapType;
37 visitMapType _visitMap;
39 bool _fittingChips, _fittingVisits;
45 bool initFromWCS,
unsigned nNotFit = 0);
55 unsigned assignIndices(
unsigned firstIndex,
const std::string &whatToFit);
76 std::vector<VisitIdType>
getVisits()
const;
90 #endif // LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
unsigned assignIndices(unsigned firstIndex, const std::string &whatToFit)
Positions the various parameter sets into the parameter vector, starting at firstIndex.
void offsetParams(const Eigen::VectorXd &Delta)
Dispaches the offsets after a fit step into the actual locations of parameters.
virtual class needed in the abstraction of the distortion model
std::shared_ptr< TanSipPix2RaDec > produceSipWcs(const CcdImage &ccdImage) const
Cook up a SIP WCS.
Interface class between AstrometryFit and an actual model for the Mapping (s) from pixels to some tan...
virtual const Gtransfo * getSky2TP(const CcdImage &ccdImage) const =0
const Gtransfo & getChipTransfo(const CcdIdType chip) const
Access to mappings.
const Gtransfo & getVisitTransfo(const VisitIdType &visit) const
Access to mappings.
ConstrainedPolyModel(const CcdImageList &ccdImageList, const ProjectionHandler *projectionHandler, bool initFromWCS, unsigned nNotFit=0)
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
rectangle with sides parallel to axes.
std::vector< VisitIdType > getVisits() const
Access to array of visits involved in the solution.
This is a virtual class that allows a lot of freedom in the choice of the projection from "Sky" (wher...
const Gtransfo * getSky2TP(const CcdImage &ccdImage) const
The mapping of sky coordinates (i.e.
a virtual (interface) class for geometric transformations.
std::list< std::shared_ptr< CcdImage > > CcdImageList
Handler of an actual image from a single CCD.
void freezeErrorScales()
From there on, measurement errors are propagated using the current transfos (and no longer evolve)...
const Mapping * getMapping(const CcdImage &) const
Mapping associated to a given CcdImage.