SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
IsophotalFluxPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * IsophotalFluxPlugin.cpp
19 *
20 * Created on: Sep 28, 2016
21 * Author: mschefer
22 */
23
25
28
30
31namespace SourceXtractor {
32
34
37
39 "isophotal_flux",
40 [](const IsophotalFlux& prop){
41 return prop.getFlux();
42 },
43 "count",
44 "Isophotal flux"
45 );
46
48 "isophotal_flux_err",
49 [](const IsophotalFlux& prop){
50 return prop.getFluxError();
51 },
52 "count",
53 "Isophotal flux error"
54 );
55
57 "isophotal_mag",
58 [](const IsophotalFlux& prop){
59 return prop.getMag();
60 },
61 "mag",
62 "Isophotal magnitude"
63 );
64
66 "isophotal_mag_err",
67 [](const IsophotalFlux& prop){
68 return prop.getMagError();
69 },
70 "mag",
71 "Isophotal magnitude error"
72 );
73
74
75
76 plugin_api.getOutputRegistry().enableOutput<IsophotalFlux>("IsophotalFlux");
77}
78
80 return "IsophotalFlux";
81}
82
83}
84
void registerPlugin(PluginAPI &plugin_api) override
std::string getIdString() const override
Computes the isophotal 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:40
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
static StaticPlugin< IsophotalFluxPlugin > isophotal_flux_plugin