SourceXtractorPlusPlus
0.16
Please provide a description of the project.
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
virtual 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
SourceXtractor::SourceInterface::setIndexedProperty
void setIndexedProperty(std::size_t index, Args... args)
Convenience template method to call setProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:64
SourceXtractor::SourceInterface::getProperty
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:57
std::vector::emplace_back
T emplace_back(T... args)
SourceXtractor
Definition:
Aperture.h:30
std::vector
Generated by
1.9.1