lsst.jointcal  16.0-5-g82b7855
Projectionhandler.cc
Go to the documentation of this file.
4 
5 namespace lsst {
6 namespace jointcal {
7 
8 class Mapping;
9 
10 /********** Stuff for providing Sk22TP gtransfos to a AstrometryModel ***/
11 
13  for (auto const &i : ccdImageList) {
14  const CcdImage &im = *i;
15  if (tMap.find(im.getVisit()) == tMap.end()) tMap[im.getVisit()] = im.getSky2TP()->clone();
16  }
17 }
18 
20  auto it = tMap.find(ccdImage.getVisit());
21  if (it == tMap.end()) return nullptr;
22  return it->second;
23 }
24 } // namespace jointcal
25 } // namespace lsst
VisitIdType getVisit() const
returns visit ID
Definition: CcdImage.h:124
const std::shared_ptr< const Gtransfo > getSky2TP(const CcdImage &ccdImage) const
Gtransfo const * getSky2TP() const
Definition: CcdImage.h:118
OneTPPerVisitHandler(const CcdImageList &ccdImageList)
T end(T... args)
Class for a simple mapping implementing a generic Gtransfo.
T find(T... args)
Handler of an actual image from a single CCD.
Definition: CcdImage.h:41
virtual std::unique_ptr< Gtransfo > clone() const =0
returns a copy (allocated by new) of the transformation.