SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AperturePhotometryPlugin.cpp
Go to the documentation of this file.
1 
17 /*
18  * AperturePhotometryPlugin.cpp
19  *
20  * Created on: Sep 23, 2016
21  * Author: mschefer
22  */
23 
25 
31 
32 namespace SourceXtractor {
33 
35 
36 template <typename T>
38 
40  plugin_api.getTaskFactoryRegistry()
42 
44  "aperture_flux",
45  [](const AperturePhotometryArray &prop) {
46  return prop.getFluxes();
47  },
48  "count",
49  "Aperture flux"
50  );
51 
53  "aperture_flux_err",
54  [](const AperturePhotometryArray &prop) {
55  return prop.getFluxErrors();
56  },
57  "count",
58  "Aperture flux error"
59  );
60 
62  "aperture_mag",
63  [](const AperturePhotometryArray &prop) {
64  return prop.getMags();
65  },
66  "mag",
67  "Aperture magnitude"
68  );
69 
71  "aperture_mag_err",
72  [](const AperturePhotometryArray &prop) {
73  return prop.getMagErrors();
74  },
75  "mag",
76  "Aperture magnitude error"
77  );
78 
80  "aperture_flags",
81  [](const AperturePhotometryArray &prop) {
82  return prop.getFlags();
83  },
84  "",
85  "Aperture flags"
86  );
87 
88  plugin_api.getOutputRegistry().enableOutput<AperturePhotometryArray>("AperturePhotometry");
89 }
90 
92  return "AperturePhotometryPlugin";
93 }
94 
95 }
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin
void enableOutput(std::string alias_name, bool configurable_output=false)
virtual OutputRegistry & getOutputRegistry() const =0
Aperture photometry fluxes and magnitudes.
STL class.
virtual void registerPlugin(PluginAPI &plugin_api) override
virtual std::string getIdString() const override
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
Euclid::NdArray::NdArray< T > NdArray
Definition: VignetPlugin.h:37
Aperture photometry flag.
Definition: ApertureFlag.h:38
Merges all AperturePhotometries into a multidimensional property.
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")