LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Public Attributes | List of all members
lsst::meas::algorithms::LoadCandidatesVisitor Class Reference
Inheritance diagram for lsst::meas::algorithms::LoadCandidatesVisitor:
lsst::afw::math::CandidateVisitor

Public Types

typedef shapelet::Position Position
 
typedef shapelet::BVec BVec
 
typedef
lsst::afw::math::SpatialCellCandidate 
SpatialCellCandidate
 

Public Member Functions

 LoadCandidatesVisitor (std::vector< ShapeletPsfCandidate * > &cand, std::vector< Position > &pos, std::vector< BVec > &psf, std::vector< double > &nu, std::vector< long > &flags)
 
void reset ()
 
void processCandidate (SpatialCellCandidate *cand)
 
- Public Member Functions inherited from lsst::afw::math::CandidateVisitor
 CandidateVisitor ()
 
virtual ~CandidateVisitor ()
 

Public Attributes

std::vector
< ShapeletPsfCandidate * > & 
_cand
 
std::vector< Position > & _pos
 
std::vector< BVec > & _psf
 
std::vector< double > & _nu
 
std::vector< long > & _flags
 

Detailed Description

Definition at line 34 of file ShapeletInterpolation.cc.

Member Typedef Documentation

Definition at line 39 of file ShapeletInterpolation.cc.

Definition at line 38 of file ShapeletInterpolation.cc.

Definition at line 40 of file ShapeletInterpolation.cc.

Constructor & Destructor Documentation

lsst::meas::algorithms::LoadCandidatesVisitor::LoadCandidatesVisitor ( std::vector< ShapeletPsfCandidate * > &  cand,
std::vector< Position > &  pos,
std::vector< BVec > &  psf,
std::vector< double > &  nu,
std::vector< long > &  flags 
)
inline

Definition at line 42 of file ShapeletInterpolation.cc.

48  :
49  _cand(cand), _pos(pos), _psf(psf), _nu(nu), _flags(flags)
50  {}
std::vector< ShapeletPsfCandidate * > & _cand

Member Function Documentation

void lsst::meas::algorithms::LoadCandidatesVisitor::processCandidate ( SpatialCellCandidate cand)
inlinevirtual

Reimplemented from lsst::afw::math::CandidateVisitor.

Definition at line 54 of file ShapeletInterpolation.cc.

55  {
56  ShapeletPsfCandidate* psfCand =
57  dynamic_cast<ShapeletPsfCandidate*>(cand);
58  Assert(psfCand);
59  _cand.push_back(psfCand);
60  _pos.push_back(Position(psfCand->getX(),psfCand->getY()));
61  _psf.push_back(psfCand->getShapelet()->viewAsBVec());
62  // We already calculated nu for the rating...
63  _nu.push_back(psfCand->getCandidateRating());
64  _flags.push_back(long(0));
65  }
std::vector< ShapeletPsfCandidate * > & _cand
#define Assert(x)
Definition: dbg.h:73
void lsst::meas::algorithms::LoadCandidatesVisitor::reset ( )
inlinevirtual

Reimplemented from lsst::afw::math::CandidateVisitor.

Definition at line 52 of file ShapeletInterpolation.cc.

52 { }

Member Data Documentation

std::vector<ShapeletPsfCandidate*>& lsst::meas::algorithms::LoadCandidatesVisitor::_cand

Definition at line 67 of file ShapeletInterpolation.cc.

std::vector<long>& lsst::meas::algorithms::LoadCandidatesVisitor::_flags

Definition at line 71 of file ShapeletInterpolation.cc.

std::vector<double>& lsst::meas::algorithms::LoadCandidatesVisitor::_nu

Definition at line 70 of file ShapeletInterpolation.cc.

std::vector<Position>& lsst::meas::algorithms::LoadCandidatesVisitor::_pos

Definition at line 68 of file ShapeletInterpolation.cc.

std::vector<BVec>& lsst::meas::algorithms::LoadCandidatesVisitor::_psf

Definition at line 69 of file ShapeletInterpolation.cc.


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