SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MoffatModelFittingPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * MoffatModelFittingPlugin.cpp
19 *
20 * Created on: May 2, 2017
21 * Author: mschefer
22 */
23
29
30
31namespace SourceXtractor {
32
34
36 plugin_api.getTaskFactoryRegistry().registerTaskFactory<MoffatModelFittingTaskFactory, MoffatModelFitting>();
37 plugin_api.getTaskFactoryRegistry().registerTaskFactory<MoffatModelFittingTaskFactory, MoffatModelEvaluator>();
38
39 plugin_api.getOutputRegistry().registerColumnConverter<MoffatModelFitting, double>(
40 "smf_x",
41 [](const MoffatModelFitting& prop) {
42 return prop.getX() + 1.0;
43 },
44 "pixel",
45 "X-position of the Moffat fit"
46 );
47
48 plugin_api.getOutputRegistry().registerColumnConverter<MoffatModelFitting, double>(
49 "smf_y",
50 [](const MoffatModelFitting& prop) {
51 return prop.getY() + 1.0;
52 },
53 "pixel",
54 "Y-position of the Moffat fit"
55 );
56
57 plugin_api.getOutputRegistry().registerColumnConverter<MoffatModelFitting, int>(
58 "smf_iter",
59 [](const MoffatModelFitting& prop){
60 return prop.getIterations();
61 },
62 "",
63 "Number of iterations in the Moffat fitting"
64 );
65
66 plugin_api.getOutputRegistry().enableOutput<MoffatModelFitting>("MoffatModelFitting");
67}
68
70 return "MoffatModelFitting";
71}
72
73}
void registerPlugin(PluginAPI &plugin_api) override
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
static StaticPlugin< MoffatModelFittingPlugin > simple_modelfitting_plugin