SourceXtractorPlusPlus  0.13
Please provide a description of the project.
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 
31 namespace SourceXtractor {
32 
34 
38 
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 
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 
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 }
SourceXtractor::MoffatModelFittingPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition: MoffatModelFittingPlugin.cpp:35
std::string
STL class.
StaticPlugin.h
SourceXtractor::MoffatModelFitting
Definition: MoffatModelFitting.h:32
MoffatModelFittingTaskFactory.h
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::MoffatModelEvaluator
Definition: MoffatModelEvaluator.h:35
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition: TaskFactoryRegistry.h:51
MoffatModelFitting.h
SourceXtractor::MoffatModelFittingPlugin::getIdString
virtual std::string getIdString() const override
Definition: MoffatModelFittingPlugin.cpp:69
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
MoffatModelFittingPlugin.h
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
SourceXtractor::MoffatModelFittingTaskFactory
Definition: MoffatModelFittingTaskFactory.h:34
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition: OutputRegistry.h:141
SourceXtractor::simple_modelfitting_plugin
static StaticPlugin< MoffatModelFittingPlugin > simple_modelfitting_plugin
Definition: MoffatModelFittingPlugin.cpp:33
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
MoffatModelEvaluator.h