SourceXtractorPlusPlus
0.11
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
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
AperturePhotometryArray.h
SourceXtractor::AperturePhotometry
Aperture photometry fluxes and magnitudes.
Definition:
AperturePhotometry.h:38
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::AperturePhotometryArrayTask::m_instance
unsigned m_instance
Definition:
AperturePhotometryArrayTask.h:44
SourceXtractor::AperturePhotometryArrayTask::m_aperture_instances
std::vector< unsigned > m_aperture_instances
Definition:
AperturePhotometryArrayTask.h:43
AperturePhotometryArrayTask.h
SourceXtractor::AperturePhotometryArrayTask::computeProperties
virtual void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition:
AperturePhotometryArrayTask.cpp:30
std::vector
STL class.
SourceXtractor::AperturePhotometryArray
Merges all AperturePhotometries into a multidimensional property.
Definition:
AperturePhotometryArray.h:40
AperturePhotometry.h
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
std::vector::emplace_back
T emplace_back(T...args)
Generated by
1.8.5