LSSTApplications  20.0.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 override
 
void print (std::ostream &out) const override
 Print a string representation of the contents of this mapping, for debugging. More...
 

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 80 of file ProjectionHandler.h.

Constructor & Destructor Documentation

◆ OneTPPerVisitHandler()

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

Definition at line 39 of file Projectionhandler.cc.

39  {
40  for (auto const &i : ccdImageList) {
41  const CcdImage &im = *i;
42  if (tMap.find(im.getVisit()) == tMap.end()) tMap[im.getVisit()] = im.getSkyToTangentPlane()->clone();
43  }
44 }

Member Function Documentation

◆ getSkyToTangentPlane()

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

Implements lsst::jointcal::ProjectionHandler.

Definition at line 46 of file Projectionhandler.cc.

47  {
48  auto it = tMap.find(ccdImage.getVisit());
49  if (it == tMap.end()) return nullptr;
50  return it->second;
51 }

◆ print()

void lsst::jointcal::OneTPPerVisitHandler::print ( std::ostream out) const
overridevirtual

Print a string representation of the contents of this mapping, for debugging.

Implements lsst::jointcal::ProjectionHandler.

Definition at line 53 of file Projectionhandler.cc.

53  {
54  out << "Sky->Tangent Plane projection per visit:" << std::endl;
55  for (auto &i : tMap) {
56  out << "Visit: " << i.first << std::endl;
57  out << *(i.second) << std::endl;
58  }
59 }

The documentation for this class was generated from the following files:
std::map::find
T find(T... args)
std::endl
T endl(T... args)
std::map::end
T end(T... args)