SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
IsophotalFlux
IsophotalFluxPlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* IsophotalFluxPlugin.cpp
19
*
20
* Created on: Sep 28, 2016
21
* Author: mschefer
22
*/
23
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFlux.h
"
27
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFluxTaskFactory.h
"
28
29
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFluxPlugin.h
"
30
31
namespace
SourceXtractor
{
32
33
static
StaticPlugin<IsophotalFluxPlugin>
isophotal_flux_plugin
;
34
35
void
IsophotalFluxPlugin::registerPlugin
(
PluginAPI
&
plugin_api
) {
36
plugin_api
.getTaskFactoryRegistry().registerTaskFactory<
IsophotalFluxTaskFactory
,
IsophotalFlux
>();
37
38
plugin_api
.getOutputRegistry().registerColumnConverter<
IsophotalFlux
,
double
>(
39
"isophotal_flux"
,
40
[](
const
IsophotalFlux
&
prop
){
41
return
prop
.getFlux();
42
},
43
"count"
,
44
"Isophotal flux"
45
);
46
47
plugin_api
.getOutputRegistry().registerColumnConverter<
IsophotalFlux
,
double
>(
48
"isophotal_flux_err"
,
49
[](
const
IsophotalFlux
&
prop
){
50
return
prop
.getFluxError();
51
},
52
"count"
,
53
"Isophotal flux error"
54
);
55
56
plugin_api
.getOutputRegistry().registerColumnConverter<
IsophotalFlux
,
double
>(
57
"isophotal_mag"
,
58
[](
const
IsophotalFlux
&
prop
){
59
return
prop
.getMag();
60
},
61
"mag"
,
62
"Isophotal magnitude"
63
);
64
65
plugin_api
.getOutputRegistry().registerColumnConverter<
IsophotalFlux
,
double
>(
66
"isophotal_mag_err"
,
67
[](
const
IsophotalFlux
&
prop
){
68
return
prop
.getMagError();
69
},
70
"mag"
,
71
"Isophotal magnitude error"
72
);
73
74
75
76
plugin_api
.getOutputRegistry().enableOutput<
IsophotalFlux
>(
"IsophotalFlux"
);
77
}
78
79
std::string
IsophotalFluxPlugin::getIdString
()
const
{
80
return
"IsophotalFlux"
;
81
}
82
83
}
84
IsophotalFluxPlugin.h
IsophotalFluxTaskFactory.h
IsophotalFlux.h
StaticPlugin.h
std::string
SourceXtractor::IsophotalFluxPlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition
IsophotalFluxPlugin.cpp:35
SourceXtractor::IsophotalFluxPlugin::getIdString
std::string getIdString() const override
Definition
IsophotalFluxPlugin.cpp:79
SourceXtractor::IsophotalFluxTaskFactory
Produces IsophotalFluxTask.
Definition
IsophotalFluxTaskFactory.h:35
SourceXtractor::IsophotalFlux
Computes the isophotal flux and magnitude.
Definition
IsophotalFlux.h:36
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
std::function
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::isophotal_flux_plugin
static StaticPlugin< IsophotalFluxPlugin > isophotal_flux_plugin
Definition
IsophotalFluxPlugin.cpp:33
Generated by
1.10.0