LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst::jointcal::OneTPPerVisitHandler Class Reference

A projection handler in which all CCDs from the same visit have the same tangent point. More...

#include <ProjectionHandler.h>

Inheritance diagram for lsst::jointcal::OneTPPerVisitHandler:
lsst::jointcal::ProjectionHandler

Public Member Functions

 OneTPPerVisitHandler (const CcdImageList &ccdImageList)
 
const std::shared_ptr< const AstrometryTransformgetSkyToTangentPlane (const CcdImage &ccdImage) const
 

Detailed Description

A projection handler in which all CCDs from the same visit have the same tangent point.

We arbitrarily chose that all chips from a same visit have the same tangent point.

Definition at line 71 of file ProjectionHandler.h.

Constructor & Destructor Documentation

◆ OneTPPerVisitHandler()

lsst::jointcal::OneTPPerVisitHandler::OneTPPerVisitHandler ( const CcdImageList ccdImageList)

Definition at line 36 of file Projectionhandler.cc.

36  {
37  for (auto const &i : ccdImageList) {
38  const CcdImage &im = *i;
39  if (tMap.find(im.getVisit()) == tMap.end()) tMap[im.getVisit()] = im.getSkyToTangentPlane()->clone();
40  }
41 }
T end(T... args)
T find(T... args)

Member Function Documentation

◆ getSkyToTangentPlane()

const std::shared_ptr< const AstrometryTransform > lsst::jointcal::OneTPPerVisitHandler::getSkyToTangentPlane ( const CcdImage ccdImage) const
virtual

Implements lsst::jointcal::ProjectionHandler.

Definition at line 43 of file Projectionhandler.cc.

44  {
45  auto it = tMap.find(ccdImage.getVisit());
46  if (it == tMap.end()) return nullptr;
47  return it->second;
48 }
T end(T... args)
T find(T... args)

The documentation for this class was generated from the following files: