SourceXtractorPlusPlus  0.13
Please provide a description of the project.
AutoPhotometryArrayTask.cpp
Go to the documentation of this file.
1 
17 /*
18  * AutoPhotometryArrayTask.cpp
19  *
20  * Created on: Nov 23, 2018
21  * Author: Alejandro Alvarez Ayllon
22  */
23 
26 
27 
28 namespace SourceXtractor {
29 
30 
32  std::vector<AutoPhotometry> measurements;
33  for (auto img : m_images) {
34  measurements.emplace_back(source.getProperty<AutoPhotometry>(img));
35  }
36  source.setProperty<AutoPhotometryArray>(measurements);
37 }
38 
39 
40 } // end SourceXtractor
SourceXtractor::AutoPhotometryArrayTask::m_images
std::vector< unsigned > m_images
Definition: AutoPhotometryArrayTask.h:46
SourceXtractor::AutoPhotometry
Auto photometry flux and magnitude.
Definition: AutoPhotometry.h:37
std::vector
STL class.
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::AutoPhotometryArrayTask::computeProperties
virtual void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition: AutoPhotometryArrayTask.cpp:31
AutoPhotometryArrayTask.h
AutoPhotometryArray.h
std::vector::emplace_back
T emplace_back(T... args)
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
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition: SourceInterface.h:46
SourceXtractor::SourceInterface::setProperty
void setProperty(Args... args)
Definition: SourceInterface.h:72
SourceXtractor::AutoPhotometryArray
Definition: AutoPhotometryArray.h:37