SourceXtractorPlusPlus 0.21
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
36 plugin_api.getTaskFactoryRegistry().registerTaskFactory<IsophotalFluxTaskFactory, IsophotalFlux>();
37
38 plugin_api.getOutputRegistry().registerColumnConverter<IsophotalFlux, double>(
39 "isophotal_flux",
40 [](const IsophotalFlux& prop){
41 return prop.getFlux();
42 },
43 "count",
44 "Isophotal flux"
45 );
46
47 plugin_api.getOutputRegistry().registerColumnConverter<IsophotalFlux, double>(
48 "isophotal_flux_err",
49 [](const IsophotalFlux& prop){
50 return prop.getFluxError();
51 },
52 "count",
53 "Isophotal flux error"
54 );
55
56 plugin_api.getOutputRegistry().registerColumnConverter<IsophotalFlux, double>(
57 "isophotal_mag",
58 [](const IsophotalFlux& prop){
59 return prop.getMag();
60 },
61 "mag",
62 "Isophotal magnitude"
63 );
64
65 plugin_api.getOutputRegistry().registerColumnConverter<IsophotalFlux, double>(
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.
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
static StaticPlugin< IsophotalFluxPlugin > isophotal_flux_plugin