LSSTApplications  11.0-24-g0a022a1,15.0+8,15.0+9,15.0-1-g19261fa+1,15.0-1-g1eca518+10,15.0-1-g60afb23+8,15.0-1-g615e0bb,15.0-1-g6668b0b+5,15.0-1-g788a293+8,15.0-1-ga91101e+8,15.0-1-gae1598d+7,15.0-1-gc45031d+10,15.0-1-gd076f1f+8,15.0-1-gdf18595+1,15.0-1-gf4f1c34+7,15.0-18-g5f205baaa,15.0-2-g100d730+1,15.0-2-g18f3f21,15.0-2-g35685a8+1,15.0-2-g947dc0d+10,15.0-2-ge3d7f4b+1,15.0-2-gf38729e,15.0-3-g150fc43+9,15.0-3-g6f085af+1,15.0-3-g9103c06+7,15.0-3-ga03b4ca+10,15.0-3-gaec6799+5,15.0-3-gb7a597c+8,15.0-3-ge6a6747,15.0-4-g45f767a+7,15.0-4-g654b129+6,15.0-4-gff20472+11,15.0-5-g389937dc+6,15.0-5-ga70c291+1,15.0-6-gbad5ef12+1,15.0-6-ge2d9597+10
LSSTDataManagementBasePackage
ConstrainedPolyModel.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
3 #define LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
4 
5 #include "memory" // for std::*_ptr
6 
8 
9 class CcdImage;
10 
12 #include "lsst/jointcal/Gtransfo.h"
13 #include "lsst/jointcal/Frame.h"
17 #include "lsst/jointcal/CcdImage.h"
18 
19 #include <map>
20 
21 namespace lsst {
22 namespace jointcal {
23 
32 public:
34  bool initFromWCS, unsigned nNotFit = 0, int chipDegree = 3, int visitDegree = 2);
35 
41 
42  // The following routines are the interface to AstrometryFit
44  Mapping const *getMapping(CcdImage const &) const;
45 
50  unsigned assignIndices(unsigned firstIndex, std::string const &whatToFit);
51 
56  void offsetParams(Eigen::VectorXd const &Delta);
57 
62  void freezeErrorTransform();
63 
65  Gtransfo const &getChipTransfo(CcdIdType const chip) const;
66 
68  Gtransfo const &getVisitTransfo(VisitIdType const &visit) const;
69 
72 
78  const Gtransfo *getSky2TP(CcdImage const &ccdImage) const { return _sky2TP->getSky2TP(ccdImage); }
79 
81 
82 private:
84  mappingMapType _mappings;
86  chipMapType _chipMap;
88  visitMapType _visitMap;
89  const ProjectionHandler *_sky2TP;
90  bool _fittingChips, _fittingVisits;
91 };
92 } // namespace jointcal
93 } // namespace lsst
94 
95 #endif // LSST_JOINTCAL_CONSTRAINED_POLY_MODEL_H
void offsetParams(Eigen::VectorXd const &Delta)
Dispaches the offsets after a fit step into the actual locations of parameters.
virtual class needed in the abstraction of the distortion model
Definition: Mapping.h:15
Interface class between AstrometryFit and an actual model for the Mapping (s) from pixels to some tan...
Gtransfo const & getVisitTransfo(VisitIdType const &visit) const
Access to mappings.
virtual const Gtransfo * getSky2TP(const CcdImage &ccdImage) const =0
STL class.
ConstrainedPolyModel(CcdImageList const &ccdImageList, ProjectionHandler const *projectionHandler, bool initFromWCS, unsigned nNotFit=0, int chipDegree=3, int visitDegree=2)
ConstrainedPolyModel & operator=(ConstrainedPolyModel const &)=delete
STL class.
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
A base class for image defects.
Definition: cameraGeom.dox:3
std::shared_ptr< TanSipPix2RaDec > produceSipWcs(CcdImage const &ccdImage) const
Cook up a SIP WCS.
void freezeErrorTransform()
From there on, measurement errors are propagated using the current transfos (and no longer evolve)...
This is a virtual class that allows a lot of freedom in the choice of the projection from "Sky" (wher...
STL class.
std::vector< VisitIdType > getVisits() const
Access to array of visits involved in the solution.
a virtual (interface) class for geometric transformations.
Definition: Gtransfo.h:41
Mapping const * getMapping(CcdImage const &) const
Mapping associated to a given CcdImage.
const Gtransfo * getSky2TP(CcdImage const &ccdImage) const
The mapping of sky coordinates (i.e.
int VisitIdType
Definition: CcdImage.h:25
unsigned assignIndices(unsigned firstIndex, std::string const &whatToFit)
Positions the various parameter sets into the parameter vector, starting at firstIndex.
Handler of an actual image from a single CCD.
Definition: CcdImage.h:35
Gtransfo const & getChipTransfo(CcdIdType const chip) const
Access to mappings.