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
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
lsst::ap::cluster::SourceClusterTable Class Reference

Table class that contains measurement means on clusters of single exposure sources. More...

#include <SourceCluster.h>

Inheritance diagram for lsst::ap::cluster::SourceClusterTable:
lsst::afw::table::SimpleTable lsst::afw::table::BaseTable lsst::daf::base::Citizen

Classes

struct  FilterSlots
 

Public Types

typedef SourceClusterRecord Record
 
typedef
SourceClusterColumnViewT
< SourceClusterRecord
ColumnView
 
typedef
lsst::afw::table::SortedCatalogT
< Record
Catalog
 
typedef
lsst::afw::table::SortedCatalogT
< Record const > 
ConstCatalog
 
- Public Types inherited from lsst::afw::table::SimpleTable
typedef SimpleRecord Record
 
typedef ColumnViewT< SimpleRecordColumnView
 
typedef SortedCatalogT< RecordCatalog
 
typedef SortedCatalogT< Record
const > 
ConstCatalog
 
- Public Types inherited from lsst::afw::table::BaseTable
typedef BaseRecord Record
 The associated record class. More...
 
typedef BaseColumnView ColumnView
 The associated ColumnView class. More...
 
typedef CatalogT< RecordCatalog
 Template of CatalogT used to hold records of the associated type. More...
 
typedef CatalogT< Record const > ConstCatalog
 Template of CatalogT used to hold const records of the associated type. More...
 
- Public Types inherited from lsst::daf::base::Citizen
enum  { magicSentinel = 0xdeadbeef }
 
typedef unsigned long memId
 Type of the block's ID. More...
 
typedef memId(* memNewCallback )(const memId cid)
 A function used to register a callback. More...
 
typedef memId(* memCallback )(const Citizen *ptr)
 

Public Member Functions

 ~SourceClusterTable ()
 
boost::shared_ptr
< SourceClusterTable
clone () const
 Return a polymorphic deep copy of the table. More...
 
boost::shared_ptr
< SourceClusterRecord
makeRecord ()
 Default-construct an associated record. More...
 
boost::shared_ptr
< SourceClusterRecord
copyRecord (lsst::afw::table::BaseRecord const &other)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
boost::shared_ptr
< SourceClusterRecord
copyRecord (lsst::afw::table::BaseRecord const &other, lsst::afw::table::SchemaMapper const &mapper)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
std::vector< std::string > const getFilters () const
 Get the lexicographically sorted list of filter names for which slots have been defined. More...
 
void defineCoordErr (lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > const &key)
 Convenience definers for filter-agnostic keys. More...
 
void defineCoordErr (std::string const &name)
 Set the field used for the CoordErr slot using a name. More...
 
std::string const getCoordErrDefinition () const
 Get the name of the field used for the CoordErr slot. More...
 
lsst::afw::table::Key
< lsst::afw::table::Covariance
< lsst::afw::table::Point
< float > > > const 
getCoordErrKey () const
 Get the key used for the CoordErr slot. More...
 
void defineWeightedMeanCoord (lsst::afw::table::Key< lsst::afw::coord::Coord > const &key)
 Set the field used for the WeightedMeanCoord slot using keys. More...
 
void defineWeightedMeanCoord (std::string const &name)
 Set the field used for the WeightedMeanCoord slot using a name. More...
 
std::string const getWeightedMeanCoordDefinition () const
 Get the name of the field used for the WeightedMeanCoord slot. More...
 
lsst::afw::table::Key
< lsst::afw::coord::Coord >
const 
getWeightedMeanCoordKey () const
 Get the key used for the WeightedMeanCoord slot. More...
 
void defineWeightedMeanCoordErr (lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > const &key)
 Set the field used for the WeightedMeanCoordErr slot using keys. More...
 
void defineWeightedMeanCoordErr (std::string const &name)
 Set the field used for the WeightedMeanCoordErr slot using a name. More...
 
std::string const getWeightedMeanCoordErrDefinition () const
 Get the name of the field used for the WeightedMeanCoordErr slot. More...
 
lsst::afw::table::Key
< lsst::afw::table::Covariance
< lsst::afw::table::Point
< float > > > const 
getWeightedMeanCoordErrKey () const
 Get the key used for the WeightedMeanCoordErr slot. More...
 
void defineWeightedMeanCoordCount (lsst::afw::table::Key< int > const &key)
 Set the field used for the WeightedMeanCoordCount slot using keys. More...
 
void defineWeightedMeanCoordCount (std::string const &name)
 Set the field used for the WeightedMeanCoordCount slot using a name. More...
 
std::string const getWeightedMeanCoordCountDefinition () const
 Get the name of the field used for the WeightedMeanCoordCount slot. More...
 
lsst::afw::table::Key< int > const getWeightedMeanCoordCountKey () const
 Get the key used for the WeightedMeanCoordCount slot. More...
 
void defineNumSources (lsst::afw::table::Key< int > const &key)
 Set the field used for the NumSources slot using keys. More...
 
void defineNumSources (std::string const &name)
 Set the field used for the NumSources slot using a name. More...
 
std::string const getNumSourcesDefinition () const
 Get the name of the field used for the NumSources slot. More...
 
lsst::afw::table::Key< int > const getNumSourcesKey () const
 Get the key used for the NumSources slot. More...
 
void defineTimeMin (lsst::afw::table::Key< double > const &key)
 Set the field used for the TimeMin slot using keys. More...
 
void defineTimeMin (std::string const &name)
 Set the field used for the TimeMin slot using a name. More...
 
std::string const getTimeMinDefinition () const
 Get the name of the field used for the TimeMin slot. More...
 
lsst::afw::table::Key< double >
const 
getTimeMinKey () const
 Get the key used for the TimeMin slot. More...
 
void defineTimeMean (lsst::afw::table::Key< double > const &key)
 Set the field used for the TimeMean slot using keys. More...
 
void defineTimeMean (std::string const &name)
 Set the field used for the TimeMean slot using a name. More...
 
std::string const getTimeMeanDefinition () const
 Get the name of the field used for the TimeMean slot. More...
 
lsst::afw::table::Key< double >
const 
getTimeMeanKey () const
 Get the key used for the TimeMean slot. More...
 
void defineTimeMax (lsst::afw::table::Key< double > const &key)
 Set the field used for the TimeMax slot using keys. More...
 
void defineTimeMax (std::string const &name)
 Set the field used for the TimeMax slot using a name. More...
 
std::string const getTimeMaxDefinition () const
 Get the name of the field used for the TimeMax slot. More...
 
lsst::afw::table::Key< double >
const 
getTimeMaxKey () const
 Get the key used for the TimeMax slot. More...
 
void defineNumSources (std::string const &filter, lsst::afw::table::Key< int > const &key)
 Convenience definers for filter-specific keys. More...
 
void defineNumSources (std::string const &filter, std::string const &name)
 Set the NumSources slot in the given filter to the field named "<filter>.<name>". More...
 
std::string const getNumSourcesDefinition (std::string const &filter) const
 Return the name of the field used for the NumSources slot in the given filter. More...
 
lsst::afw::table::Key< int > const getNumSourcesKey (std::string const &filter) const
 Return the key used for the NumSources slot in the given filter. More...
 
void defineTimeMin (std::string const &filter, lsst::afw::table::Key< double > const &key)
 Set the field used for the TimeMin slot in the given filter using a Key. More...
 
void defineTimeMin (std::string const &filter, std::string const &name)
 Set the TimeMin slot in the given filter to the field named "<filter>.<name>". More...
 
std::string const getTimeMinDefinition (std::string const &filter) const
 Return the name of the field used for the TimeMin slot in the given filter. More...
 
lsst::afw::table::Key< double >
const 
getTimeMinKey (std::string const &filter) const
 Return the key used for the TimeMin slot in the given filter. More...
 
void defineTimeMax (std::string const &filter, lsst::afw::table::Key< double > const &key)
 Set the field used for the TimeMax slot in the given filter using a Key. More...
 
void defineTimeMax (std::string const &filter, std::string const &name)
 Set the TimeMax slot in the given filter to the field named "<filter>.<name>". More...
 
std::string const getTimeMaxDefinition (std::string const &filter) const
 Return the name of the field used for the TimeMax slot in the given filter. More...
 
lsst::afw::table::Key< double >
const 
getTimeMaxKey (std::string const &filter) const
 Return the key used for the TimeMax slot in the given filter. More...
 
void definePsfFlux (std::string const &filter, lsst::afw::table::Flux::MeasKey const &mean, lsst::afw::table::Flux::ErrKey const &err, lsst::afw::table::Key< int > const &count)
 Set the fields used for the PsfFlux slot in the given filter using Keys. More...
 
void definePsfFlux (std::string const &filter, std::string const &name)
 Set the fields used for the PsfFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count". More...
 
std::string const getPsfFluxDefinition (std::string const &filter) const
 Return the name of the field used for the PsfFlux slot in the given filter. More...
 
lsst::afw::table::Flux::MeasKey
const 
getPsfFluxKey (std::string const &filter) const
 Return the key used for the PsfFlux slot in the given filter. More...
 
lsst::afw::table::Flux::ErrKey
const 
getPsfFluxErrKey (std::string const &filter) const
 Return the key used for PsfFlux slot error or covariance. More...
 
lsst::afw::table::Key< int > const getPsfFluxCountKey (std::string const &filter) const
 Return the key used for the PsfFlux slot count. More...
 
void defineModelFlux (std::string const &filter, lsst::afw::table::Flux::MeasKey const &mean, lsst::afw::table::Flux::ErrKey const &err, lsst::afw::table::Key< int > const &count)
 Set the fields used for the ModelFlux slot in the given filter using Keys. More...
 
void defineModelFlux (std::string const &filter, std::string const &name)
 Set the fields used for the ModelFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count". More...
 
std::string const getModelFluxDefinition (std::string const &filter) const
 Return the name of the field used for the ModelFlux slot in the given filter. More...
 
lsst::afw::table::Flux::MeasKey
const 
getModelFluxKey (std::string const &filter) const
 Return the key used for the ModelFlux slot in the given filter. More...
 
lsst::afw::table::Flux::ErrKey
const 
getModelFluxErrKey (std::string const &filter) const
 Return the key used for ModelFlux slot error or covariance. More...
 
lsst::afw::table::Key< int > const getModelFluxCountKey (std::string const &filter) const
 Return the key used for the ModelFlux slot count. More...
 
void defineApFlux (std::string const &filter, lsst::afw::table::Flux::MeasKey const &mean, lsst::afw::table::Flux::ErrKey const &err, lsst::afw::table::Key< int > const &count)
 Set the fields used for the ApFlux slot in the given filter using Keys. More...
 
void defineApFlux (std::string const &filter, std::string const &name)
 Set the fields used for the ApFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count". More...
 
std::string const getApFluxDefinition (std::string const &filter) const
 Return the name of the field used for the ApFlux slot in the given filter. More...
 
lsst::afw::table::Flux::MeasKey
const 
getApFluxKey (std::string const &filter) const
 Return the key used for the ApFlux slot in the given filter. More...
 
lsst::afw::table::Flux::ErrKey
const 
getApFluxErrKey (std::string const &filter) const
 Return the key used for ApFlux slot error or covariance. More...
 
lsst::afw::table::Key< int > const getApFluxCountKey (std::string const &filter) const
 Return the key used for the ApFlux slot count. More...
 
void defineInstFlux (std::string const &filter, lsst::afw::table::Flux::MeasKey const &mean, lsst::afw::table::Flux::ErrKey const &err, lsst::afw::table::Key< int > const &count)
 Set the fields used for the InstFlux slot in the given filter using Keys. More...
 
void defineInstFlux (std::string const &filter, std::string const &name)
 Set the fields used for the InstFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count". More...
 
std::string const getInstFluxDefinition (std::string const &filter) const
 Return the name of the field used for the InstFlux slot in the given filter. More...
 
lsst::afw::table::Flux::MeasKey
const 
getInstFluxKey (std::string const &filter) const
 Return the key used for the InstFlux slot in the given filter. More...
 
lsst::afw::table::Flux::ErrKey
const 
getInstFluxErrKey (std::string const &filter) const
 Return the key used for InstFlux slot error or covariance. More...
 
lsst::afw::table::Key< int > const getInstFluxCountKey (std::string const &filter) const
 Return the key used for the InstFlux slot count. More...
 
void defineShape (std::string const &filter, lsst::afw::table::Shape::MeasKey const &mean, lsst::afw::table::Shape::ErrKey const &err, lsst::afw::table::Key< int > const &count)
 Set the fields used for the Shape slot in the given filter using Keys. More...
 
void defineShape (std::string const &filter, std::string const &name)
 Set the fields used for the Shape slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count". More...
 
std::string const getShapeDefinition (std::string const &filter) const
 Return the name of the field used for the Shape slot in the given filter. More...
 
lsst::afw::table::Shape::MeasKey
const 
getShapeKey (std::string const &filter) const
 Return the key used for the Shape slot in the given filter. More...
 
lsst::afw::table::Shape::ErrKey
const 
getShapeErrKey (std::string const &filter) const
 Return the key used for Shape slot error or covariance. More...
 
lsst::afw::table::Key< int > const getShapeCountKey (std::string const &filter) const
 Return the key used for the Shape slot count. More...
 
- Public Member Functions inherited from lsst::afw::table::SimpleTable
boost::shared_ptr< IdFactorygetIdFactory ()
 Return the object that generates IDs for the table (may be null). More...
 
boost::shared_ptr< IdFactory
const > 
getIdFactory () const
 Return the object that generates IDs for the table (may be null). More...
 
void setIdFactory (boost::shared_ptr< IdFactory > f)
 Switch to a new IdFactory – object that generates IDs for the table (may be null). More...
 
boost::shared_ptr< SimpleTableclone () const
 Return a polymorphic deep copy of the table. More...
 
boost::shared_ptr< SimpleRecordmakeRecord ()
 Default-construct an associated record. More...
 
boost::shared_ptr< SimpleRecordcopyRecord (BaseRecord const &other)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
boost::shared_ptr< SimpleRecordcopyRecord (BaseRecord const &other, SchemaMapper const &mapper)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseTable
boost::shared_ptr
< daf::base::PropertyList
getMetadata () const
 Return the flexible metadata associated with the table. May be null. More...
 
void setMetadata (boost::shared_ptr< daf::base::PropertyList > const &metadata)
 Set the flexible metadata associated with the table. May be null. More...
 
boost::shared_ptr
< daf::base::PropertyList
popMetadata ()
 Return the metadata and set the internal metadata to a null pointer. More...
 
boost::shared_ptr< BaseTableclone () const
 Return a polymorphic deep copy of the table. More...
 
boost::shared_ptr< BaseRecordmakeRecord ()
 Default-construct an associated record. More...
 
boost::shared_ptr< BaseRecordcopyRecord (BaseRecord const &input)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
boost::shared_ptr< BaseRecordcopyRecord (BaseRecord const &input, SchemaMapper const &mapper)
 Deep-copy a record, using a mapper to relate two schemas. More...
 
int getVersion () const
 Return the table's version. More...
 
Schema getSchema () const
 Return the table's schema. More...
 
void preallocate (std::size_t nRecords)
 Allocate contiguous space for new records in advance. More...
 
std::size_t getBufferSize () const
 Return the number of additional records space has been already been allocated for. More...
 
virtual ~BaseTable ()
 
- Public Member Functions inherited from lsst::daf::base::Citizen
 Citizen (const std::type_info &)
 
 Citizen (Citizen const &)
 
 ~Citizen ()
 
Citizenoperator= (Citizen const &)
 
std::string repr () const
 Return a string representation of a Citizen. More...
 
void markPersistent (void)
 Mark a Citizen as persistent and not destroyed until process end. More...
 
memId getId () const
 Return the Citizen's ID. More...
 

Static Public Member Functions

static boost::shared_ptr
< SourceClusterTable
make (lsst::afw::table::Schema const &schema, boost::shared_ptr< lsst::afw::table::IdFactory > const &idFactory)
 Construct a new table. More...
 
static boost::shared_ptr
< SourceClusterTable
make (lsst::afw::table::Schema const &schema)
 Construct a new table. More...
 
- Static Public Member Functions inherited from lsst::afw::table::SimpleTable
static boost::shared_ptr
< SimpleTable
make (Schema const &schema, boost::shared_ptr< IdFactory > const &idFactory)
 Construct a new table. More...
 
static boost::shared_ptr
< SimpleTable
make (Schema const &schema)
 Construct a new table. More...
 
static Schema makeMinimalSchema ()
 Return a minimal schema for Simple tables and records. More...
 
static bool checkSchema (Schema const &other)
 Return true if the given schema is a valid SimpleTable schema. More...
 
static Key< RecordIdgetIdKey ()
 Key for the unique ID. More...
 
static Key< CoordgetCoordKey ()
 Key for the celestial coordinates. More...
 
- Static Public Member Functions inherited from lsst::afw::table::BaseTable
static boost::shared_ptr
< BaseTable
make (Schema const &schema)
 Construct a new table. More...
 
- Static Public Member Functions inherited from lsst::daf::base::Citizen
static bool hasBeenCorrupted ()
 Check all allocated blocks for corruption. More...
 
static memId getNextMemId ()
 Return the memId of the next object to be allocated. More...
 
static int init ()
 Called once when the memory system is being initialised. More...
 
static int census (int, memId startingMemId=0)
 How many active Citizens are there? More...
 
static void census (std::ostream &stream, memId startingMemId=0)
 Print a list of all active Citizens to stream, sorted by ID. More...
 
static const std::vector
< const Citizen * > * 
census ()
 Return a (newly allocated) std::vector of active Citizens sorted by ID. More...
 
static memId setNewCallbackId (memId id)
 Call the NewCallback when block is allocated. More...
 
static memId setDeleteCallbackId (memId id)
 Call the current DeleteCallback when block is deleted. More...
 
static memNewCallback setNewCallback (memNewCallback func)
 Set the NewCallback function. More...
 
static memCallback setDeleteCallback (memCallback func)
 Set the DeleteCallback function. More...
 
static memCallback setCorruptionCallback (memCallback func)
 Set the CorruptionCallback function. More...
 

Protected Member Functions

 SourceClusterTable (lsst::afw::table::Schema const &schema, boost::shared_ptr< lsst::afw::table::IdFactory > const &idFactory)
 
 SourceClusterTable (SourceClusterTable const &other)
 
- Protected Member Functions inherited from lsst::afw::table::SimpleTable
 SimpleTable (Schema const &schema, boost::shared_ptr< IdFactory > const &idFactory)
 
 SimpleTable (SimpleTable const &other)
 
- Protected Member Functions inherited from lsst::afw::table::BaseTable
template<typename Derived >
boost::shared_ptr< Derived > getSelf ()
 Convenience function for static-casting shared_from_this for use by derived classes. More...
 
template<typename Derived >
boost::shared_ptr< Derived const > getSelf () const
 Convenience function for static-casting shared_from_this for use by derived classes. More...
 
virtual void handleAliasChange (std::string const &alias)
 
virtual boost::shared_ptr
< BaseTable
_clone () const =0
 Clone implementation with noncovariant return types. More...
 
virtual boost::shared_ptr
< BaseRecord
_makeRecord ()=0
 Default-construct an associated record (protected implementation). More...
 
 BaseTable (Schema const &schema)
 Construct from a schema. More...
 
 BaseTable (BaseTable const &other)
 Copy construct. More...
 

Private Types

typedef
std::tr1::unordered_map
< std::string, FilterSlots
FilterSlotsMap
 

Private Member Functions

virtual boost::shared_ptr
< lsst::afw::table::io::FitsWriter
makeFitsWriter (lsst::afw::table::io::FitsWriter::Fits *fits, int flags) const
 
FilterSlots const & getFilterSlots (std::string const &filter) const
 

Private Attributes

lsst::afw::table::Key
< lsst::afw::table::Covariance
< lsst::afw::table::Point
< float > > > 
_keyCoordErr
 
lsst::afw::table::Key
< lsst::afw::coord::Coord
_keyWeightedMeanCoord
 
lsst::afw::table::Key
< lsst::afw::table::Covariance
< lsst::afw::table::Point
< float > > > 
_keyWeightedMeanCoordErr
 
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
 
lsst::afw::table::Key< int > _keyNumSources
 
lsst::afw::table::Key< double > _keyTimeMin
 
lsst::afw::table::Key< double > _keyTimeMean
 
lsst::afw::table::Key< double > _keyTimeMax
 
FilterSlotsMap _filterSlots
 

Friends

class lsst::afw::table::io::FitsWriter
 

Additional Inherited Members

- Static Public Attributes inherited from lsst::afw::table::BaseTable
static int nRecordsPerBlock
 Number of records in each memory block. More...
 

Detailed Description

Table class that contains measurement means on clusters of single exposure sources.

Note that the minimal schema for a SourceClusterTable / SourceClusterRecord is identical to the minimal schema for an lsst::afw::table::SimpleTable / lsst::afw::table::SimpleRecord.

Definition at line 278 of file SourceCluster.h.

Member Typedef Documentation

Definition at line 282 of file SourceCluster.h.

Definition at line 281 of file SourceCluster.h.

Definition at line 283 of file SourceCluster.h.

typedef std::tr1::unordered_map<std::string, FilterSlots> lsst::ap::cluster::SourceClusterTable::FilterSlotsMap
private

Definition at line 736 of file SourceCluster.h.

Definition at line 280 of file SourceCluster.h.

Constructor & Destructor Documentation

lsst::ap::cluster::SourceClusterTable::~SourceClusterTable ( )

Definition at line 343 of file SourceCluster.cc.

343 { }
lsst::ap::cluster::SourceClusterTable::SourceClusterTable ( lsst::afw::table::Schema const &  schema,
boost::shared_ptr< lsst::afw::table::IdFactory > const &  idFactory 
)
protected

Definition at line 315 of file SourceCluster.cc.

319  _keyCoordErr(),
323  _keyNumSources(),
324  _keyTimeMin(),
325  _keyTimeMean(),
326  _keyTimeMax(),
327  _filterSlots()
328 { }
lsst::afw::table::Key< int > _keyNumSources
lsst::afw::table::Key< lsst::afw::coord::Coord > _keyWeightedMeanCoord
lsst::afw::table::Key< double > _keyTimeMin
lsst::afw::table::Key< double > _keyTimeMax
Table class that must contain a unique ID field and a celestial coordinate field. ...
Definition: Simple.h:84
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyWeightedMeanCoordErr
tbl::Schema schema
Definition: CoaddPsf.cc:324
lsst::afw::table::Key< double > _keyTimeMean
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyCoordErr
lsst::ap::cluster::SourceClusterTable::SourceClusterTable ( SourceClusterTable const &  other)
protected

Definition at line 330 of file SourceCluster.cc.

330  :
332  _keyCoordErr(other._keyCoordErr),
333  _keyWeightedMeanCoord(other._keyWeightedMeanCoord),
334  _keyWeightedMeanCoordErr(other._keyWeightedMeanCoordErr),
335  _keyWeightedMeanCoordCount(other._keyWeightedMeanCoordCount),
336  _keyNumSources(other._keyNumSources),
337  _keyTimeMin(other._keyTimeMin),
338  _keyTimeMean(other._keyTimeMean),
339  _keyTimeMax(other._keyTimeMax),
340  _filterSlots(other._filterSlots)
341 { }
lsst::afw::table::Key< int > _keyNumSources
lsst::afw::table::Key< lsst::afw::coord::Coord > _keyWeightedMeanCoord
lsst::afw::table::Key< double > _keyTimeMin
lsst::afw::table::Key< double > _keyTimeMax
Table class that must contain a unique ID field and a celestial coordinate field. ...
Definition: Simple.h:84
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyWeightedMeanCoordErr
lsst::afw::table::Key< double > _keyTimeMean
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyCoordErr

Member Function Documentation

boost::shared_ptr< SourceClusterTable > lsst::ap::cluster::SourceClusterTable::clone ( void  ) const
inline

Return a polymorphic deep copy of the table.

Derived classes should reimplement by static-casting the output of _clone to a pointer-to-derived to simulate covariant return types.

Cloning a table does not clone its associated records; the new table produced by clone() does not have any associated records.

Definition at line 314 of file SourceCluster.h.

314  {
315  return boost::static_pointer_cast<SourceClusterTable>(_clone());
316  }
SourceClusterTable(lsst::afw::table::Schema const &schema, boost::shared_ptr< lsst::afw::table::IdFactory > const &idFactory)
virtual boost::shared_ptr< BaseTable > _clone() const =0
Clone implementation with noncovariant return types.
boost::shared_ptr< SourceClusterRecord > lsst::ap::cluster::SourceClusterTable::copyRecord ( lsst::afw::table::BaseRecord const &  other)
inline

Deep-copy a record, requiring that it have the same schema as this table.

Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.

Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn't anything new.

Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.

This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.

Definition at line 324 of file SourceCluster.h.

324  {
325  return boost::static_pointer_cast<SourceClusterRecord>(
327  }
boost::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
boost::shared_ptr< SourceClusterRecord > lsst::ap::cluster::SourceClusterTable::copyRecord ( lsst::afw::table::BaseRecord const &  other,
lsst::afw::table::SchemaMapper const &  mapper 
)
inline

Deep-copy a record, requiring that it have the same schema as this table.

Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.

Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn't anything new.

Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.

This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.

Definition at line 330 of file SourceCluster.h.

331  {
332  return boost::static_pointer_cast<SourceClusterRecord>(
334  }
boost::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
void lsst::ap::cluster::SourceClusterTable::defineApFlux ( std::string const &  filter,
lsst::afw::table::Flux::MeasKey const &  mean,
lsst::afw::table::Flux::ErrKey const &  err,
lsst::afw::table::Key< int > const &  count 
)
inline

Set the fields used for the ApFlux slot in the given filter using Keys.

Definition at line 615 of file SourceCluster.h.

618  {
619  _filterSlots[filter].keyApFlux = KeyTuple<lsst::afw::table::Flux>(mean, err, count);
620  }
double mean
Definition: attributes.cc:217
void lsst::ap::cluster::SourceClusterTable::defineApFlux ( std::string const &  filter,
std::string const &  name 
)
inline

Set the fields used for the ApFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count".

Definition at line 623 of file SourceCluster.h.

623  {
625  _filterSlots[filter].keyApFlux = KeyTuple<lsst::afw::table::Flux>(
626  schema[filter][name],
627  schema[filter][name]["err"],
628  schema[filter][name]["count"]);
629  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineCoordErr ( lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > const &  key)
inline

Convenience definers for filter-agnostic keys.

Set the field used for the CoordErr slot using keys.

Definition at line 340 of file SourceCluster.h.

340  {
341  _keyCoordErr = key;
342  }
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyCoordErr
void lsst::ap::cluster::SourceClusterTable::defineCoordErr ( std::string const &  name)
inline

Set the field used for the CoordErr slot using a name.

Definition at line 344 of file SourceCluster.h.

344  {
346  _keyCoordErr = schema[name];
347  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyCoordErr
void lsst::ap::cluster::SourceClusterTable::defineInstFlux ( std::string const &  filter,
lsst::afw::table::Flux::MeasKey const &  mean,
lsst::afw::table::Flux::ErrKey const &  err,
lsst::afw::table::Key< int > const &  count 
)
inline

Set the fields used for the InstFlux slot in the given filter using Keys.

Definition at line 648 of file SourceCluster.h.

651  {
652  _filterSlots[filter].keyInstFlux = KeyTuple<lsst::afw::table::Flux>(mean, err, count);
653  }
double mean
Definition: attributes.cc:217
void lsst::ap::cluster::SourceClusterTable::defineInstFlux ( std::string const &  filter,
std::string const &  name 
)
inline

Set the fields used for the InstFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count".

Definition at line 656 of file SourceCluster.h.

656  {
658  _filterSlots[filter].keyInstFlux = KeyTuple<lsst::afw::table::Flux>(
659  schema[filter][name],
660  schema[filter][name]["err"],
661  schema[filter][name]["count"]);
662  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineModelFlux ( std::string const &  filter,
lsst::afw::table::Flux::MeasKey const &  mean,
lsst::afw::table::Flux::ErrKey const &  err,
lsst::afw::table::Key< int > const &  count 
)
inline

Set the fields used for the ModelFlux slot in the given filter using Keys.

Definition at line 582 of file SourceCluster.h.

585  {
586  _filterSlots[filter].keyModelFlux = KeyTuple<lsst::afw::table::Flux>(mean, err, count);
587  }
double mean
Definition: attributes.cc:217
void lsst::ap::cluster::SourceClusterTable::defineModelFlux ( std::string const &  filter,
std::string const &  name 
)
inline

Set the fields used for the ModelFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count".

Definition at line 590 of file SourceCluster.h.

590  {
592  _filterSlots[filter].keyModelFlux = KeyTuple<lsst::afw::table::Flux>(
593  schema[filter][name],
594  schema[filter][name]["err"],
595  schema[filter][name]["count"]);
596  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineNumSources ( lsst::afw::table::Key< int > const &  key)
inline

Set the field used for the NumSources slot using keys.

Definition at line 412 of file SourceCluster.h.

412  {
413  _keyNumSources = key;
414  }
lsst::afw::table::Key< int > _keyNumSources
void lsst::ap::cluster::SourceClusterTable::defineNumSources ( std::string const &  name)
inline

Set the field used for the NumSources slot using a name.

Definition at line 416 of file SourceCluster.h.

416  {
418  _keyNumSources = schema[name];
419  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
lsst::afw::table::Key< int > _keyNumSources
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineNumSources ( std::string const &  filter,
lsst::afw::table::Key< int > const &  key 
)
inline

Convenience definers for filter-specific keys.

Set the field used for the NumSources slot in the given filter using a Key.

Definition at line 492 of file SourceCluster.h.

493  {
494  _filterSlots[filter].keyNumSources = key;
495  }
void lsst::ap::cluster::SourceClusterTable::defineNumSources ( std::string const &  filter,
std::string const &  name 
)
inline

Set the NumSources slot in the given filter to the field named "<filter>.<name>".

Definition at line 497 of file SourceCluster.h.

497  {
499  _filterSlots[filter].keyNumSources = schema[filter][name];
500  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::definePsfFlux ( std::string const &  filter,
lsst::afw::table::Flux::MeasKey const &  mean,
lsst::afw::table::Flux::ErrKey const &  err,
lsst::afw::table::Key< int > const &  count 
)
inline

Set the fields used for the PsfFlux slot in the given filter using Keys.

Definition at line 549 of file SourceCluster.h.

552  {
553  _filterSlots[filter].keyPsfFlux = KeyTuple<lsst::afw::table::Flux>(mean, err, count);
554  }
double mean
Definition: attributes.cc:217
void lsst::ap::cluster::SourceClusterTable::definePsfFlux ( std::string const &  filter,
std::string const &  name 
)
inline

Set the fields used for the PsfFlux slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count".

Definition at line 557 of file SourceCluster.h.

557  {
559  _filterSlots[filter].keyPsfFlux = KeyTuple<lsst::afw::table::Flux>(
560  schema[filter][name],
561  schema[filter][name]["err"],
562  schema[filter][name]["count"]);
563  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineShape ( std::string const &  filter,
lsst::afw::table::Shape::MeasKey const &  mean,
lsst::afw::table::Shape::ErrKey const &  err,
lsst::afw::table::Key< int > const &  count 
)
inline

Set the fields used for the Shape slot in the given filter using Keys.

Definition at line 681 of file SourceCluster.h.

684  {
685  _filterSlots[filter].keyShape = KeyTuple<lsst::afw::table::Shape>(mean, err, count);
686  }
double mean
Definition: attributes.cc:217
void lsst::ap::cluster::SourceClusterTable::defineShape ( std::string const &  filter,
std::string const &  name 
)
inline

Set the fields used for the Shape slot in the given filter to the fields named "<filter>.<name>", "<filter>.<name>.err", and "<filter>.<name>.count".

Definition at line 689 of file SourceCluster.h.

689  {
691  _filterSlots[filter].keyShape = KeyTuple<lsst::afw::table::Shape>(
692  schema[filter][name],
693  schema[filter][name]["err"],
694  schema[filter][name]["count"]);
695  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineTimeMax ( lsst::afw::table::Key< double > const &  key)
inline

Set the field used for the TimeMax slot using keys.

Definition at line 466 of file SourceCluster.h.

466  {
467  _keyTimeMax = key;
468  }
lsst::afw::table::Key< double > _keyTimeMax
void lsst::ap::cluster::SourceClusterTable::defineTimeMax ( std::string const &  name)
inline

Set the field used for the TimeMax slot using a name.

Definition at line 470 of file SourceCluster.h.

470  {
472  _keyTimeMax = schema[name];
473  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
lsst::afw::table::Key< double > _keyTimeMax
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineTimeMax ( std::string const &  filter,
lsst::afw::table::Key< double > const &  key 
)
inline

Set the field used for the TimeMax slot in the given filter using a Key.

Definition at line 530 of file SourceCluster.h.

531  {
532  _filterSlots[filter].keyTimeMax = key;
533  }
void lsst::ap::cluster::SourceClusterTable::defineTimeMax ( std::string const &  filter,
std::string const &  name 
)
inline

Set the TimeMax slot in the given filter to the field named "<filter>.<name>".

Definition at line 535 of file SourceCluster.h.

535  {
537  _filterSlots[filter].keyTimeMax = schema[filter][name];
538  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineTimeMean ( lsst::afw::table::Key< double > const &  key)
inline

Set the field used for the TimeMean slot using keys.

Definition at line 448 of file SourceCluster.h.

448  {
449  _keyTimeMean = key;
450  }
lsst::afw::table::Key< double > _keyTimeMean
void lsst::ap::cluster::SourceClusterTable::defineTimeMean ( std::string const &  name)
inline

Set the field used for the TimeMean slot using a name.

Definition at line 452 of file SourceCluster.h.

452  {
454  _keyTimeMean = schema[name];
455  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
lsst::afw::table::Key< double > _keyTimeMean
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineTimeMin ( lsst::afw::table::Key< double > const &  key)
inline

Set the field used for the TimeMin slot using keys.

Definition at line 430 of file SourceCluster.h.

430  {
431  _keyTimeMin = key;
432  }
lsst::afw::table::Key< double > _keyTimeMin
void lsst::ap::cluster::SourceClusterTable::defineTimeMin ( std::string const &  name)
inline

Set the field used for the TimeMin slot using a name.

Definition at line 434 of file SourceCluster.h.

434  {
436  _keyTimeMin = schema[name];
437  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
lsst::afw::table::Key< double > _keyTimeMin
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineTimeMin ( std::string const &  filter,
lsst::afw::table::Key< double > const &  key 
)
inline

Set the field used for the TimeMin slot in the given filter using a Key.

Definition at line 511 of file SourceCluster.h.

512  {
513  _filterSlots[filter].keyTimeMin = key;
514  }
void lsst::ap::cluster::SourceClusterTable::defineTimeMin ( std::string const &  filter,
std::string const &  name 
)
inline

Set the TimeMin slot in the given filter to the field named "<filter>.<name>".

Definition at line 516 of file SourceCluster.h.

516  {
518  _filterSlots[filter].keyTimeMin = schema[filter][name];
519  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineWeightedMeanCoord ( lsst::afw::table::Key< lsst::afw::coord::Coord > const &  key)
inline

Set the field used for the WeightedMeanCoord slot using keys.

Definition at line 358 of file SourceCluster.h.

358  {
359  _keyWeightedMeanCoord = key;
360  }
lsst::afw::table::Key< lsst::afw::coord::Coord > _keyWeightedMeanCoord
void lsst::ap::cluster::SourceClusterTable::defineWeightedMeanCoord ( std::string const &  name)
inline

Set the field used for the WeightedMeanCoord slot using a name.

Definition at line 362 of file SourceCluster.h.

362  {
364  _keyWeightedMeanCoord = schema[name];
365  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
lsst::afw::table::Key< lsst::afw::coord::Coord > _keyWeightedMeanCoord
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
void lsst::ap::cluster::SourceClusterTable::defineWeightedMeanCoordCount ( lsst::afw::table::Key< int > const &  key)
inline

Set the field used for the WeightedMeanCoordCount slot using keys.

Definition at line 394 of file SourceCluster.h.

394  {
396  }
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
void lsst::ap::cluster::SourceClusterTable::defineWeightedMeanCoordCount ( std::string const &  name)
inline

Set the field used for the WeightedMeanCoordCount slot using a name.

Definition at line 398 of file SourceCluster.h.

398  {
400  _keyWeightedMeanCoordCount = schema[name];
401  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
void lsst::ap::cluster::SourceClusterTable::defineWeightedMeanCoordErr ( lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > const &  key)
inline

Set the field used for the WeightedMeanCoordErr slot using keys.

Definition at line 376 of file SourceCluster.h.

376  {
378  }
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyWeightedMeanCoordErr
void lsst::ap::cluster::SourceClusterTable::defineWeightedMeanCoordErr ( std::string const &  name)
inline

Set the field used for the WeightedMeanCoordErr slot using a name.

Definition at line 380 of file SourceCluster.h.

380  {
382  _keyWeightedMeanCoordErr = schema[name];
383  }
Defines the fields and offsets for a table.
Definition: Schema.h:46
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyWeightedMeanCoordErr
tbl::Schema schema
Definition: CoaddPsf.cc:324
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getApFluxCountKey ( std::string const &  filter) const
inline

Return the key used for the ApFlux slot count.

Definition at line 643 of file SourceCluster.h.

643  {
644  return getFilterSlots(filter).keyApFlux.count;
645  }
KeyTuple< lsst::afw::table::Flux > keyApFlux
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key< int > count
Key used for the sample count.
Definition: SourceCluster.h:60
std::string const lsst::ap::cluster::SourceClusterTable::getApFluxDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the ApFlux slot in the given filter.

Definition at line 631 of file SourceCluster.h.

631  {
632  return getSchema().find(getFilterSlots(filter).keyApFlux.mean).field.getName();
633  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Flux::ErrKey const lsst::ap::cluster::SourceClusterTable::getApFluxErrKey ( std::string const &  filter) const
inline

Return the key used for ApFlux slot error or covariance.

Definition at line 639 of file SourceCluster.h.

639  {
640  return getFilterSlots(filter).keyApFlux.err;
641  }
KeyTuple< lsst::afw::table::Flux > keyApFlux
FilterSlots const & getFilterSlots(std::string const &filter) const
MeasurementT::ErrKey err
Key used for the uncertainty.
Definition: SourceCluster.h:59
lsst::afw::table::Flux::MeasKey const lsst::ap::cluster::SourceClusterTable::getApFluxKey ( std::string const &  filter) const
inline

Return the key used for the ApFlux slot in the given filter.

Definition at line 635 of file SourceCluster.h.

635  {
636  return getFilterSlots(filter).keyApFlux.mean;
637  }
KeyTuple< lsst::afw::table::Flux > keyApFlux
MeasurementT::MeasKey mean
Key used for the mean measured value.
Definition: SourceCluster.h:58
FilterSlots const & getFilterSlots(std::string const &filter) const
std::string const lsst::ap::cluster::SourceClusterTable::getCoordErrDefinition ( ) const
inline

Get the name of the field used for the CoordErr slot.

Definition at line 349 of file SourceCluster.h.

349  {
350  return getSchema().find(_keyCoordErr).field.getName();
351  }
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyCoordErr
lsst::afw::table::Key<lsst::afw::table::Covariance<lsst::afw::table::Point<float> > > const lsst::ap::cluster::SourceClusterTable::getCoordErrKey ( ) const
inline

Get the key used for the CoordErr slot.

Definition at line 353 of file SourceCluster.h.

353  {
354  return _keyCoordErr;
355  }
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyCoordErr
std::vector< std::string > const lsst::ap::cluster::SourceClusterTable::getFilters ( ) const

Get the lexicographically sorted list of filter names for which slots have been defined.

Definition at line 345 of file SourceCluster.cc.

345  {
346  typedef FilterSlotsMap::const_iterator Iter;
347  std::vector<std::string> filters;
348  for (Iter i = _filterSlots.begin(), e = _filterSlots.end(); i != e; ++i) {
349  filters.push_back(i->first);
350  }
351  std::sort(filters.begin(), filters.end());
352  return filters;
353 }
SourceClusterTable::FilterSlots const & lsst::ap::cluster::SourceClusterTable::getFilterSlots ( std::string const &  filter) const
private

Definition at line 361 of file SourceCluster.cc.

361  {
362  FilterSlotsMap::const_iterator i = _filterSlots.find(filter);
363  if (i == _filterSlots.end()) {
364  throw LSST_EXCEPT(except::NotFoundError, "SourceClusterTable "
365  "contains no slot mappings for the filter named " + filter);
366  }
367  return i->second;
368 }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getInstFluxCountKey ( std::string const &  filter) const
inline

Return the key used for the InstFlux slot count.

Definition at line 676 of file SourceCluster.h.

676  {
677  return getFilterSlots(filter).keyInstFlux.count;
678  }
KeyTuple< lsst::afw::table::Flux > keyInstFlux
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key< int > count
Key used for the sample count.
Definition: SourceCluster.h:60
std::string const lsst::ap::cluster::SourceClusterTable::getInstFluxDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the InstFlux slot in the given filter.

Definition at line 664 of file SourceCluster.h.

664  {
665  return getSchema().find(getFilterSlots(filter).keyInstFlux.mean).field.getName();
666  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Flux::ErrKey const lsst::ap::cluster::SourceClusterTable::getInstFluxErrKey ( std::string const &  filter) const
inline

Return the key used for InstFlux slot error or covariance.

Definition at line 672 of file SourceCluster.h.

672  {
673  return getFilterSlots(filter).keyInstFlux.err;
674  }
KeyTuple< lsst::afw::table::Flux > keyInstFlux
FilterSlots const & getFilterSlots(std::string const &filter) const
MeasurementT::ErrKey err
Key used for the uncertainty.
Definition: SourceCluster.h:59
lsst::afw::table::Flux::MeasKey const lsst::ap::cluster::SourceClusterTable::getInstFluxKey ( std::string const &  filter) const
inline

Return the key used for the InstFlux slot in the given filter.

Definition at line 668 of file SourceCluster.h.

668  {
669  return getFilterSlots(filter).keyInstFlux.mean;
670  }
KeyTuple< lsst::afw::table::Flux > keyInstFlux
MeasurementT::MeasKey mean
Key used for the mean measured value.
Definition: SourceCluster.h:58
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getModelFluxCountKey ( std::string const &  filter) const
inline

Return the key used for the ModelFlux slot count.

Definition at line 610 of file SourceCluster.h.

610  {
611  return getFilterSlots(filter).keyModelFlux.count;
612  }
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key< int > count
Key used for the sample count.
Definition: SourceCluster.h:60
KeyTuple< lsst::afw::table::Flux > keyModelFlux
std::string const lsst::ap::cluster::SourceClusterTable::getModelFluxDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the ModelFlux slot in the given filter.

Definition at line 598 of file SourceCluster.h.

598  {
599  return getSchema().find(getFilterSlots(filter).keyModelFlux.mean).field.getName();
600  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Flux::ErrKey const lsst::ap::cluster::SourceClusterTable::getModelFluxErrKey ( std::string const &  filter) const
inline

Return the key used for ModelFlux slot error or covariance.

Definition at line 606 of file SourceCluster.h.

606  {
607  return getFilterSlots(filter).keyModelFlux.err;
608  }
FilterSlots const & getFilterSlots(std::string const &filter) const
MeasurementT::ErrKey err
Key used for the uncertainty.
Definition: SourceCluster.h:59
KeyTuple< lsst::afw::table::Flux > keyModelFlux
lsst::afw::table::Flux::MeasKey const lsst::ap::cluster::SourceClusterTable::getModelFluxKey ( std::string const &  filter) const
inline

Return the key used for the ModelFlux slot in the given filter.

Definition at line 602 of file SourceCluster.h.

602  {
603  return getFilterSlots(filter).keyModelFlux.mean;
604  }
MeasurementT::MeasKey mean
Key used for the mean measured value.
Definition: SourceCluster.h:58
FilterSlots const & getFilterSlots(std::string const &filter) const
KeyTuple< lsst::afw::table::Flux > keyModelFlux
std::string const lsst::ap::cluster::SourceClusterTable::getNumSourcesDefinition ( ) const
inline

Get the name of the field used for the NumSources slot.

Definition at line 421 of file SourceCluster.h.

421  {
422  return getSchema().find(_keyNumSources).field.getName();
423  }
lsst::afw::table::Key< int > _keyNumSources
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
std::string const lsst::ap::cluster::SourceClusterTable::getNumSourcesDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the NumSources slot in the given filter.

Definition at line 502 of file SourceCluster.h.

502  {
503  return getSchema().find(getFilterSlots(filter).keyNumSources).field.getName();
504  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getNumSourcesKey ( ) const
inline

Get the key used for the NumSources slot.

Definition at line 425 of file SourceCluster.h.

425  {
426  return _keyNumSources;
427  }
lsst::afw::table::Key< int > _keyNumSources
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getNumSourcesKey ( std::string const &  filter) const
inline

Return the key used for the NumSources slot in the given filter.

Definition at line 506 of file SourceCluster.h.

506  {
507  return getFilterSlots(filter).keyNumSources;
508  }
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getPsfFluxCountKey ( std::string const &  filter) const
inline

Return the key used for the PsfFlux slot count.

Definition at line 577 of file SourceCluster.h.

577  {
578  return getFilterSlots(filter).keyPsfFlux.count;
579  }
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key< int > count
Key used for the sample count.
Definition: SourceCluster.h:60
KeyTuple< lsst::afw::table::Flux > keyPsfFlux
std::string const lsst::ap::cluster::SourceClusterTable::getPsfFluxDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the PsfFlux slot in the given filter.

Definition at line 565 of file SourceCluster.h.

565  {
566  return getSchema().find(getFilterSlots(filter).keyPsfFlux.mean).field.getName();
567  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Flux::ErrKey const lsst::ap::cluster::SourceClusterTable::getPsfFluxErrKey ( std::string const &  filter) const
inline

Return the key used for PsfFlux slot error or covariance.

Definition at line 573 of file SourceCluster.h.

573  {
574  return getFilterSlots(filter).keyPsfFlux.err;
575  }
FilterSlots const & getFilterSlots(std::string const &filter) const
KeyTuple< lsst::afw::table::Flux > keyPsfFlux
MeasurementT::ErrKey err
Key used for the uncertainty.
Definition: SourceCluster.h:59
lsst::afw::table::Flux::MeasKey const lsst::ap::cluster::SourceClusterTable::getPsfFluxKey ( std::string const &  filter) const
inline

Return the key used for the PsfFlux slot in the given filter.

Definition at line 569 of file SourceCluster.h.

569  {
570  return getFilterSlots(filter).keyPsfFlux.mean;
571  }
MeasurementT::MeasKey mean
Key used for the mean measured value.
Definition: SourceCluster.h:58
FilterSlots const & getFilterSlots(std::string const &filter) const
KeyTuple< lsst::afw::table::Flux > keyPsfFlux
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getShapeCountKey ( std::string const &  filter) const
inline

Return the key used for the Shape slot count.

Definition at line 709 of file SourceCluster.h.

709  {
710  return getFilterSlots(filter).keyShape.count;
711  }
FilterSlots const & getFilterSlots(std::string const &filter) const
KeyTuple< lsst::afw::table::Shape > keyShape
lsst::afw::table::Key< int > count
Key used for the sample count.
Definition: SourceCluster.h:60
std::string const lsst::ap::cluster::SourceClusterTable::getShapeDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the Shape slot in the given filter.

Definition at line 697 of file SourceCluster.h.

697  {
698  return getSchema().find(getFilterSlots(filter).keyShape.mean).field.getName();
699  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Shape::ErrKey const lsst::ap::cluster::SourceClusterTable::getShapeErrKey ( std::string const &  filter) const
inline

Return the key used for Shape slot error or covariance.

Definition at line 705 of file SourceCluster.h.

705  {
706  return getFilterSlots(filter).keyShape.err;
707  }
FilterSlots const & getFilterSlots(std::string const &filter) const
KeyTuple< lsst::afw::table::Shape > keyShape
MeasurementT::ErrKey err
Key used for the uncertainty.
Definition: SourceCluster.h:59
lsst::afw::table::Shape::MeasKey const lsst::ap::cluster::SourceClusterTable::getShapeKey ( std::string const &  filter) const
inline

Return the key used for the Shape slot in the given filter.

Definition at line 701 of file SourceCluster.h.

701  {
702  return getFilterSlots(filter).keyShape.mean;
703  }
MeasurementT::MeasKey mean
Key used for the mean measured value.
Definition: SourceCluster.h:58
FilterSlots const & getFilterSlots(std::string const &filter) const
KeyTuple< lsst::afw::table::Shape > keyShape
std::string const lsst::ap::cluster::SourceClusterTable::getTimeMaxDefinition ( ) const
inline

Get the name of the field used for the TimeMax slot.

Definition at line 475 of file SourceCluster.h.

475  {
476  return getSchema().find(_keyTimeMax).field.getName();
477  }
lsst::afw::table::Key< double > _keyTimeMax
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
std::string const lsst::ap::cluster::SourceClusterTable::getTimeMaxDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the TimeMax slot in the given filter.

Definition at line 540 of file SourceCluster.h.

540  {
541  return getSchema().find(getFilterSlots(filter).keyTimeMax).field.getName();
542  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key<double> const lsst::ap::cluster::SourceClusterTable::getTimeMaxKey ( ) const
inline

Get the key used for the TimeMax slot.

Definition at line 479 of file SourceCluster.h.

479  {
480  return _keyTimeMax;
481  }
lsst::afw::table::Key< double > _keyTimeMax
lsst::afw::table::Key<double> const lsst::ap::cluster::SourceClusterTable::getTimeMaxKey ( std::string const &  filter) const
inline

Return the key used for the TimeMax slot in the given filter.

Definition at line 544 of file SourceCluster.h.

544  {
545  return getFilterSlots(filter).keyTimeMax;
546  }
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key< double > keyTimeMax
std::string const lsst::ap::cluster::SourceClusterTable::getTimeMeanDefinition ( ) const
inline

Get the name of the field used for the TimeMean slot.

Definition at line 457 of file SourceCluster.h.

457  {
458  return getSchema().find(_keyTimeMean).field.getName();
459  }
lsst::afw::table::Key< double > _keyTimeMean
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key<double> const lsst::ap::cluster::SourceClusterTable::getTimeMeanKey ( ) const
inline

Get the key used for the TimeMean slot.

Definition at line 461 of file SourceCluster.h.

461  {
462  return _keyTimeMean;
463  }
lsst::afw::table::Key< double > _keyTimeMean
std::string const lsst::ap::cluster::SourceClusterTable::getTimeMinDefinition ( ) const
inline

Get the name of the field used for the TimeMin slot.

Definition at line 439 of file SourceCluster.h.

439  {
440  return getSchema().find(_keyTimeMin).field.getName();
441  }
lsst::afw::table::Key< double > _keyTimeMin
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
std::string const lsst::ap::cluster::SourceClusterTable::getTimeMinDefinition ( std::string const &  filter) const
inline

Return the name of the field used for the TimeMin slot in the given filter.

Definition at line 521 of file SourceCluster.h.

521  {
522  return getSchema().find(getFilterSlots(filter).keyTimeMin).field.getName();
523  }
FilterSlots const & getFilterSlots(std::string const &filter) const
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key<double> const lsst::ap::cluster::SourceClusterTable::getTimeMinKey ( ) const
inline

Get the key used for the TimeMin slot.

Definition at line 443 of file SourceCluster.h.

443  {
444  return _keyTimeMin;
445  }
lsst::afw::table::Key< double > _keyTimeMin
lsst::afw::table::Key<double> const lsst::ap::cluster::SourceClusterTable::getTimeMinKey ( std::string const &  filter) const
inline

Return the key used for the TimeMin slot in the given filter.

Definition at line 525 of file SourceCluster.h.

525  {
526  return getFilterSlots(filter).keyTimeMin;
527  }
FilterSlots const & getFilterSlots(std::string const &filter) const
lsst::afw::table::Key< double > keyTimeMin
std::string const lsst::ap::cluster::SourceClusterTable::getWeightedMeanCoordCountDefinition ( ) const
inline

Get the name of the field used for the WeightedMeanCoordCount slot.

Definition at line 403 of file SourceCluster.h.

403  {
404  return getSchema().find(_keyWeightedMeanCoordCount).field.getName();
405  }
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
lsst::afw::table::Key<int> const lsst::ap::cluster::SourceClusterTable::getWeightedMeanCoordCountKey ( ) const
inline

Get the key used for the WeightedMeanCoordCount slot.

Definition at line 407 of file SourceCluster.h.

407  {
409  }
lsst::afw::table::Key< int > _keyWeightedMeanCoordCount
std::string const lsst::ap::cluster::SourceClusterTable::getWeightedMeanCoordDefinition ( ) const
inline

Get the name of the field used for the WeightedMeanCoord slot.

Definition at line 367 of file SourceCluster.h.

367  {
368  return getSchema().find(_keyWeightedMeanCoord).field.getName();
369  }
lsst::afw::table::Key< lsst::afw::coord::Coord > _keyWeightedMeanCoord
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
std::string const lsst::ap::cluster::SourceClusterTable::getWeightedMeanCoordErrDefinition ( ) const
inline

Get the name of the field used for the WeightedMeanCoordErr slot.

Definition at line 385 of file SourceCluster.h.

385  {
386  return getSchema().find(_keyWeightedMeanCoordErr).field.getName();
387  }
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyWeightedMeanCoordErr
Schema getSchema() const
Return the table&#39;s schema.
Definition: BaseTable.h:129
SchemaItem< T > find(std::string const &name) const
Find a SchemaItem in the Schema by name.
lsst::afw::table::Key<lsst::afw::table::Covariance<lsst::afw::table::Point<float> > > const lsst::ap::cluster::SourceClusterTable::getWeightedMeanCoordErrKey ( ) const
inline

Get the key used for the WeightedMeanCoordErr slot.

Definition at line 389 of file SourceCluster.h.

389  {
391  }
lsst::afw::table::Key< lsst::afw::table::Covariance< lsst::afw::table::Point< float > > > _keyWeightedMeanCoordErr
lsst::afw::table::Key<lsst::afw::coord::Coord> const lsst::ap::cluster::SourceClusterTable::getWeightedMeanCoordKey ( ) const
inline

Get the key used for the WeightedMeanCoord slot.

Definition at line 371 of file SourceCluster.h.

371  {
372  return _keyWeightedMeanCoord;
373  }
lsst::afw::table::Key< lsst::afw::coord::Coord > _keyWeightedMeanCoord
boost::shared_ptr< SourceClusterTable > lsst::ap::cluster::SourceClusterTable::make ( lsst::afw::table::Schema const &  schema,
boost::shared_ptr< lsst::afw::table::IdFactory > const &  idFactory 
)
static

Construct a new table.

Parameters
[in]schemaSchema that defines the fields, offsets, and record size for the table.
[in]idFactoryFactory class to generate record IDs when they are not explicitly given. If null, record IDs will default to zero.

Note that not passing an lsst::afw::table::IdFactory at all will call the other override of make(), which will set the ID factory to lsst::afw::table::IdFactory::makeSimple().

Definition at line 303 of file SourceCluster.cc.

306 {
307  if (!checkSchema(schema)) {
308  throw LSST_EXCEPT(except::InvalidParameterError,
309  "Schema for SourceClusterTable must contain at least the keys "
310  "defined by getMinimalSchema().");
311  }
312  return boost::make_shared<SourceClusterTableImpl>(schema, idFactory);
313 }
static bool checkSchema(Schema const &other)
Return true if the given schema is a valid SimpleTable schema.
Definition: Simple.h:132
tbl::Schema schema
Definition: CoaddPsf.cc:324
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
static boost::shared_ptr< SourceClusterTable > lsst::ap::cluster::SourceClusterTable::make ( lsst::afw::table::Schema const &  schema)
inlinestatic

Construct a new table.

Parameters
[in]schemaSchema that defines the fields, offsets, and record size for the table.

The ID factory will be set to lsst::afw::table::IdFactory::makeSimple().

Definition at line 307 of file SourceCluster.h.

307  {
309  }
static boost::shared_ptr< IdFactory > makeSimple()
Return a simple IdFactory that simply counts from 1.
tbl::Schema schema
Definition: CoaddPsf.cc:324
static boost::shared_ptr< SourceClusterTable > make(lsst::afw::table::Schema const &schema, boost::shared_ptr< lsst::afw::table::IdFactory > const &idFactory)
Construct a new table.
boost::shared_ptr< lsst::afw::table::io::FitsWriter > lsst::ap::cluster::SourceClusterTable::makeFitsWriter ( lsst::afw::table::io::FitsWriter::Fits fits,
int  flags 
) const
privatevirtual

Reimplemented from lsst::afw::table::SimpleTable.

Definition at line 355 of file SourceCluster.cc.

357 {
358  return boost::make_shared<SourceClusterFitsWriter>(fits, flags);
359 }
boost::shared_ptr< SourceClusterRecord > lsst::ap::cluster::SourceClusterTable::makeRecord ( )
inline

Default-construct an associated record.

Derived classes should reimplement by static-casting the output of _makeRecord to the appropriate BaseRecord subclass to simulate covariant return types.

Definition at line 319 of file SourceCluster.h.

319  {
320  return boost::static_pointer_cast<SourceClusterRecord>(_makeRecord());
321  }
virtual boost::shared_ptr< BaseRecord > _makeRecord()=0
Default-construct an associated record (protected implementation).

Friends And Related Function Documentation

friend class lsst::afw::table::io::FitsWriter
friend

Definition at line 755 of file SourceCluster.h.

Member Data Documentation

FilterSlotsMap lsst::ap::cluster::SourceClusterTable::_filterSlots
private

Definition at line 753 of file SourceCluster.h.

lsst::afw::table::Key<lsst::afw::table::Covariance<lsst::afw::table::Point<float> > > lsst::ap::cluster::SourceClusterTable::_keyCoordErr
private

Definition at line 744 of file SourceCluster.h.

lsst::afw::table::Key<int> lsst::ap::cluster::SourceClusterTable::_keyNumSources
private

Definition at line 748 of file SourceCluster.h.

lsst::afw::table::Key<double> lsst::ap::cluster::SourceClusterTable::_keyTimeMax
private

Definition at line 751 of file SourceCluster.h.

lsst::afw::table::Key<double> lsst::ap::cluster::SourceClusterTable::_keyTimeMean
private

Definition at line 750 of file SourceCluster.h.

lsst::afw::table::Key<double> lsst::ap::cluster::SourceClusterTable::_keyTimeMin
private

Definition at line 749 of file SourceCluster.h.

lsst::afw::table::Key<lsst::afw::coord::Coord> lsst::ap::cluster::SourceClusterTable::_keyWeightedMeanCoord
private

Definition at line 745 of file SourceCluster.h.

lsst::afw::table::Key<int> lsst::ap::cluster::SourceClusterTable::_keyWeightedMeanCoordCount
private

Definition at line 747 of file SourceCluster.h.

lsst::afw::table::Key<lsst::afw::table::Covariance<lsst::afw::table::Point<float> > > lsst::ap::cluster::SourceClusterTable::_keyWeightedMeanCoordErr
private

Definition at line 746 of file SourceCluster.h.


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