LSST Applications g1653933729+a8ce1bb630,g171997e3ee+76e92115be,g1a997c3884+a8ce1bb630,g28da252d5a+4013ff5194,g2bbee38e9b+d6d0f9f6ae,g2bc492864f+d6d0f9f6ae,g2cdde0e794+ccb74358b7,g3156d2b45e+07302053f8,g347aa1857d+d6d0f9f6ae,g35bb328faa+a8ce1bb630,g3a166c0a6a+d6d0f9f6ae,g3e281a1b8c+130fae20e3,g4005a62e65+17cd334064,g414038480c+c9f68e2a12,g41af890bb2+3e1f62f438,g4e1a3235cc+9db7d56ad0,g7b55021d1b+7b623691d5,g80478fca09+334cc8d2bd,g82479be7b0+b568f6b267,g858d7b2824+37b39d8760,g9125e01d80+a8ce1bb630,ga5288a1d22+11cb34fefe,gae0086650b+a8ce1bb630,gb4ec7eb0ab+37b39d8760,gb58c049af0+d64f4d3760,gc081298178+284e133171,gc28159a63d+d6d0f9f6ae,gcf0d15dbbd+00fe2e0b07,gd6b7c0dfd1+8b62435e69,gda3e153d99+37b39d8760,gda6a2b7d83+00fe2e0b07,gdaeeff99f8+1711a396fd,gdd5a9049c5+23f3b3239a,ge2409df99d+5d9f551a54,ge33fd446bb+37b39d8760,ge79ae78c31+d6d0f9f6ae,gf0baf85859+2dea8344a2,gf5289d68f6+3777f3df5e,w.2024.41
LSST Data Management Base Package
Loading...
Searching...
No Matches
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.
 

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}
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
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}
T endl(T... args)

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