SourceXtractorPlusPlus  0.11
Please provide a description of the project.
AperturePhotometryPlugin.cpp
Go to the documentation of this file.
1 
17 /*
18  * AperturePhotometryPlugin.cpp
19  *
20  * Created on: Sep 23, 2016
21  * Author: mschefer
22  */
23 
25 
31 
32 namespace SourceXtractor {
33 
35 
36 template <typename T>
38 
40  plugin_api.getTaskFactoryRegistry()
42 
44  "aperture_flux",
45  [](const AperturePhotometryArray &prop) {
46  return prop.getFluxes();
47  },
48  "count",
49  "Aperture flux"
50  );
51 
53  "aperture_flux_err",
54  [](const AperturePhotometryArray &prop) {
55  return prop.getFluxErrors();
56  },
57  "count",
58  "Aperture flux error"
59  );
60 
62  "aperture_mag",
63  [](const AperturePhotometryArray &prop) {
64  return prop.getMags();
65  },
66  "mag",
67  "Aperture magnitude"
68  );
69 
71  "aperture_mag_err",
72  [](const AperturePhotometryArray &prop) {
73  return prop.getMagErrors();
74  },
75  "mag",
76  "Aperture magnitude error"
77  );
78 
80  "aperture_flags",
81  [](const AperturePhotometryArray &prop) {
82  return prop.getFlags();
83  },
84  "",
85  "Aperture flags"
86  );
87 
88  plugin_api.getOutputRegistry().enableOutput<AperturePhotometryArray>("AperturePhotometry");
89 }
90 
92  return "AperturePhotometryPlugin";
93 }
94 
95 }
SourceXtractor::aperture_photometry_plugin
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin
Definition: AperturePhotometryPlugin.cpp:34
std::string
STL class.
StaticPlugin.h
SourceXtractor::AperturePhotometryPlugin::getIdString
virtual std::string getIdString() const override
Definition: AperturePhotometryPlugin.cpp:91
Euclid::NdArray::NdArray
SourceXtractor::AperturePhotometryTaskFactory
Definition: AperturePhotometryTaskFactory.h:48
AperturePhotometryArray.h
AperturePhotometryPlugin.h
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
AperturePhotometryTaskFactory.h
SourceXtractor::AperturePhotometryPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition: AperturePhotometryPlugin.cpp:39
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition: TaskFactoryRegistry.h:51
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name)
Definition: OutputRegistry.h:128
SourceXtractor::AperturePhotometry
Aperture photometry fluxes and magnitudes.
Definition: AperturePhotometry.h:38
SourceXtractor::NdArray
Euclid::NdArray::NdArray< T > NdArray
Definition: VignetPlugin.h:37
AperturePhotometry.h
SourceXtractor::AperturePhotometryArray
Merges all AperturePhotometries into a multidimensional property.
Definition: AperturePhotometryArray.h:40
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
ApertureFlag.h
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
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::ApertureFlag
Aperture photometry flag.
Definition: ApertureFlag.h:38