SourceXtractorPlusPlus
0.16
Please provide a description of the project.
SEImplementation
src
lib
Plugin
MoffatModelFitting
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
24
#include "
SEImplementation/Plugin/MoffatModelFitting/MoffatModelEvaluator.h
"
25
#include "
SEImplementation/Plugin/MoffatModelFitting/MoffatModelFitting.h
"
26
#include "
SEImplementation/Plugin/MoffatModelFitting/MoffatModelFittingPlugin.h
"
27
#include "
SEImplementation/Plugin/MoffatModelFitting/MoffatModelFittingTaskFactory.h
"
28
#include "
SEFramework/Plugin/StaticPlugin.h
"
29
30
31
namespace
SourceXtractor
{
32
33
static
StaticPlugin<MoffatModelFittingPlugin>
simple_modelfitting_plugin
;
34
35
void
MoffatModelFittingPlugin::registerPlugin
(
PluginAPI
& plugin_api) {
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
69
std::string
MoffatModelFittingPlugin::getIdString
()
const
{
70
return
"MoffatModelFitting"
;
71
}
72
73
}
MoffatModelEvaluator.h
MoffatModelFittingPlugin.h
MoffatModelFittingTaskFactory.h
MoffatModelFitting.h
StaticPlugin.h
std::string
SourceXtractor::MoffatModelEvaluator
Definition:
MoffatModelEvaluator.h:35
SourceXtractor::MoffatModelFittingPlugin::getIdString
virtual std::string getIdString() const override
Definition:
MoffatModelFittingPlugin.cpp:69
SourceXtractor::MoffatModelFittingPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
MoffatModelFittingPlugin.cpp:35
SourceXtractor::MoffatModelFittingTaskFactory
Definition:
MoffatModelFittingTaskFactory.h:34
SourceXtractor::MoffatModelFitting
Definition:
MoffatModelFitting.h:32
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition:
OutputRegistry.h:46
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::simple_modelfitting_plugin
static StaticPlugin< MoffatModelFittingPlugin > simple_modelfitting_plugin
Definition:
MoffatModelFittingPlugin.cpp:33
Generated by
1.9.1