SourceXtractorPlusPlus  0.11
Please provide a description of the project.
FlexibleModelFittingPlugin.cpp
Go to the documentation of this file.
1 
17 /*
18  * FlexibleModelFittingPlugin.cpp
19  *
20  * Created on: Sep 17, 2018
21  * Author: mschefer
22  */
23 
25 
28 
30 
31 namespace SourceXtractor {
32 
34 
36 
39 
41  "fmf_reduced_chi_2",
42  [](const FlexibleModelFitting& prop) {
43  return prop.getReducedChiSquared();
44  },
45  "",
46  "Reduced chi-square of the model fitting"
47  );
48 
50  "fmf_iterations",
51  [](const FlexibleModelFitting& prop) {
52  return prop.getIterations();
53  },
54  "",
55  "Number of iterations in the model fitting"
56  );
57 
59  "fmf_flags",
60  [](const FlexibleModelFitting& prop) {
61  return flags2long(prop.getFlags());
62  },
63  "",
64  "Model fitting flags"
65  );
66 
67  plugin_api.getOutputRegistry().enableOutput<FlexibleModelFitting>("FlexibleModelFitting");
68 }
69 
71  return "FlexibleModelFitting";
72 }
73 
74 }
constexpr int64_t flags2long(const Flags &a)
Definition: SourceFlags.h:67
virtual OutputRegistry & getOutputRegistry() const =0
virtual void registerPlugin(PluginAPI &plugin_api) override
STL class.
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
static StaticPlugin< FlexibleModelFittingPlugin > flexible_modelfitting_plugin
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
Elements::Logging model_fitting_logger
void enableOutput(std::string alias_name)
virtual std::string getIdString() const override
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
static Logging getLogger(const std::string &name="")
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")