lsst.jointcal  14.0-20-g39ceace
MeasuredStar.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 #include <cmath>
3 #include <vector>
4 
8 
9 //#include "preferences.h"
10 //#include "ccdimage.h"
11 #include "assert.h" // for assert
12 
13 namespace lsst {
14 namespace jointcal {
15 
16 /* Interesting fields of the stack catalogs :
17 'base_SdssCentroid_x'
18 'base_SdssCentroid_y'
19 'base_SdssCentroid_xSigma'
20 'base_SdssCentroid_ySigma'
21 
22 We miss the xy uncertainty term.
23 We can cook it up from the sdss shape:
24 'base_SdssShape_xx'
25 'base_SdssShape_yy'
26 'base_SdssShape_xy'
27 
28 for fluxes, we might use :
29 'base_CircularApertureFlux_2_flux'
30 'base_CircularApertureFlux_2_fluxSigma'
31 
32  where the '2' should be read from the environment.
33 */
34 
36 
38 
39 const BaseStarList &Measured2Base(const MeasuredStarList &This) { return (const BaseStarList &)This; }
40 
41 const BaseStarList *Measured2Base(const MeasuredStarList *This) { return (BaseStarList *)This; }
42 
43 /******* MeasuredStarList *********/
44 
46  for (auto &i : *this) i->setCcdImage(ccdImage);
47 }
48 } // namespace jointcal
49 } // namespace lsst
A list of MeasuredStar. They are usually filled in Associations::AddImage.
Definition: MeasuredStar.h:111
std::lists of Stars.
Definition: StarList.h:35
Class for a simple mapping implementing a generic Gtransfo.
void setCcdImage(const CcdImage *_ccdImage)
Definition: MeasuredStar.cc:45
BaseStarList & Measured2Base(MeasuredStarList &This)
Definition: MeasuredStar.cc:35
Handler of an actual image from a single CCD.
Definition: CcdImage.h:35