SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
SEImplementation
Plugin
SNRRatio
SNRRatioSourceTask.h
Go to the documentation of this file.
1
25
#ifndef _SEIMPLEMENTATION_PLUGIN_SNRRATIOSOURCETASK_H_
26
#define _SEIMPLEMENTATION_PLUGIN_SNRRATIOSOURCETASK_H_
27
28
#include "
SEFramework/Task/SourceTask.h
"
29
#include "
SEImplementation/Plugin/SNRRatio/SNRRatio.h
"
30
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFlux.h
"
31
32
namespace
SourceXtractor
{
33
class
SNRRatioSourceTask
:
public
SourceTask
{
34
public
:
35
virtual
~SNRRatioSourceTask
() =
default
;
36
37
virtual
void
computeProperties
(
SourceInterface
&
source
)
const
{
38
// get the input quantities
39
const
auto
&
iso_flux
=
source
.getProperty<
IsophotalFlux
>().getFlux();
40
const
auto
&
iso_flux_error
=
source
.getProperty<
IsophotalFlux
>().getFluxError();
41
42
// compute and store the property
43
SeFloat
snr_ratio
=
iso_flux
/
iso_flux_error
;
44
source
.setProperty<
SNRRatio
>(
snr_ratio
);
45
};
46
private
:
47
};
// End of SNRRatioSourceTask class
48
}
// namespace SourceXtractor
49
50
#endif
/* _SEIMPLEMENTATION_PLUGIN_SNRRATIOSOURCETASK_H_ */
51
52
IsophotalFlux.h
SNRRatio.h
SourceTask.h
SourceXtractor::IsophotalFlux
Computes the isophotal flux and magnitude.
Definition
IsophotalFlux.h:36
SourceXtractor::SNRRatioSourceTask
Definition
SNRRatioSourceTask.h:33
SourceXtractor::SNRRatioSourceTask::computeProperties
virtual void computeProperties(SourceInterface &source) const
Computes one or more properties for the Source.
Definition
SNRRatioSourceTask.h:37
SourceXtractor::SNRRatioSourceTask::~SNRRatioSourceTask
virtual ~SNRRatioSourceTask()=default
SourceXtractor::SNRRatio
Definition
SNRRatio.h:32
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
SourceXtractor::SourceTask
A Task that acts on a Source to compute one or more properties.
Definition
SourceTask.h:36
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0