SourceXtractorPlusPlus  0.15
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_stop_reason",
60  [](const FlexibleModelFitting& prop) {
61  return prop.getStopReason();
62  },
63  "",
64  "Stop reason (engine dependent)"
65  );
66 
68  "fmf_flags",
69  [](const FlexibleModelFitting& prop) {
70  return flags2long(prop.getFlags());
71  },
72  "",
73  "Model fitting flags"
74  );
75 
76  plugin_api.getOutputRegistry().enableOutput<FlexibleModelFitting>("FlexibleModelFitting");
77 }
78 
80  return "FlexibleModelFitting";
81 }
82 
83 }
static Logging getLogger(const std::string &name="")
virtual std::string getIdString() const override
virtual void registerPlugin(PluginAPI &plugin_api) override
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
void enableOutput(std::string alias_name, bool configurable_output=false)
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
Elements::Logging model_fitting_logger
static StaticPlugin< FlexibleModelFittingPlugin > flexible_modelfitting_plugin
constexpr int64_t flags2long(const Flags &a)
Definition: SourceFlags.h:84