lsst.jointcal  master-g9041cab851+8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 
19 const Gtransfo *OneTPPerVisitHandler::getSky2TP(const CcdImage &ccdImage) const {
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
OneTPPerVisitHandler(const CcdImageList &ccdImageList)
Gtransfo const * getSky2TP() const
Definition: CcdImage.h:129
const Gtransfo * getSky2TP(const CcdImage &ccdImage) const
a virtual (interface) class for geometric transformations.
Definition: Gtransfo.h:37
std::list< std::shared_ptr< CcdImage > > CcdImageList
Definition: CcdImage.h:22
Handler of an actual image from a single CCD.
Definition: CcdImage.h:31
virtual std::unique_ptr< Gtransfo > clone() const =0
returns a copy (allocated by new) of the transformation.
VisitIdType getVisit() const
returns visit ID
Definition: CcdImage.h:135