SourceXtractorPlusPlus  0.15
Please provide a description of the project.
AutoPhotometryPlugin.cpp
Go to the documentation of this file.
1 
17 /*
18  * AutoPhotometryPlugin.cpp
19  *
20  * Created on: Jul 18, 2016
21  * Author: mkuemmel@usm.lmu.de
22  */
23 
25 
31 
32 namespace SourceXtractor {
33 
35 
37  plugin_api.getTaskFactoryRegistry()
39 
41  "auto_flux",
42  [](const AutoPhotometryArray& prop){
43  return prop.getFluxes();
44  },
45  "count",
46  "Flux within a Kron-like elliptical aperture"
47  );
48 
50  "auto_flux_err",
51  [](const AutoPhotometryArray& prop){
52  return prop.getFluxErrors();
53  },
54  "count",
55  "Flux error within a Kron-like elliptical aperture"
56  );
57 
59  "auto_mag",
60  [](const AutoPhotometryArray& prop){
61  return prop.getMags();
62  },
63  "mag",
64  "Magnitude within a Kron-like elliptical aperture"
65  );
66 
68  "auto_mag_err",
69  [](const AutoPhotometryArray& prop){
70  return prop.getMagErrors();
71  },
72  "mag",
73  "Magnitude error within a Kron-like elliptical aperture"
74  );
75 
77  "auto_flags",
78  [](const AutoPhotometryArray& prop){
79  return flags2long(prop.getFlags());
80  },
81  "",
82  "Flags for the Kron-like elliptical aperture photometry"
83  );
84 
85  plugin_api.getOutputRegistry().enableOutput<AutoPhotometryArray>("AutoPhotometry");
86 }
87 
89  return "AutoPhotometryPlugin";
90 }
91 
92 }
virtual std::string getIdString() const override
virtual void registerPlugin(PluginAPI &plugin_api) override
Auto photometry flux and magnitude.
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
void enableOutput(std::string alias_name, bool configurable_output=false)
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
constexpr int64_t flags2long(const Flags &a)
Definition: SourceFlags.h:84
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin