18 class MeasFieldNameGetter {
20 MeasFieldNameGetter(SubSchema
const &
s, Schema
const &
schema)
21 :
replaced(schema[schema.getAliasMap()->apply(s.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"];
117 defPsfFlux.setKeys(alias, schema);
118 defApFlux.setKeys(alias, schema);
119 defGaussianFlux.setKeys(alias, schema);
120 defModelFlux.setKeys(alias, schema);
121 defCalibFlux.setKeys(alias, schema);
122 defCentroid.setKeys(alias, schema);
123 defShape.setKeys(alias, schema);
127 : defPsfFlux(
"PsfFlux"),
129 defGaussianFlux(
"GaussianFlux"),
130 defModelFlux(
"ModelFlux"),
131 defCalibFlux(
"CalibFlux"),
132 defCentroid(
"Centroid"),
Defines the fields and offsets for a table.
A proxy type for name lookups in a Schema.
FluxSlotDefinition defCalibFlux
FluxSlotDefinition defPsfFlux
CentroidSlotDefinition defCentroid
void setKeys(std::string const &alias, Schema const &schema)
Update the cached Keys following an change of aliases in the given Schema.
std::string const & getPrefix() const
Return the prefix that defines this SubSchema relative to its parent Schema.
Reports attempts to access elements using an invalid key.
A base class for image defects.
ShapeSlotDefinition defShape
FluxSlotDefinition defModelFlux
SlotSuite(Schema const &schema)
Initialize the slots.
Key specialization for Flag.
void setKeys(std::string const &alias, Schema const &schema)
Update the cached Keys following an change of aliases in the given Schema.
void setKeys(std::string const &alias, Schema const &schema)
Update the cached Keys following an change of aliases in the given Schema.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
FluxSlotDefinition defGaussianFlux
FluxSlotDefinition defApFlux
void handleAliasChange(std::string const &alias, Schema const &schema)
Handle a callback from an AliasMap informing the table that an alias has changed. ...