lsst.jointcal  16.0-17-g0bdc215+5
ConstrainedAstrometryModel.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_CONSTRAINED_ASTROMETRY_MODEL_H
3 #define LSST_JOINTCAL_CONSTRAINED_ASTROMETRY_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:
33  ConstrainedAstrometryModel(CcdImageList const &ccdImageList,
35  int visitOrder);
36 
42 
43  // The following routines are the interface to AstrometryFit
45  AstrometryMapping const *getMapping(CcdImage const &) const override;
46 
51  unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex) override;
52 
57  void offsetParams(Eigen::VectorXd const &Delta) override;
58 
63  void freezeErrorTransform() override;
64 
66  int getTotalParameters() const override;
67 
69  Gtransfo const &getChipTransfo(CcdIdType const chip) const;
70 
72  Gtransfo const &getVisitTransfo(VisitIdType const &visit) const;
73 
76 
83  return _sky2TP->getSky2TP(ccdImage);
84  }
85 
88 
89 private:
94  bool _fittingChips, _fittingVisits;
95 
97  AstrometryMapping *findMapping(CcdImage const &ccdImage) const override;
98 };
99 } // namespace jointcal
100 } // namespace lsst
101 
102 #endif // LSST_JOINTCAL_CONSTRAINED_ASTROMETRY_MODEL_H
unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex) override
Positions the various parameter sets into the parameter vector, starting at firstIndex.
const std::shared_ptr< Gtransfo const > getSky2TP(CcdImage const &ccdImage) const override
The mapping of sky coordinates (i.e.
Interface class between AstrometryFit and an actual model for the Mapping (s) from pixels to some tan...
std::vector< VisitIdType > getVisits() const
Access to array of visits involved in the solution.
ConstrainedAstrometryModel & operator=(ConstrainedAstrometryModel const &)=delete
Gtransfo const & getVisitTransfo(VisitIdType const &visit) const
Access to mappings.
STL class.
AstrometryMapping const * getMapping(CcdImage const &) const override
Mapping associated to a given CcdImage.
STL class.
Class for a simple mapping implementing a generic Gtransfo.
std::shared_ptr< afw::geom::SkyWcs > makeSkyWcs(CcdImage const &ccdImage) const override
Make a SkyWcs that contains this model.
void freezeErrorTransform() override
From there on, measurement errors are propagated using the current transfos (and no longer evolve)...
Gtransfo const & getChipTransfo(CcdIdType const chip) const
Access to mappings.
STL class.
void offsetParams(Eigen::VectorXd const &Delta) override
Dispaches the offsets after a fit step into the actual locations of parameters.
int getTotalParameters() const override
Return the total number of parameters in this model.
a virtual (interface) class for geometric transformations.
Definition: Gtransfo.h:42
int VisitIdType
Definition: CcdImage.h:25
virtual class needed in the abstraction of the distortion model
Handler of an actual image from a single CCD.
Definition: CcdImage.h:41
This is the model used to fit mappings as the combination of a transformation depending on the chip n...
ConstrainedAstrometryModel(CcdImageList const &ccdImageList, std::shared_ptr< ProjectionHandler const > projectionHandler, int chipOrder, int visitOrder)