SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
AperturePhotometry
AperturePhotometryArrayTask.cpp
Go to the documentation of this file.
1
17
/*
18
* AperturePhotometryArrayTask.cpp
19
*
20
* Created on: Nov 23, 2018
21
* Author: Alejandro Alvarez Ayllon
22
*/
23
24
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometryArray.h
"
25
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometry.h
"
26
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometryArrayTask.h
"
27
28
namespace
SourceXtractor
{
29
30
void
AperturePhotometryArrayTask::computeProperties
(
SourceXtractor::SourceInterface
&
source
)
const
{
31
std::vector<AperturePhotometry>
measurements
;
32
for
(
auto
i
:
m_aperture_instances
) {
33
measurements
.emplace_back(
source
.getProperty<
AperturePhotometry
>(
i
));
34
}
35
source
.setIndexedProperty<
AperturePhotometryArray
>(
m_instance
,
measurements
);
36
}
37
38
}
// end SourceXtractor
AperturePhotometryArrayTask.h
AperturePhotometryArray.h
AperturePhotometry.h
SourceXtractor::AperturePhotometryArrayTask::m_instance
unsigned m_instance
Definition
AperturePhotometryArrayTask.h:44
SourceXtractor::AperturePhotometryArrayTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition
AperturePhotometryArrayTask.cpp:30
SourceXtractor::AperturePhotometryArrayTask::m_aperture_instances
std::vector< unsigned > m_aperture_instances
Definition
AperturePhotometryArrayTask.h:43
SourceXtractor::AperturePhotometryArray
Merges all AperturePhotometries into a multidimensional property.
Definition
AperturePhotometryArray.h:40
SourceXtractor::AperturePhotometry
Aperture photometry fluxes and magnitudes.
Definition
AperturePhotometry.h:38
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0