11bool startsWith(std::string
const &a, std::string
const b) {
return a.
compare(0, b.
size(), b) == 0; }
18class MeasFieldNameGetter {
20 MeasFieldNameGetter(SubSchema
const &s, Schema
const &schema)
21 : replaced(schema[schema.getAliasMap()->apply(s.getPrefix())]),
22 defined(replaced.getPrefix() !=
38 MeasFieldNameGetter helper(s[
"instFlux"], schema);
39 if (!helper.defined) {
42 _measKey = helper.replaced;
44 _errKey = s[
"instFluxErr"];
71 MeasFieldNameGetter helper(s, schema);
72 if (!helper.defined)
return;
73 _measKey = helper.replaced;
75 _errKey =
ErrKey(s, names);
103 MeasFieldNameGetter helper(s, schema);
104 if (!helper.defined)
return;
105 _measKey = helper.replaced;
107 _errKey =
ErrKey(s, names);
111 _flagKey = s[
"flag"];
CovarianceMatrixKey< float, 2 > ErrKey
Key type used to access the slot uncertainty.
Point2DKey MeasKey
Key type used to access the slot measurement.
void setKeys(std::string const &alias, Schema const &schema)
Update the cached Keys following an change of aliases in the given Schema.
std::vector< std::string > NameArray
Key< double > MeasKey
Key type used to access the slot measurement.
Key< double > ErrKey
Key type used to access the slot uncertainty.
void setKeys(std::string const &alias, Schema const &schema)
Update the cached Keys following an change of aliases in the given Schema.
A class used as a handle to a particular field in a table.
Defines the fields and offsets for a table.
CovarianceMatrixKey< float, 3 > ErrKey
Key type used to access the slot uncertainty.
void setKeys(std::string const &alias, Schema const &schema)
Update the cached Keys following an change of aliases in the given Schema.
QuadrupoleKey MeasKey
Key type used to access the slot measurement.
A proxy type for name lookups in a Schema.
std::string const & getPrefix() const
Return the prefix that defines this SubSchema relative to its parent Schema.
CentroidSlotDefinition defCentroid
FluxSlotDefinition defModelFlux
SlotSuite(Schema const &schema)
Initialize the slots.
FluxSlotDefinition defCalibFlux
FluxSlotDefinition defApFlux
FluxSlotDefinition defPsfFlux
ShapeSlotDefinition defShape
FluxSlotDefinition defGaussianFlux
void handleAliasChange(std::string const &alias, Schema const &schema)
Handle a callback from an AliasMap informing the table that an alias has changed.