LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Private Member Functions | List of all members
lsst::meas::algorithms::ClassificationControl Class Reference

Control/factory for the algorithm that does star/galaxy classification. More...

#include <Classification.h>

Inheritance diagram for lsst::meas::algorithms::ClassificationControl:
lsst::meas::algorithms::AlgorithmControl

Public Member Functions

 ClassificationControl ()
 
boost::shared_ptr
< ClassificationControl
clone () const
 
- Public Member Functions inherited from lsst::meas::algorithms::AlgorithmControl
boost::shared_ptr
< AlgorithmControl
clone () const
 
boost::shared_ptr< AlgorithmmakeAlgorithm (afw::table::Schema &schema, boost::shared_ptr< daf::base::PropertyList > const &metadata=boost::shared_ptr< daf::base::PropertyList >(), AlgorithmMap const &others=AlgorithmMap()) const
 Construct a new algorithm configured with *this. More...
 
virtual ~AlgorithmControl ()
 

Public Attributes

double fluxRatio
 "critical ratio of model to psf flux" ; More...
 
double modelErrFactor
 "correction factor for modelFlux error" ; More...
 
double psfErrFactor
 "correction factor for psfFlux error" ; More...
 
- Public Attributes inherited from lsst::meas::algorithms::AlgorithmControl
std::string name
 Name of the algorithm. More...
 
double priority
 "Parameter that sets the sort order for algorithms; lower numbers go first. " "Typically, priority=0 for centroids, 1 for shapes, and 2 for fluxes." ; More...
 

Private Member Functions

virtual boost::shared_ptr
< AlgorithmControl
_clone () const
 
virtual boost::shared_ptr
< Algorithm
_makeAlgorithm (afw::table::Schema &schema, boost::shared_ptr< daf::base::PropertyList > const &metadata) const
 

Additional Inherited Members

- Protected Member Functions inherited from lsst::meas::algorithms::AlgorithmControl
virtual boost::shared_ptr
< Algorithm
_makeAlgorithm (afw::table::Schema &schema, boost::shared_ptr< daf::base::PropertyList > const &metadata, AlgorithmMap const &others) const
 
 AlgorithmControl (std::string const &name_, double priority_)
 

Detailed Description

Control/factory for the algorithm that does star/galaxy classification.

The algorithm class itself adds nothing to the public interface of its base class, so it is declared only in the source file.

This algorithm is based entirely on the ratio of Model to PSF fluxes; it never fails unless one of these fails, so it does not have its own failure flag.

Todo:
this class needs a more specific name, especially now that classifiers are pluggable

Definition at line 43 of file Classification.h.

Constructor & Destructor Documentation

lsst::meas::algorithms::ClassificationControl::ClassificationControl ( )
inline

Definition at line 50 of file Classification.h.

50  :
51  AlgorithmControl("classification.extendedness", 5.0),
52  fluxRatio(0.925), modelErrFactor(0.0), psfErrFactor(0.0)
53  {}
double fluxRatio
&quot;critical ratio of model to psf flux&quot; ;
double psfErrFactor
&quot;correction factor for psfFlux error&quot; ;
AlgorithmControl(std::string const &name_, double priority_)
Definition: Algorithm.h:229
double modelErrFactor
&quot;correction factor for modelFlux error&quot; ;

Member Function Documentation

boost::shared_ptr< AlgorithmControl > lsst::meas::algorithms::ClassificationControl::_clone ( ) const
privatevirtual

Implements lsst::meas::algorithms::AlgorithmControl.

Definition at line 53 of file Classification.cc.

53  {
54  return boost::make_shared<ClassificationControl>(*this);
55 }
boost::shared_ptr< Algorithm > lsst::meas::algorithms::ClassificationControl::_makeAlgorithm ( afw::table::Schema schema,
boost::shared_ptr< daf::base::PropertyList > const &  metadata 
) const
privatevirtual

Reimplemented from lsst::meas::algorithms::AlgorithmControl.

Definition at line 57 of file Classification.cc.

60  {
61  return boost::make_shared<ClassificationAlgorithm>(*this, boost::ref(schema));
62 }
tbl::Schema schema
Definition: CoaddPsf.cc:324
boost::shared_ptr< ClassificationControl > lsst::meas::algorithms::ClassificationControl::clone ( void  ) const
inline

Definition at line 55 of file Classification.h.

55  {
56  return boost::static_pointer_cast<ClassificationControl>(_clone());
57  }
virtual boost::shared_ptr< AlgorithmControl > _clone() const

Member Data Documentation

double lsst::meas::algorithms::ClassificationControl::fluxRatio

"critical ratio of model to psf flux" ;

Definition at line 46 of file Classification.h.

double lsst::meas::algorithms::ClassificationControl::modelErrFactor

"correction factor for modelFlux error" ;

Definition at line 47 of file Classification.h.

double lsst::meas::algorithms::ClassificationControl::psfErrFactor

"correction factor for psfFlux error" ;

Definition at line 48 of file Classification.h.


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